1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-08 06:26:33 +00:00

[NSE] Added

nse_gettarget (lua_State *L, int index);
to replace the current_hosts static variable shared between nse_main.cc
and nse_nmaplib.cc. This improves locality and offers a clearer interface.
This commit is contained in:
batrick
2009-08-29 01:24:29 +00:00
parent 9044a42c6b
commit 3c14c0d7b1
3 changed files with 18 additions and 16 deletions

View File

@@ -36,6 +36,7 @@ void nse_restore (lua_State *, int);
void nse_destructor (lua_State *, char);
void nse_base (lua_State *);
void nse_selectedbyname (lua_State *);
void nse_gettarget (lua_State *, int);
void open_nse (void);
void script_scan (std::vector<Target *> &targets);