Nmap Development mailing list archives
Re: [NSE] new function to parse arguments
From: Djalal Harouni <tixxdz () gmail com>
Date: Mon, 16 Aug 2010 23:12:45 +0100
On 2010-08-16 10:02:37 -0600, David Fifield wrote:
On Mon, Aug 16, 2010 at 02:13:33PM +0100, Djalal Harouni wrote:BTW, I've updated the function to return multiple script argument values instead of a table as suggested by Patrick. Committed as r19776. e.g: --script-args 'script.arg1=value,script.arg3,script-x.arg=value' local arg1, arg2, arg3 = get_script_args('script.arg1', 'script.arg2','script.arg3') => arg1 = value => arg2 = nil => arg3 = 1I think this looks good. If there are no other suggestions you can commit it.
I've just committed this to Nmap trunk as r19816, so script writers do not need to wait for the 'add target' feature merge. BTW I'm doing some cleaning on that code (nmap-add-targets) before the final merge. Thx. -- tixxdz _______________________________________________ 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] new function to parse arguments Djalal Harouni (Aug 14)
- Re: [NSE] new function to parse arguments Ron (Aug 14)
- Re: [NSE] new function to parse arguments Fyodor (Aug 16)
- Re: [NSE] new function to parse arguments Ron (Aug 16)
- Re: [NSE] new function to parse arguments Djalal Harouni (Aug 16)
- Re: [NSE] new function to parse arguments David Fifield (Aug 16)
- Re: [NSE] new function to parse arguments Djalal Harouni (Aug 16)
- Re: [NSE] new function to parse arguments Fyodor (Aug 16)
- Re: [NSE] new function to parse arguments Ron (Aug 14)