Nmap Development mailing list archives

[patch] The most minor issue ever: set noninteractive on -iL -


From: Daniel Miller <bonsaiviking () gmail com>
Date: Wed, 28 Mar 2012 12:07:25 -0500

List,

While digging through the option parsing in nmap.cc for a presentation, I noticed that the input of hostnames (-iL or -i) could come from stdin. I think if this is used, then o.noninteractive should be set, since there would be no way to get keystrokes:
Index: nmap.cc
===================================================================
--- nmap.cc    (revision 28355)
+++ nmap.cc    (working copy)
@@ -1048,6 +1048,7 @@
       }
       if (!strcmp(optarg, "-")) {
         o.inputfd = stdin;
+        o.noninteractive = true;
       } else {
         o.inputfd = fopen(optarg, "r");
         if (!o.inputfd) {

I doubt this really matters much, but I thought I'd mention it.

Dan
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: