扫描参数,使用syn扫描速度更快
nmap 8.210.0.0/16 -sS -p1-65535
输出格式,IP:端口
nmap -vv 8.210.0.0/16 -p80,8080 | grep "Discovered open port" | awk {'print $6":"$4'} | awk -F/ {'print $1'} > output.txt
nmap 8.210.0.0/16 -sS -p1-65535
nmap -vv 8.210.0.0/16 -p80,8080 | grep "Discovered open port" | awk {'print $6":"$4'} | awk -F/ {'print $1'} > output.txt