0


2022最新kali下zenmap可视化界面安装

下载zenmap

https://nmap.org/download.html
可以去官网下,也可以像我一样直接用wget

$ wget https://nmap.org/dist/zenmap-7.80-1.noarch.rpm

包转换

Kali 不支持 rmp 命令,我们要安装转化工具将其转换成deb包

$ apt-get install alien 

这里涉及下载速度过缓或者失败问题,所以我们需要换源

$ vim /etc/apt/sources.list

注释掉之前默认的,在下面选择一个源添加

官方源
deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib
中科大源
deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
阿里云源
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
清华大学源
deb http://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
deb-src https://mirrors.tuna.tsinghua.edu.cn/kali kali-rolling main contrib non-free
浙大源
deb http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
deb-src http://mirrors.zju.edu.cn/kali kali-rolling main contrib non-free
东软大学源
deb http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
deb-src http://mirrors.neusoft.edu.cn/kali kali-rolling/main non-free contrib
新加坡kali源
deb http://mirror.nus.edu.sg/kali/kali/ kali main non-free contrib
deb-src http://mirror.nus.edu.sg/kali/kali/ kali main non-free contrib
163 Kali源
deb http://mirrors.163.com/debian wheezy main non-free contrib
deb-src http://mirrors.163.com/debian wheezy main non-free contrib

保存之后进行更新

$ apt-get update #更新软件列表
$ apt-get upgrade #更新已安装软件

转换指令

$ fakeroot alien zenmapxxxx.rpm

转换后会生成一个 deb的包

安装

使用指令安装

dpkg -i zenmapxxx.deb

然后使用

zenmap

我这时候报错

Could not import the zenmapGUI.App module: ‘No module named gtk’.
I checked in these directories:
/usr/bin
/usr/lib/python2.7
/usr/lib/python2.7/plat-x86_64-linux-gnu
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
/usr/local/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages
/usr/lib/python2.7/dist-packages/gtk-2.0
/usr/lib/python2.6/site-packages
If you installed Zenmap in another directory, you may have to add the
modules directory to the PYTHONPATH environment variable.

错误处理

其实解决的办法很简单,只要下载对应的运行环境即可

python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
python-gobject-2_2.28.6-14ubuntu1_amd64.deb
pycairo/python-cairo_1.16.2-2ubuntu2_amd64.deb

wget http://archive.ubuntu.com/ubuntu/pool/universe/p/pygtk/python-gtk2_2.24.0-5.1ubuntu2_amd64.deb
wget http://azure.archive.ubuntu.com/ubuntu/pool/universe/p/pygobject-2/python-gobject-2_2.28.6-14ubuntu1_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/universe/p/pycairo/python-cairo_1.16.2-2ubuntu2_amd64.deb

下载好三个文件后在使用如下语句
dpkg -i 加上文件名
举个例子 dpkg -i python-cairo_1.16.2-2ubuntu2_amd64.deb

安装完上述环境之后,就能打开zenmap的可视界面了

标签: 安全 网络 linux

本文转载自: https://blog.csdn.net/qq_45234543/article/details/128032437
版权归原作者 雲深拾月 所有, 如有侵权,请联系我们删除。

“2022最新kali下zenmap可视化界面安装”的评论:

还没有评论