How to Install ZenMap in Kali Linux 2021
This post was prepared for guide you how to install ZenMap in Kali Linux.
Zenmap is the official Nmap Security Scanner GUI. It is a multi-platform (Linux, Windows, Mac OS X, BSD, etc.) free and open source application which aims to make Nmap easy for beginners to use while providing advanced features for experienced Nmap users.
- Install Python 2.7
- Install nmap
- Download ZenMap RPM Package
- Install Alien
- Convert RPM to DEB
- Install ZenMap
Install Python 2.7:
First of you need to install python 2.7 for executing ZenMap. Because zenmap is only supported in Python 2.7. In Default, Kali Linux have python 3. So, you doesn’t able to run ZenMap.
Steps for installing python 2.7:
- Prerequisites for Python
- Download Python 2
- Compile python source code.
- Check python version.
Step 1 : Prerequisites for Python 2
You must want to install the following prerequisites on your system. Open a terminal and execute the following commands on your system for installing all the required dependencies.
mk007@linuxlia:~$ sudo apt-get update mk007@linuxlia:~$ sudo apt-get install build-essential checkinstall mk007@linuxlia:~$ sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev li
Step 2 : Download Python 2.7
Open a terminal and switch the directory to /usr/bin.
mk007@linuxlia:~$ cd /usr/src
Here run the following command for downloading python2 tgz packages.
mk007@linuxlia:~$ wget https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz
Now extract the tgz packages by running the below command.
mk007@linuxlia:~$ sudo tar xzf Python-2.7.18.tgz
Step 3 : Compile Python Source
Use the following commands to compile Python source code on your system using altinstall.
mk007@linuxlia:~@ cd Python-2.7.18 mk007@linuxlia:~@ sudo ./configure --enable-optimizations mk007@linuxlia:~@ sudo make altinstall
make altinstall command is used to prevent replacing the default python binary file /usr/bin/python.
Step 4 : Check Python Version
Check the version of python using the following command.
mk007@linuxlia:~@ python2.7 -V Python 2.7.18
Before installing ZenMap, you need to install Nmap. In terminal, run the following apt command,
mk007@linuxlia:~@ sudo apt-get install nmap
Download ZenMap RPM Packages:
After installing Nmap, download zenmap .rpm packages in there official site.
Click the link”zenmap-7.91-.noarch.rpm“.
ZenMap .rpm package was started to download automatically.
You need to convert this rpm package to debian packages. Use alien file converter for doing this.
If you install alien via apt command, then the following error was occurs.
package build failed. here's the log: dh dh: error:specify sequence to run make:***[debian/rules:7:binary]Error 25
So, first of all you need to remove this alien and install it in my method.
Read this post for perfect installation >>>> Alien Installation Guide
Convert RPM to DEB:
First of switch the directory to where was the downloaded file was located.
mk007@linuxlia:$ cd Downloads
Here run the command in below format.
mk007@linuxlia:/Downloads$ sudo alien package_name.rpm
The generated Debian package ownership was under root. You need to change the ownership of the file before you use it. Run the following command for changing the ownership.
mk007@linuxlia:$ sudo chown -v 'username' genarated_package_name.deb
Now run the following dpkg command for installing zenmap.
mk007@linuxlia:$ sudo dpkg --install zenmap.deb
Finally ZenMap was successfully installed.
If you have any doubts about this post please leave a comment otherwise ping me in Instagram. Am ready to solve your doubts.