mirror of
https://github.com/nmap/nmap.git
synced 2026-01-08 23:49:03 +00:00
modified nse_init.cc, added binlib and hashlib to NSE
This commit is contained in:
@@ -7,6 +7,9 @@
|
||||
// 3rd Party libs
|
||||
#include "nse_pcrelib.h"
|
||||
|
||||
#include "nse_binlib.h"
|
||||
#include "nse_hash.h"
|
||||
|
||||
#include "nbase.h"
|
||||
|
||||
#include "nmap.h"
|
||||
@@ -215,6 +218,8 @@ int init_lua (lua_State *L)
|
||||
static const luaL_Reg libs[] = {
|
||||
{NSE_PCRELIBNAME, luaopen_pcrelib}, // pcre library
|
||||
{"nmap", luaopen_nmap} // nmap bindings
|
||||
,{NSE_BINLIBNAME, luaopen_binlib}
|
||||
,{NSE_HASHLIBNAME, luaopen_hashlib}
|
||||
};
|
||||
|
||||
luaL_openlibs(L); // opens all standard libraries
|
||||
|
||||
Reference in New Issue
Block a user