mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
modified nse_init.cc, added binlib and hashlib to NSE
This commit is contained in:
parent
f07cebb87f
commit
3398e1f94e
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue