Tuesday, July 29, 2014

Install and Use Nmap/Zenmap 6 in Ubuntu 14.04

For the installation, you follow the steps listed below.
  1. If you don't have the alien command, install it with a command such as $sudo apt-get install alien
  2. Download the Nmap RPMs for your platform (x86 or x86-64) from http://nmap.org/dist/nmap-6.46-1.i386.rpm or from http://nmap.org/dist/nmap-6.46-1.x86_64.rpm depending on your target operating system. Since my operating system is a 64bit edition I am using the nmap-6.46-1.x86_64.rpm version of Nmap.
  3. Verify the download integrity as described in the section called “Verifying the Integrity of Nmap Downloads”.
  4. Generate a Debian package with a command such as $sudo alien nmap-6.46-1.x86_64.rpm
  5. Install the Debian package with a command such as $sudo dpkg --install nmap-6.46-1.x86_64.rpm.deb
  6. Steps 2–5 can be repeated for the other Nmap RPMs such as Zenmap, Ncat, and Nping.
    • To download Zenmap - http://nmap.org/dist/zenmap-6.46-1.noarch.rpm
    • TO download Ncat - http://nmap.org/dist/ncat-6.46-1.x86_64.rpm
    • To download Nping - http://nmap.org/dist/nping-0.6.46-1.i386.rpm

After the installation of Nmap using the above proceedure, you will probably face the following error while you are executing the nmap command or Zenmap:
nmap: error while loading shared libraries: libsvn_client-1.so.0: cannot open shared object file: No such file or directory .

The solution is:

a) Install subversion:
$apt-get install subversion 

b) make this symlink:
$ln -s /usr/lib/libsvn_client-1.so.1.0.0 /usr/lib/libsvn_client-1.so.0  (This should work for most of the cases.)

or

$ln -s /usr/lib/x86_64-linux-gnu/libsvn_client-1.so.1.0.0 /usr/lib/libsvn_client-1.so.0 (In my case this works, not the above.)

To run Zenmap/Nmap:
$sudo Zenmap or $sudo nmap

Refer the website http://nmap.org/6/ for command references.

0 comments: