nmap output Failed to open normal output file n for writing

ikask picture ikask · Nov 26, 2016 · Viewed 13.4k times · Source

when I execute using zenmap command, I get the error, Failed to open normal output file n for writing QUITTING!

How can I write the scan result to a file?

nmap -oN n "c:\\temp\\scan1.txt" 192.168.1.2

Answer

Bill Bell picture Bill Bell · Nov 26, 2016

According to this quote from the manual:

OUTPUT:
  -oN/-oX/-oS/-oG <file>: Output scan in normal, XML, s|<rIpt kIddi3,
     and Grepable format, respectively, to the given filename.

It appears that the file designation should be placed immediately following the oN (ie, without the intervening n).