1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00
Files
nmap/nse_main.h
batrick f424fd21b2 Updated some macros to clean up code. Moved
porttests and hosttests to Lua's registry where they belong.
2008-07-07 17:33:36 +00:00

37 lines
651 B
C++

#ifndef NMAP_LUA_H
#define NMAP_LUA_H
extern "C" {
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
}
#include <vector>
#include <list>
#include <string>
#include <string.h>
#include <iostream>
struct script_scan_result {
char* id;
char* output;
};
typedef std::vector<struct script_scan_result> ScriptResults;
class Target;
int script_scan(std::vector<Target *> &targets);
int script_updatedb();
//parses the arguments provided to scripts via nmap's --script-args option
int script_check_args();
int process_waiting2running(lua_State *, int);
/* Useful auxiliary functions */
size_t table_length(lua_State *, int);
#endif