1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Add --script-timeout option to limit the script's runtime. Closes #330 and Fixes #234.

This commit is contained in:
abhishek
2016-08-20 18:57:47 +00:00
parent b5656da197
commit cd0b373130
5 changed files with 31 additions and 3 deletions

View File

@@ -384,6 +384,7 @@ static void open_cnse (lua_State *L)
nseU_setsfield(L, -1, "scriptargs", o.scriptargs);
nseU_setsfield(L, -1, "scriptargsfile", o.scriptargsfile);
nseU_setsfield(L, -1, "NMAP_URL", NMAP_URL);
nseU_setnfield(L, -1, "script_timeout", o.scripttimeout);
}