mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 22:21:29 +00:00
added a CLI debugger
This commit is contained in:
7
nmap.cc
7
nmap.cc
@@ -627,6 +627,8 @@ int nmap_main(int argc, char *argv[]) {
|
||||
{"script", required_argument, 0, 0},
|
||||
{"script-trace", no_argument, 0, 0},
|
||||
{"script_trace", no_argument, 0, 0},
|
||||
{"script-debug", no_argument, 0, 0},
|
||||
{"script_debug", no_argument, 0, 0},
|
||||
{"script-updatedb", no_argument, 0, 0},
|
||||
{"script_updatedb", no_argument, 0, 0},
|
||||
{"script-args",required_argument,0,0},
|
||||
@@ -666,8 +668,11 @@ int nmap_main(int argc, char *argv[]) {
|
||||
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) {
|
||||
} else if (optcmp(long_options[option_index].name, "script-trace") == 0) {
|
||||
o.scripttrace = 1;
|
||||
} else if (optcmp(long_options[option_index].name, "script-debug") == 0) {
|
||||
o.scriptdebug = 1;
|
||||
o.noninteractive = true;
|
||||
} else if (optcmp(long_options[option_index].name, "script-updatedb") == 0){
|
||||
o.scriptupdatedb = 1;
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user