So on 21st May 2012 version 6 of nmap was released. Only issue is that they dont seem to release a deb package for it.
No big deal we’ll just have to build our own (tested on BT5r2 32+64bit)…
1 2 3 4 5 6 7 8 9 10 11 | echo "deb http://security.ubuntu.com/ubuntu lucid-security main" >> /etc/apt/sources.list apt-get update apt-get upgrade apt-get install libssl-dev checkinstall wget http://nmap.org/dist/nmap-6.00.tar.bz2 bzip2 -cd nmap-6.00.tar.bz2 | tar xvf - cd nmap-6.00 ./configure make checkinstall --install=no #Fill in the details as you desire and you're done |
If you’re feeling particularly lazy I have built the packages and uploaded them here:
nmap_6.00-1_amd64.deb
nmap_6.00-1_i386.deb
I use Armitage and the option to do a quick nmap scan and i get this:
msf > db_nmap –min-hostgroup 96 -T4 -n -F 192.168.0/24
[*] Nmap: Starting Nmap 5.51SVN ( http://nmap.org ) at 2012-06-06 01:39 EEST
How can i know that is using the new version 6 and not the old one?
Thank you
Ok this is because nmap is packaged by metasploit and included here:
2
3
4
5
6
Nmap version 5.51SVN ( http://nmap.org )
Platform: i686-pc-linux-gnu
Compiled with: nmap-liblua-5.1.3 openssl-0.9.8r libpcre-6.4.7.4 libpcap-0.9.4 nmap-libdnet-1.12 ipv6
Compiled without:
root@bt:~#
Creating a symlink or simply copying the binary will fix this for armitage:
2
3
4
5
6
/usr/local/bin/nmap
root@bt:~# cd /opt/metasploit/common/bin/
root@bt:/opt/metasploit/common/bin# mv nmap nmap_old
root@bt:/opt/metasploit/common/bin# cp /usr/local/bin/nmap .
root@bt:/opt/metasploit/common/bin#
And then test armitage:
2
3
4
5
6
7
8
9
[*] Nmap: Starting Nmap 6.00 ( http://nmap.org ) at 2012-06-06 10:04 BST
[*] Nmap: Nmap scan report for 192.168.0.4
[*] Nmap: Host is up (0.00032s latency).
[*] Nmap: Not shown: 99 closed ports
[*] Nmap: PORT STATE SERVICE
[*] Nmap: 111/tcp open rpcbind
[*] Nmap: MAC Address: 48:5B:39:CA:DA:89 (Asustek Computer)
[*] Nmap: Nmap done: 1 IP address (1 host up) scanned in 1.53 seconds
Does Metasploit and other scripts will use the new Nmap version without any problems or modifications on BT 5 R2 if i us this deb file to install it?
It will replace the old one?
It will replace the old one and then if a new version comes out within the aptitude repository that will replace this one. By installing this it will not break the package management. If nmap has changed internally I’m not sure how 3rd party scripts will handle it.
Many thanks for providing this .deb, so I can test nmap6 until either the nmap authors or debian itself in their wisdom decide to publish “official” packets.