mirror of
https://github.com/nmap/nmap.git
synced 2026-02-05 04:56:34 +00:00
adding --script_args (underscore cousin of --script-args)
This commit is contained in:
5
nmap.cc
5
nmap.cc
@@ -628,7 +628,8 @@ int nmap_main(int argc, char *argv[]) {
|
||||
{"script_trace", no_argument, 0, 0},
|
||||
{"script-updatedb", no_argument, 0, 0},
|
||||
{"script_updatedb", no_argument, 0, 0},
|
||||
{"script-args",required_argument,0,0},
|
||||
{"script-args",required_argument,0,0},
|
||||
{"script_args",required_argument,0,0},
|
||||
#endif
|
||||
{"ip_options", required_argument, 0, 0},
|
||||
{"ip-options", required_argument, 0, 0},
|
||||
@@ -657,7 +658,7 @@ int nmap_main(int argc, char *argv[]) {
|
||||
if (strcmp(long_options[option_index].name, "script") == 0) {
|
||||
o.script = 1;
|
||||
o.chooseScripts(optarg);
|
||||
} else if(strcmp(long_options[option_index].name,"script-args")==0){
|
||||
} else if(optcmp(long_options[option_index].name,"script-args")==0){
|
||||
o.scriptargs=strdup(optarg);
|
||||
if(script_check_args()!=0)
|
||||
fatal("Error parsing --script-args\n");
|
||||
|
||||
Reference in New Issue
Block a user