Open Deedasmi opened 8 years ago
Richard,
Thanks for reporting this! This would happen if stats were requested (by --stats-every or by pressing a key) during a scan phase where no scripts were requested (as in the pre-scanning phase with default category scripts, I think). I added a check for 0 script threads to avoid a division by zero, and the problem went away. Look for the fix in the next release, but meantime use a longer --stats-every interval to avoid requesting during an empty scan phase.
Dan
Should be solved in next nmap release.
nmap_proc = NmapProcess(targets="127.0.0.1", options="-sU -p 18000 -A") nmap_proc.sudo_run_background() parsed = NmapParser.parse(nmap_proc.stdout)
Nmap command:
sudo nmap -oX - -vvv -stats-every 1s -sU -p 18000 -A
Turns out it's an issue with nmap, not the lib. It would be nice if stats-every was an option we could control though.