-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathkoruma.cpp
189 lines (175 loc) · 4.78 KB
/
koruma.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
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
#include "koruma.h"
std::uint32_t process(const std::string& name)
{
const auto snap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
if (snap == INVALID_HANDLE_VALUE) {
return 0;
}
PROCESSENTRY32 proc_entry{};
proc_entry.dwSize = sizeof proc_entry;
auto found_process = false;
if (!!Process32First(snap, &proc_entry)) {
do {
if (name == proc_entry.szExeFile) {
found_process = true;
break;
}
} while (!!Process32Next(snap, &proc_entry));
}
CloseHandle(snap);
return found_process
? proc_entry.th32ProcessID
: 0;
}
void titlekoruma() {
HWND slm1 = FindWindowW(_xor_(L"Qt5QWindowIcon").c_str(), 0); // Class ID denetleyici
if (slm1)
{
MessageBoxA(NULL, _xor_("Debugger Detected").c_str(), _xor_("Security").c_str(), MB_ICONERROR);
Sleep(1);
exit(1);
}
HWND slm2 = FindWindow(NULL, (_xor_("OllyDbg").c_str())); // Title Denetleyici
if (slm2)
{
MessageBoxA(NULL, _xor_("Debugger Detected").c_str(), _xor_("Security").c_str(), MB_ICONERROR);
Sleep(1);
junk();
exit(1);
}
HWND slm3 = FindWindowW(_xor_(L"XTPMainFrame").c_str(), 0); // Class ID denetleyici
if (slm3)
{
MessageBoxA(NULL, _xor_("Debugger Detected").c_str(), _xor_("Security").c_str(), MB_ICONERROR);
Sleep(1);
junk();
exit(1);
}
HWND slm4 = FindWindow(NULL, (_xor_("HTTP Debugger").c_str())); // Title Denetleyici
if (slm4)
{
MessageBoxA(NULL, _xor_("Debugger Detected").c_str(), _xor_("Security").c_str(), MB_ICONERROR);
Sleep(1);
exit(1);
}
HWND slm5 = FindWindowW(_xor_(L"XTPMainFrame").c_str(), 0); // Class ID denetleyici
if (slm5)
{
MessageBoxA(NULL, _xor_("Debugger Detected").c_str(), _xor_("Security").c_str(), MB_ICONERROR);
Sleep(1);
exit(1);
}
Sleep(1000);
}
void Debugkoruma() {
junk();
std::cout << _xor_("\n ");
__try {
DebugBreak();
}
__except (GetExceptionCode() == EXCEPTION_BREAKPOINT ?
EXCEPTION_EXECUTE_HANDLER : EXCEPTION_CONTINUE_SEARCH) {
std::cout << _xor_("\n ");
junk();
}
}
void selamdebugger() {
junk();
SetLastError(0);
junk();
OutputDebugStringA("selam, debugger");
if (GetLastError() != 0)
{
junk();
MessageBoxA(NULL, _xor_("Debugger Detected").c_str(), _xor_("Security").c_str(), MB_OK);
Sleep(1);
exit(1);
junk();
}
}
void koruma0() {
{
if (IsDebuggerPresent())
{
MessageBoxA(NULL, _xor_("Debugger Detected").c_str(), _xor_("Security").c_str(), MB_OK);
Sleep(1);
exit(1);
}
}
}
void execheck() { // simple method
DWORD exe1 = process("ollydbg.exe");
if (exe1) {
exit(1);
}
DWORD exe2 = process(_xor_("ida64.exe").c_str());
if (exe2) {
exit(1);
}
DWORD exe3 = process(_xor_("HTTPDebuggerUI.exe").c_str());
if (exe3) {
exit(1);
}
DWORD exe4 = process(_xor_("x64dbg.exe").c_str());
if (exe4) {
exit(1);
}
DWORD exe5 = process(_xor_("x32dbg.exe").c_str());
if (exe5) {
exit(1);
}
DWORD exe6 = process(_xor_("Scylla_x64.exe").c_str());
if (exe6) {
exit(1);
}
DWORD exe7 = process(_xor_("Scylla_x86.exe").c_str());
if (exe7) {
exit(1);
}
DWORD exe8 = process(_xor_("HxD.exe").c_str());
if (exe8) {
exit(1);
}
DWORD exe9 = process(_xor_("patch.exe").c_str());
if (exe9) {
exit(1);
}
DWORD exe10 = process(_xor_("Fiddler Everywhere.exe").c_str());
if (exe10) {
exit(1);
}
DWORD exe11 = process(_xor_("HTTPDebuggerSvc.exe").c_str());
if (exe11) {
exit(1);
}
DWORD exe12 = process(_xor_("dumpcap.exe").c_str());
if (exe12) {
exit(1);
}
DWORD exe13 = process(_xor_("Wireshark.exe").c_str());
if (exe13) {
exit(1);
}
DWORD exe14 = process(_xor_("ProcessHacker.exe").c_str());
if (exe14) {
exit(1);
}
DWORD exe15 = process(_xor_("ksdumper.exe").c_str());
if (exe15) {
exit(1);
}
cout << _xor_(":) Safe").c_str();
}
void genelkoruma() {
junk();
Debugkoruma();
junk();
selamdebugger();
junk();
koruma0();
junk();
exedenetleme();
junk();
titlekoruma();
junk();
}