Nmap Development mailing list archives
Re: [NSE][patch] Load script-args from a file
From: Toni Ruottu <toni.ruottu () iki fi>
Date: Thu, 16 Jun 2011 12:58:47 +0300
This is an interesting idea. It might be useful to have some kind of scan profiles, that would ship with nmap. Do we have something like that already? Should a profile contain just the script arguments? Perhaps it should have the script names as well? How about other scan parameters? I believe Zenmap has some kind of profiles. Are these usable from the command line? On Thu, Jun 16, 2011 at 6:12 AM, Daniel Miller <bonsaiviking () gmail com> wrote:
Hey list! Here's a patch to let users specify a file from which to load script-args. Example: $ cat ~/.nmap/myargs smbdomain=WORKGROUP, smbpassword=MyPa$$, $ nmap --script smb-* --script-args file=myargs target.example.com Simply put, it checks for a script-arg of "file", parses the contents of the file the same way we currently parse the argument to --script-args, combines it with any arguments on the command line, then goes about business as usual. Any arguments on the command line supersede ones in the file. The file can be an absolute path, or a path relative to Nmap's usual search path (NMAPDIR, etc.) Dan _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- [NSE][patch] Load script-args from a file Daniel Miller (Jun 15)
- Re: [NSE][patch] Load script-args from a file Toni Ruottu (Jun 16)
- Re: [NSE][patch] Load script-args from a file Djalal Harouni (Jun 21)
- Re: [NSE][patch] Load script-args from a file David Fifield (Jun 21)
- Re: [NSE][patch] Load script-args from a file Fyodor (Jun 18)
- Re: [NSE][patch] Load script-args from a file Daniel Miller (Jun 18)
- Message not available
- Re: [NSE][patch] Load script-args from a file DePriest, Jason R. (Jun 19)
- Re: [NSE][patch] Load script-args from a file Daniel Miller (Jun 18)
- Re: [NSE][patch] Load script-args from a file Toni Ruottu (Jun 16)
- Re: [NSE][patch] Load script-args from a file David Fifield (Jun 21)
- Re: [NSE][patch] Load script-args from a file Daniel Miller (Jun 21)
- Re: [NSE][patch] Load script-args from a file David Fifield (Jun 21)
- Re: [NSE][patch] Load script-args from a file Patrik Karlsson (Jun 22)
- Re: [NSE][patch] Load script-args from a file Daniel Miller (Jun 21)