PortBunny 1.0 has been released; a tool I mentioned just a few days ago. I run Ubuntu 7.04 on my laptop and wanted to try PortBunny on it.
michael@orion:~/Desktop$ tar xfz PortBunny-1.0.tar.gz
michael@orion:~/Desktop$ cd PortBunny-1.0/
make -C /lib/modules/2.6.20-16-386/build M=/home/michael/Desktop/PortBunny-1.0 modules
make: *** /lib/modules/2.6.20-16-386/build: No such file or directory. Stop.
make: *** [all] Error 2
Dang, I thought I had the linux-kernel-headers installed. It is easy to check if the installation is complete by looking for the existence of /lib/modules/2.6.20-16-386/build. If it is not there, it needs to be properly installed. The command ‘uname -r’ will display the current kernel version. In the command below, those are accent marks (or ticks).
sudo apt-get install linux-headers-`uname -r`
After that, a “make” and a “make install” succeed and PortBunny happily port scans whatever I point it at. It had no problems scanning the few boxes on my network as long as I didn’t have any active firewalls running, i.e. a firewall that shuns me after a threshold of port connection attempts. Good stuff!