mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +00:00
Now does most of it's work through Lua:
From Nmap-dev: "Many of the changes consist of changing how Nmap interfaces
with Lua that were sometimes awkward or inflexible. Most of the functions
have been made to be callable directly by Lua which offers many technical
advantages: stack management is alleviated, errors are handled cleanly and
are more descriptive, and there is increased reusability."
Additionally:
-- Moved all lua_State * symbols from "l" to "L". This is to maintain
consistency with other Lua libraries (convention) and to make our macros portable.
-- Moved file system manipulation over to nse_fs.cc (from nse_init.cc)
23 lines
410 B
C++
23 lines
410 B
C++
#ifndef NSE_FS
|
|
#define NSE_FS
|
|
|
|
extern "C" {
|
|
#include "lua.h"
|
|
#include "lualib.h"
|
|
#include "lauxlib.h"
|
|
}
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
#include <string.h>
|
|
|
|
int nse_check_extension (const char* ext, const char* path);
|
|
|
|
int nse_fetchfile(char *path, size_t path_len, const char *file);
|
|
|
|
int nse_fetchfile_absolute(char *path, size_t path_len, const char *file);
|
|
|
|
int nse_scandir (lua_State *L);
|
|
|
|
#endif
|