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 07cfc5aee4 Corrected many #includes for header files (where they are included).
Moved the includes for Lua headers to the .cc files so they are
not needlessly, repeatedly included.

Similarly, moved some standard headers to the .cc files and reorganized
includes to be uniform for all nse_* source files.

Fixed whitespace (removed tabs).
2009-03-10 05:56:10 +00:00

44 lines
807 B
C++

#ifndef NMAP_LUA_H
#define NMAP_LUA_H
#include <vector>
#include <list>
#include <string>
#include <string.h>
#include <iostream>
extern "C" {
#include "lua.h"
#include "lauxlib.h"
}
class ScriptResult
{
private:
std::string output;
std::string id;
public:
void set_output (const char *);
std::string get_output (void);
void set_id (const char *);
std::string get_id (void);
};
typedef std::vector<ScriptResult> ScriptResults;
class Target;
int script_scan(std::vector<Target *> &targets);
int script_updatedb();
void script_scan_free();
//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