读取ip:port格式文件,该文件是存活的主机端口,交给nmap进行指纹识别,保存结果。
git clone https://github.com/ShadowFl0w/nmap-cli.git
cd nmap-cli
go build
./nmap-cli -f ./hostip.txt -o nmap.txt
指定输入文件,host:ip类型,
172.16.42.151:8081
172.16.42.1:8082
172.16.2.151:8081
172.16.42.121:8082
172.1.42.151:8080
172.16.42.132:8080
PORT STATE SERVICE VERSION
8080/tcp closed http-proxy
8081/tcp open http SimpleHTTPServer 0.6 (Python 2.7.16)
8082/tcp open http SimpleHTTPServer 0.6 (Python 2.7.16)