Nmap Development mailing list archives
[NmapFE PATCH] Don't include target list when using input file
From: Kris Katterjohn <kjak () ispwest com>
Date: Sun, 01 Oct 2006 20:59:52 -0500
The small attached patch just doesn't include the list of targets from the Target(s) entry box when an input file has been used. I did a strstr(command, "-iL") because I think it's the simplest way to tell if an input file was actually entered. It's not hurting anything, it's just clutter in the Command box. It's a diff against 4.20ALPHA8 Thanks, Kris Katterjohn
--- x/nmapfe/nmapfe_sig.c 2006-09-26 02:49:21.000000000 -0500 +++ y/nmapfe/nmapfe_sig.c 2006-10-01 20:51:13.000000000 -0500 @@ -533,7 +533,8 @@ static int command_size = 0; } } - strcat(command, gtk_entry_get_text(GTK_ENTRY(opt.targetHost))); + if (!strstr(command, "-iL")) + strcat(command, gtk_entry_get_text(GTK_ENTRY(opt.targetHost))); return(command); }
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- [NmapFE PATCH] Don't include target list when using input file Kris Katterjohn (Oct 01)