May 2017
Intermediate to advanced
416 pages
21h 33m
English
To save the scan results to a file in a normal output format, add the option -oN <filename>. This option only affects the output format and can be combined with any port or host scanning technique (and of course, any other Nmap option):
$ nmap -oN <output file> <target>
After the scan is complete, the output should be saved now in the specified file:
$ nmap -oN scanme.txt scanme.nmap.org $ cat scanme.txt # Nmap 7.40SVN scan initiated Thu Dec 29 13:25:54 2016 as: nmap -oN - scanme.nmap.org Nmap scan report for scanme.nmap.org (45.33.32.156) Host is up (0.16s latency). Other addresses for scanme.nmap.org (not scanned): 2600:3c01::f03c:91ff:fe18:bb2f Not shown: 995 closed ports PORT STATE SERVICE 22/tcp open ssh ...
Read now
Unlock full access