1
0
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:
diman
2008-02-03 14:21:36 +00:00
parent 7c6a4479bb
commit 2d9bc1b43d
9 changed files with 1797 additions and 202 deletions

View File

@@ -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