Zenmap on Ubuntu 22.04 due to dependency issues

 I had the same problem and using the deb packages as listed on many "howtos" simply doesn't work. Python 2.x has been completely phased out and the last thing you want is a bunch of outdated packages on your system. Luckily someone has forked nmap and updated Zenmap to Python 3. You can install from this source fairly easily:

1. Install prerequisites

$ sudo apt install build-essential checkinstall zlib1g-dev libssl-dev libcurl4-openssl-dev

2. Get the source code from github

$ cd ~/Downloads
$ wget https://github.com/nmap/nmap/archive/refs/heads/master.zip -O nmap.zip

$ unzip nmap.zip

$ cd nmap-master

3. Fix Zenmap config file

There is an error in the current Zenmap config file and if not fixed Zenmap will not be able to find your nmap binary.

$ nano zenmap/share/zenmap/config/zenmap.conf

Navigate to line 60 and fix the [paths] section. Change this:

[paths]
nmap_command_path = ../nmap
ndiff_command_path = ../ndiff/ndiff

To this:

[paths]
nmap_command_path = nmap
ndiff_command_path = ndiff

If you have already gotten everything installed but Zenmap can’t find nmap, you can do the same fix on the file in your home folder:

~/.zenmap/zenmap.conf

4. Compile and install

$ ./configure
$ make
$ sudo make install

5. Run Zenmap

For full functionality of Zenmap, it is recommended to be run as root.

$ sudo zenmap

That's about it! Happy nmapping!!!

Comments

Popular posts from this blog

cpanel exam CPSP Answers

How to install zimbra collaboration suite 8.8.11 on CentOS 7

awstats installation