May 2017
Intermediate to advanced
416 pages
21h 33m
English
To save the scan results to a file in grepable format, add the option -oG <filename>, as shown in the following command:
$ nmap -oG <output file> <target>
The output file should appear after the scan is complete:
$ nmap -F -oG scanme.grep scanme.nmap.org$ cat nmap.grep # Nmap 7.40SVN scan initiated Thu Dec 29 15:21:44 2016 as: nmap -F - oG scanme.grep scanme.nmap.org Host: 45.33.32.156 (scanme.nmap.org)Status: Up Host: 45.33.32.156 (scanme.nmap.org)Ports: 22/open/tcp//ssh///, 25/filtered/tcp//smtp///, 80/open/tcp//http///Ignored State: closed (97) # Nmap done at Thu Dec 29 15:21:56 2016 -- 1 IP address (1 host up) scanned in 11.38 seconds
Read now
Unlock full access