-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathmain.cpp
More file actions
136 lines (120 loc) · 3.53 KB
/
main.cpp
File metadata and controls
136 lines (120 loc) · 3.53 KB
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
#include "Definition/stdafx.h"
#include "Communication/xor.h"
#include "Communication/api.h"
#include "driver/driver.h"
#include "injection/injector.h"
#include "Communication/drvutils.h"
///////////////////////////////////////////
#include <iostream>
#include <tlhelp32.h>
#include <fstream>
#include <filesystem>
#include <conio.h>
#include <tchar.h>
#include <urlmon.h>
#define _WIN32_WINNT 0x0500
#include <iostream>
#include <Windows.h>
#include <string>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#pragma comment(lib, "urlmon.lib")
#include <Mmsystem.h>
#include <mciapi.h>
#include <cstdio>
#include <strsafe.h>
#include <cstdlib>
#include <windows.h>
#include <d3d9.h>
#include <iostream>
#include <Dwmapi.h>
#include <TlHelp32.h>
//////////////////////////////////////////
using namespace std;
char ProcWindow[24];
char dllname[24];
void setcolor(unsigned short color)
{
HANDLE hcon = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(hcon, color);
}
void SetConsoleWindow(HANDLE conout, SHORT cols, SHORT rows)
{
CONSOLE_SCREEN_BUFFER_INFOEX sbInfoEx;
sbInfoEx.cbSize = sizeof(CONSOLE_SCREEN_BUFFER_INFOEX);
GetConsoleScreenBufferInfoEx(conout, &sbInfoEx);
sbInfoEx.dwSize.X = cols;
sbInfoEx.dwSize.Y = rows;
sbInfoEx.srWindow = { 0, 0, cols, rows };
sbInfoEx.dwMaximumWindowSize = { cols, rows };
SetConsoleScreenBufferInfoEx(conout, &sbInfoEx);
DWORD mode;
GetConsoleMode(conout, &mode);
mode &= ~ENABLE_WRAP_AT_EOL_OUTPUT;
SetConsoleMode(conout, mode);
}
int s_width = 800;
int s_height = 600;
#define CENTERX (GetSystemMetrics(SM_CXSCREEN)/2)-(s_width/2)
#define CENTERY (GetSystemMetrics(SM_CYSCREEN)/2)-(s_height/2) //scrollbar remove
LPDIRECT3D9 d3d; // the pointer to our Direct3D interface
LPDIRECT3DDEVICE9 d3ddev;
HWND hWnd;
const MARGINS margin = { 0,0,s_width,s_height };
void TitleThread()
{
while (true)
{
SetConsoleTitleA(random_string().c_str());
}
}
std::thread Title(TitleThread);
int main()
{
Title.detach();
HANDLE hInput;
DWORD prev_mode;
hInput = GetStdHandle(STD_INPUT_HANDLE);
GetConsoleMode(hInput, &prev_mode);
SetConsoleMode(hInput, prev_mode & ENABLE_EXTENDED_FLAGS);
//scrollbar off
HANDLE out = GetStdHandle(STD_OUTPUT_HANDLE);
SHORT cols = 100, rows = 20;
SetConsoleWindow(out, cols, rows);
int counter = 11; //amount of seconds
string dwnld_URL = "DOWNLOAD LINK GOES HERE";
string savepath = "C:\\Windows\\Logs\\bobo.dll";
URLDownloadToFileA(NULL, dwnld_URL.c_str(), savepath.c_str(), 0, NULL);
if ("C:\\Windows\\Logs\\bobo.dll")
{
setcolor(7);
std::cout << " discord.gg/bobo \n\n\n";
DriverInitialization();
//driver();
cout << endl;
setcolor(7);
cout << xor_a("[-] Open Modern Warfare..") << endl;
while (FindWindowEx(NULL, NULL, xor_a("IW8"), NULL) == NULL) {
cout << ".";
Sleep(1000);
}
system("cls");
std::cout << " discord.gg/bobo \n\n\n";
cout << xor_a("[+] Recognized process..") << endl;
Sleep(2000);
setcolor(2);
cout << xor_a("[>] Injecting, listen for the 'BEEP' and closing after") << endl;
Sleep(2000);
Enject(xor_a("IW8"), xor_w(L"C:\\Windows\\Logs\\bobo.dll"));
Beep(200, 400);
MessageBox(NULL, "[+] Injected Warzone Tool.\n[+] Press 'OK'", "Security", 1);
//setcolor(7);
//cout << xor_a("[>] Inject, Closing. . .") << endl;
cout << endl;
Sleep(666);
}
cout << endl;
//Sleep(1000);
exit;
}