mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 06:01:28 +00:00
not directly related to the change from C++ to Lua for the NSE main procedures. The changes are discussed in the nse-lua thread here: http://seclists.org/nmap-dev/2009/q1/0047.html
42 lines
689 B
C++
42 lines
689 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 "lualib.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_updatedb();
|
|
void script_scan_free();
|
|
|
|
void nse_restore (lua_State *, int);
|
|
|
|
int open_nse (void);
|
|
int script_scan(std::vector<Target *> &targets);
|
|
void close_nse (void);
|
|
|
|
#endif
|