首先最新的链接地址和《python绝技》上不同,已经修改。

下载后tar,然后运行python setup.py install



root@kali:/# wget http://xael.org/pages/python-nmap-0.6.1.tar.gz

--2017-03-22 13:41:38--  http://xael.org/pages/python-nmap-0.6.1.tar.gz

Resolving xael.org (xael.org)... 194.36.166.10

Connecting to xael.org (xael.org)|194.36.166.10|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 41953 (41K) [application/x-gzip]

Saving to: ‘python-nmap-0.6.1.tar.gz’


python-nmap-0.6.1.t 100%[===================>]  40.97K  6.93KB/s    in 5.9s    


2017-03-22 13:41:49 (6.93 KB/s) - ‘python-nmap-0.6.1.tar.gz’ saved [41953/41953]