1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-27 18:09:01 +00:00

script arguments now get checked before nmap starts scanning

This commit is contained in:
stoiko
2007-08-20 21:56:36 +00:00
parent 8533cf8790
commit 4767dd8c70
5 changed files with 87 additions and 28 deletions

View File

@@ -659,6 +659,8 @@ int nmap_main(int argc, char *argv[]) {
o.chooseScripts(optarg);
} else if(strcmp(long_options[option_index].name,"script-args")==0){
o.scriptargs=strdup(optarg);
if(script_check_args()!=0)
fatal("Error parsing --script-args\n");
}else if (optcmp(long_options[option_index].name, "script-trace") == 0) {
o.scripttrace = 1;
} else if (optcmp(long_options[option_index].name, "script-updatedb") == 0){