安装python-nmap(针对Python3,未来趋势而已。2.x的基本不要玩了)
勿使用pip install nmap,是python-nmap模块、不是nmap模块!
pip3 install python
-
nmap
提示出错:nmap program was not found in path. PATH 需要安装nmap软件,再编辑python-nmap模块,添加软件的安装路径
def __init__(self, nmap_search_path=('nmap', '/usr/bin/nmap', '/usr/local/bin/nmap', '/sw/bin/nmap', '/opt/local/bin/nmap','D:\Program Files (x86)\\Nmap\\nmap.exe'))