Showing posts with label firewalk. Show all posts
Showing posts with label firewalk. Show all posts

Wednesday, January 28, 2009

Installing the Firewalk security tool

Unfortunately for all, the firewalk tool is not found in any of the Ubuntu repositories nor is there a .deb file that you can download and install. You will need to download the source code and compile the program yourself.

To get the firewalk source, go to URL http://www.packetfactory.net/projects/firewalk/. Download the source file from the site called "firewalk.tar.gz". You then need to untar the file by typing in a terminal shell:

tar -xvvzf firewalk.tar.gz

This will untar all the files and create their respective directories. You will then need to install the relavent supporting libraries and their development tools with the command:

sudo apt-get install build-essential libpcap-dev libnet1-dev libdnet-dev libdumbnet-dev

Since this tool (firewalk) was developed a few years ago, two of the libraries it uses have changed their names, we will need to link the old name to the new object name with the following sequence of commands:

cd /usr/lib
sudo ln -s libdumbnet.so libdnet.so
cd /usr/include
sudo ln -s dumbnet.h dnet.h

Before you can compile firewalk, there is one change you will need to make to the source. Gutsy (and newer Ubuntu distros) install gcc 4.0 by default, which doesn't like switch statements with no instructions in the "default" case. To fix this, just insert the "break;" command on line 193 of src/firewalk.c:

==== old =====

default:
/* empty */


==== new =====

default:
break;
/* empty */

Now, you are ready to compile everything, issue the following commands in the Firewalk directory:

./configure
make
sudo make install

To install the man pages, type in the following:

sudo mkdir /usr/local/man/man8
sudo cp man/firewalk.8 /usr/local/man/man8

You are now ready to use the firewalk utility command. :)

Note: This was done on a Ubuntu 8.10 distro.