Every time I run Nmap I use the -oA
flag. The XML output is an important output item as I feed it into a number of parsers plus Metasploit with db_import
. The --resume option can resume a scan but it is not compatible with XML output.
It happens to me very often that a scan will be 99.XX% complete within a reasonable amount of time and then take twice as long to finish that last percent.
Is there a way to have nmap finish the scan and complete the XML output process early? I would like to avoid having to rescan or manually complete the xml file by hand/custom script.
I've tried bringing down the eth0 interface thinking that would make Nmap crash/quit the scan, however that doesn't seem to help at all.
Note: I know that there are flags I can add at the beginning of the scan to lower the timeout and prevent this problem. But this question is more focused on having already started the scan without those flags.