1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-09 23:16:32 +00:00

merging in the --lua-exec feature for ncat.

This commit is contained in:
d33tah
2013-07-02 16:56:03 +00:00
parent 085d4ccfb2
commit b62709eb20
25 changed files with 1594 additions and 31 deletions

View File

@@ -110,6 +110,12 @@ extern size_t targetsslen;
extern union sockaddr_u httpconnect, socksconnect;
extern size_t httpconnectlen, socksconnectlen;
enum exec_mode {
EXEC_PLAIN,
EXEC_SHELL,
EXEC_LUA,
};
struct options {
unsigned short portno;
@@ -152,8 +158,9 @@ struct options {
int conn_limit;
int conntimeout;
/* When execmode == EXEC_LUA, cmdexec is the name of the file to run. */
char *cmdexec;
int shellexec;
enum exec_mode execmode;
char *proxy_auth;
char *proxytype;