Nmap-Scrape is a script will take the nmap grepable output format and create text files (filename = port number) with a list of IP addresses in these text files. For example, it’ll create an 80.txt file with all IPs with port 80 open.
To generate the results.gnmap file . First Scan with nmap and parse the output file :
cyborg@cyborg:~$ nmap -T4 -A -v -oG results.gnmap scanme.nmap.org
Then scrape the file using nmap scrape
cyborg@cyborg:~$ nmap-scrape results.gnmap Done. Check the "open-ports" folder for results.