Nmap Development mailing list archives
[Patch] Badly named output files
From: Jay Bosamiya <jaybosamiya () gmail com>
Date: Tue, 24 Jun 2014 18:48:56 +0530
Hi All! d33tah on IRC said, "i'm getting the impression that maybe nmap should warn me if i do something as stupid as -oX -sV logfile.txt" I personally feel that it should not be a warning but an error (with nmap quitting). Attached is a patch that does this (and for other output types as well). It shows the error messages similar to "Output filename begins with '-'. Try '-oX ./-sV' if you really want it to be named as such. QUITTING." I also have added in some error checking for "-oA -" which should not be allowed IMHO. Feedback is welcome. Cheers, Jay
Attachment:
fileNaming.patch
Description:
_______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- [Patch] Badly named output files Jay Bosamiya (Jun 24)
- Re: [Patch] Badly named output files Daniel Miller (Jun 24)