Archive for January, 2010

How to enable directory listing in apache

Friday, January 15th, 2010

I created a new domain for pc-freak’s exploit collection
I faced a small issue in creating the new VirtualHost to have a proper directory
listing, cause by default directory listing on my FreeBSD running Apache 2.0.63
is disabled.
It’s quite a common problem I’ve faced over the years of administration of
Apache Servers, everyting I had to enable directory listing for some domain
I had to check in Google again and again. I have to admit this is pretty boring.
Thus I decided to post the solution on my blog just in case if I have to enable
directory listing in the future. Here is the exact configuration directives:
ServerAdmin someemail@somehost.com DocumentRoot /util/exploitworld/ ServerName someservername.com AddDefaultCharset Off Options Indexes FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from allThat’s it directory listing for someservername.com is already enabled. Cheers 🙂

Create Routine mirror copy of milw0rm & packetstorm exploits database

Wednesday, January 13th, 2010

Few weeks ago, I’ve built a small script and put it to
execute in cron in order to have an up2date local copy of
milw0rm. Ofcourse that’s pretty handy for several reasons.
For example milw0rm may go down and the exploit database tobe lost forever. This once happened with hack.co.za which ceasedto exist several years ago, even though it has one of thegreatest exploits database for it’s time.
Luckily I did a copy of hack.co.za, knowing that it’s gone
day might come here is the mirror archive of hack.co.za database
Anyways back to the main topic which was creating routine mirror
copy of milw0rm exploits database.
Here is the small script that needs to be setup on cron in order tohave periodic copy of milw0rm exploits database.
#!/usr/local/bin/bash# Download milw0rm exploitsdownload_to='/home/hipo/exploits';milw0rm_archive_url='http://milw0rm.com/sploits/milw0rm.tar.bz2';milw0rm_archive_name='milw0rm.tar.bz2';if [ ! -d '/home/hipo/exploits' ]; thenmkdir -p $download_to;ficd $download_to;wget -q $milw0rm_archive_url;tar -jxvvf $milw0rm_archive_name;rm -f $milw0rm_archive_name;exit 0 The script is available as wellfor download via milw0rm_exploits_download.sh
To make the script operational I’ve set it up to execute via cron with
the following cron record:
00 1 * * * /path_to_script/milw0rm_exploits_download.sh >/dev/null 2>&1 Here is another shell code I used to download all packetstormsecurity exploits frompacketstormsecurity’s website:
#!/usr/local/bin/bash# Download packetstormsecurity exploits# uses jot in order to run in freebsdpacketstorm_download_dir='/home/hipo/exploits';if [ ! -d "$packetstorm_download" ]; thenmkdir -p "$packetstorm_download";for i in $(jot 12); do wget http://www.packetstormsecurity.org/0"$i"11-exploits/0"$i"11-exploits.tgz; done
The script can be obtained also via following link (packetstormsecurity_expl_db_download.sh)

Another interesting tutorial that relates to the topic of building local
mirrors (local exploit database) is an article I found on darkc0de.com’s
website calledHow to build a local exploit database
The article explains thoroughly
howto prepare packetstormsecurity exploits database mirrorand
how to mirror milw0rm through python scripts.
Herein I include links to the 2 mirror scripts:
PacketStorm Security Mirror Script
milw0rm archive mirror script
Basicly the milw0rm archive script is identical to the small shellscript
I’ve written and posted above in the article. However I believe there is
one advantage of the shellscript it doesn’t require you
to have python installed 🙂

Howto install Bible on Nokia 9300i (SymbianBible)

Thursday, January 7th, 2010

Since I’m a Christian and firmly believe in the Lord Jesus Christ
as a Lord and Saviour and I love to read the bible every now and then
I found it a nice idea to have the Bible on my mobile phone.
After some research in uncle Google, I found the software that suits mymobile phone Nokia 9300i. The software is called
(SymbianBible): Bible Reader for Symbian OS Series 60 and 80
The software comes without a bible data file, thus requires you to download andplace the bible data file to some location on your mobile phone.
Here is how to install:


1. Download s80biblev2-0.98.1.sis
2. Download Some Bible data file from your choice here


or Use

that includes both the SymbianBible and the King James Bible version data file.
You can now enjoy reading the Holy Bible on your smartphone and Bless
the Lord for letting me write this post!

Playing Doom 2 on Nokia 9300i using C2Doom for S80

Wednesday, January 6th, 2010

c2doom logo

Few weeks ago, I was able to install and run properly
the wonderful oldschool game a favourite choice of every
computer geek there Doom 2 on my Nokia 9300i.
It took me a while until I was able to make the game work correctly
on this smartphone, well anyways.
Here is step by step explanation on how, I achieved in running the game
on the Nokia 9300i.


1. Download and install The c2doom file on your mobile
2. Download Doom 2′s original WAD file
3. Copy the file to your mobile via bluetooth and store it somewhere
on your memory card or the main drive (The Communicator).

This should be it, Doom2′s nokia program will automatically scan your mobile
phone drives and determine if doom’s wad is available and if it’s available
will automatically run the game with the found wad file.
I believe C2DOOM would support both Doom.wad
(to enable you play doom 1) and Doom2.wad to play (Doom 2).
I even tried C2Doom with the freedoom available WAD files,
unfortunately the game won’t run with them.
It hangs right after loading the wad file. So playing freedoom via C2DOOM
is impossible at the present moment. Let’s hope the future releases of the doomport for Nokia C2DOOM will support it as well.
Just to conclude the post, let me tell you that the game play and everything
is identical to the original PC DOOM 2 game. This is really awesome!
Even Doom 2′s cheats like:

1. idkfa – grants you all the weapons
2. iddqd – grants you immortality
work in the game
The original download page of the Doom game port for Symbian is located here
Check it out for even more stuff, the website provides you with other valuable
cool stuff, like for example the Doom Music Player which
is able to play you doom’s soundtrack 🙂 Pretty Cool man, pretty Cool! 🙂

Fix Mplayer non working-controls “No bind found for key ‘JOY_RIGHT’.-JOY_DOWN”

Sunday, January 3rd, 2010

Since some time I’m facing issues with non-working controls in mplayer.
It’s pretty annoying. The last time I googled for a solution I couldn’t findanything as a fix. Luckily this time I found the solution
It’s pretty easy and it comes simply to adding a line to /etc/mplayer/mplayer.conf
in Debian or any other location where mplayer.conf is located:
Here is the line required to be added: nojoystick=yes In case if it has to be done on user level. The same option has to be included in ~/.mplayer/config Cheers 🙂