How do i log the output of nmap?
-
Nmap has can log output in a number of formats.
The options for logging output are:
Log to text file.
$ nmap -oN outfile.txt localhost
Log to XML file.
$ nmap -oX outfile.xml localhost
Log to a grepable file.
$ nmap -oG outfile.txt localhost
Log all formats. Do not put the extension on this, nmap adds them for each file format.
$ nmap -oA outfile localhost
outfile.gnmap outfile.nmap outfile.xml
© Lightnetics 2024