Monday, January 11, 2010

Installing Nmap 5.00 by compiling from source

Executing these simple commands will get you up and running quickly with Nmap 5.00 on Unix and Linux systems:

$ wget
$ tar -xf nmap-5.00.tgz
$ cd nmap-5.00
$ ./configure && make
$ sudo make install

You should see the message NMAP SUCCESSFULLY INSTALLED when the process is complete. Once Nmap has been successfully installed, you can verify it is working correctly by executing nmap localhost on the command line.

$ nmap localhost
Starting Nmap 5.00 ( ) at 2009-08-07 00:42 CDT
Warning: Hostname localhost resolves to 2 IPs. Using
Interesting ports on e6400 (
Not shown: 993 closed ports
22/tcp   open  ssh
25/tcp   open  smtp
111/tcp  open  rpcbind
139/tcp  open  netbios-ssn
445/tcp  open  microsoft-ds
631/tcp  open  ipp
2049/tcp open  nfs
Nmap done: 1 IP address (1 host up) scanned in 0.20 seconds

If the results of your scan are similar to the results above, then you have successfully installed Nmap from source.

No comments:

Post a Comment