Nmap Development mailing list archives
Re: Please Comment: General Host Input Option
From: doug () hcsw org
Date: Mon, 26 Jan 2009 03:19:44 +0000
Hi Cory, On Sun, Jan 25, 2009 at 08:49:14PM -0500 or thereabouts, Cory K. Walker wrote:
I was hoping someone would comment on the usefulness of a more general method to specify a list of hosts in an external file for decoys, DNS servers, etc..
I'm not against such a feature especially if it results in more uniform command line behaviour. I just want to point out how I would do this: nmap --dns-servers `cat servers.txt|perl -ne 's/\s+/,/g;print'` -sL microsoft.com/24 where servers.txt holds a list of IPs separated by newlines, spaces, tabs, or commas so it will accept -iL files. Also note that by leaving off --dns-servers it will use a file by default: /etc/resolv.conf (or, on windows, the registry). This format is different than the format used by -iL. Hope this helps, Doug
Attachment:
_bin
Description:
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://SecLists.Org
Current thread:
- Please Comment: General Host Input Option Cory K. Walker (Jan 25)
- Re: Please Comment: General Host Input Option Ron (Jan 25)
- Re: Please Comment: General Host Input Option Brandon Enright (Jan 25)
- Re: Please Comment: General Host Input Option Ron (Jan 25)
- RE: Please Comment: General Host Input Option Cory K. Walker (Jan 25)
- Re: Please Comment: General Host Input Option Ron (Jan 25)
- Re: Please Comment: General Host Input Option Brandon Enright (Jan 25)
- Re: Please Comment: General Host Input Option doug (Jan 25)
- Re: Please Comment: General Host Input Option Ron (Jan 25)