nmap-converter地址(https://github.com/mrschyte/nmap-converter)
Readme
# nmap-converter Python script for converting nmap reports into XLS # Requirements ```bash sudo pip install python-libnmap sudo pip install XlsxWriter ``` or ```bash sudo pip install -r requirements.txt ``` # Usage ```bash usage: nmap-converter.py [-h] [-o XLS] XML [XML ...] positional arguments: XML path to nmap xml report optional arguments: -h, --help show this help message and exit -o XLS, --output XLS path to xlsx output ```
nmap使用这个命令输出xml文件,ip.txt里是所有扫描的ip,也可以直接用ip地址
nmap -p 1-65535 -oX port_65535.xml -iL ip.txt
使用这个命令输出ip.xls
python nmap-converter.py -o ip.xls port.xml