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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
|
// FFF_ACC.cpp : Defines the entry point for the DLL application.
//
#include "stdafx.h"
#include "FFF_ACC.h"
#include "socket.h"
#include <AtlBase.h>
#include <windows.h>
#include <iostream>
#include <conio.h>
#include <tlhelp32.h>
#include <tchar.h>
using namespace std;
HWND MainWindowHandle = 0;
bool InitWindowApp(HINSTANCE instanceHandle, int Show);
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
bool check_user(){
bool result;
// Firewall Check Removed For Security Purposes //
return result;
}
void ban_user(char *handler){
// Ban Function Removed For Security Purposes //
}
void wconsole(const char *text,char *color){
if(color == "white"){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY | FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE);
}
if(color == "green"){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY | FOREGROUND_GREEN);
}
if(color == "red"){
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),FOREGROUND_INTENSITY | FOREGROUND_RED);
}
char consoleStringBuffer[2000];
HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE);
DWORD dwChars;
sprintf(consoleStringBuffer, text);
WriteConsole(hOut, consoleStringBuffer,
(DWORD)strlen(consoleStringBuffer), &dwChars, NULL);
}
void wconsole_prox(const char *text, char *color){
wconsole("[","white");
wconsole("ACC","green");
wconsole("]: ","white");
wconsole(text,color);
wconsole("\r\n","white");
}
void reset_method(){
wconsole_prox("Attempting to reset connection to anti-cheat system!","red");
wconsole_prox("Please standby...","white");
// Reset Method Removed For Security Purposes //
}
void acc_connect(){
wconsole_prox("The AntiHack system will now attempt to connect to the server side.","white");
wconsole_prox("Please standby...","white");
// Connect Method Removed For Security Purposes //
}
DWORD WINAPI ThreadFunc( LPVOID lpParam )
{
AllocConsole();
SetConsoleTitle("FlyForFame Anti-Hack Beta 0.2 | Status Window");
char text[255];
sprintf(text,"Calling: %s", reinterpret_cast<const char*>(lpParam));
wconsole_prox("FlyForFame Anti-Hack System(Beta 0.2), Successfully Loaded!","white");
wconsole_prox(text,"white");
if(strstr(reinterpret_cast<const char*>(lpParam),"acc_connect")){
acc_connect();
}else{
if(strstr(reinterpret_cast<const char*>(lpParam),"CheckUser")){
check_user();
}
if(strstr(reinterpret_cast<const char*>(lpParam),"Ban0E1")){
ban_user("E01");
}
if(strstr(reinterpret_cast<const char*>(lpParam),"Ban0E2")){
ban_user("E02");
}
if(strstr(reinterpret_cast<const char*>(lpParam),"Ban0E3")){
ban_user("E03");
}
if(strstr(reinterpret_cast<const char*>(lpParam),"Ban0E4")){
ban_user("E04");
}
if(strstr(reinterpret_cast<const char*>(lpParam),"Ban0E5")){
ban_user("E05");
}else{
acc_connect();
}
}
return 0;
}
void automaton_registry(int level)
{
// Automaton Registry Check //
// When Automaton is installed the path to FlyFF is set here. //
// If Automaton is run the Teleport keys are stored here. //
// Detection Method: 0E1 //
if(level == 1){
CRegKey key;
long nError = key.Open(HKEY_CURRENT_USER, "Software\\FlyFF Automaton", MB_OK);
if(nError == ERROR_SUCCESS)
{
DWORD dwThreadId;
char dwThrdParam[7] = "Ban0E1";
HANDLE hThread;
hThread = CreateThread(NULL,0,ThreadFunc,&dwThrdParam,0,&dwThreadId);
MessageBox(NULL, "FlyFF Automaton has been detected!\n\nYou've now been IP/Account Banned.\n\nThe detection does not mean you were running Automaton currently.\nIt could mean it used to be on your system or still resides on your system.\n\nPrivate Message: AntiHack\nOn the forums for information on getting unbanned or why you got this message.\n\n\nDetection Method: 0E1", "FlyForFame Anti-Cheat(Beta 0.1)", MB_OK);
exit(0);
}
}
// GameGuard Down //
// If any application ever loads the gameguard down service it should popup here. //
// I'd asume it's simply used to bypass game guard, but still can be used as a detection method. //
// Detection Method: E02 //
if(level == 2){
CRegKey key;
long nError = key.Open(HKEY_LOCAL_MACHINE, "SYSTEM\\ControlSet001\\Enum\\Root\\LEGACY_GAMEGUARDDOWN", KEY_READ);
if(nError == ERROR_SUCCESS)
{
DWORD dwThreadId;
char dwThrdParam[16] = "Ban0E2";
HANDLE hThread;
hThread = CreateThread(NULL,0,ThreadFunc,&dwThrdParam,0,&dwThreadId);
MessageBox(NULL, "GameGuard Down(FlyFF Automaton Module) has been detected!\n\nYou've now been IP/Account Banned.\n\nThe detection does not mean you were running Automaton currently.\nIt could mean it used to be on your system or still resides on your system.\n\nPrivate Message: AntiHack\nOn the forums for information on getting unbanned or why you got this message.\n\n\nDetection Method: 0E2", "FlyForFame Anti-Cheat(Beta 0.1)", MB_OK);
exit(0);
}
}
// GameGuard Down //
// I'm certain that any application that loads gameguard down would create this key. //
// Windows uses registry in order to store services and system drivers. //
// The catch is windows never removes these registry keys even when the service, or driver is unloaded the key remains. //
// Detection Method: 0E3 //
if(level == 3){
CRegKey key;
long nError = key.Open(HKEY_LOCAL_MACHINE, "SYSTEM\\ControlSet001\\Services\\GameGuardDown", KEY_READ);
if(nError == ERROR_SUCCESS)
{
DWORD dwThreadId;
char dwThrdParam[16] = "Ban0E3";
HANDLE hThread;
hThread = CreateThread(NULL,0,ThreadFunc,&dwThrdParam,0,&dwThreadId);
MessageBox(NULL, "GameGuard Down(FlyFF Automaton Module) has been detected!\n\nYou've now been IP/Account Banned.\n\nThe detection does not mean you were running Automaton currently.\nIt could mean it used to be on your system or still resides on your system.\n\nPrivate Message: AntiHack\nOn the forums for information on getting unbanned or why you got this message.\n\n\nDetection Method: 0E3", "FlyForFame Anti-Cheat(Beta 0.1)", MB_OK);
exit(0);
}
}
// Detection Method: 0E4 //
if(level == 4){
CRegKey key;
long n1Error = key.Open(HKEY_LOCAL_MACHINE, "SYSTEM\\ControlSet003\\Services\\GameGuardDown", KEY_READ);
if(n1Error == ERROR_SUCCESS)
{
DWORD dwThreadId;
char dwThrdParam[16] = "Ban0E4";
HANDLE hThread;
hThread = CreateThread(NULL,0,ThreadFunc,&dwThrdParam,0,&dwThreadId);
MessageBox(NULL, "GameGuard Down(FlyFF Automaton Module) has been detected!\n\nYou've now been IP/Account Banned.\n\nThe detection does not mean you were running Automaton currently.\nIt could mean it used to be on your system or still resides on your system.\n\nPrivate Message: AntiHack\nOn the forums for information on getting unbanned or why you got this message.\n\n\nDetection Method: 0E4", "FlyForFame Anti-Cheat(Beta 0.1)", MB_OK);
exit(0);
}
}
// Detection Method: 0E5 //
if(level == 5){
CRegKey key;
long n2Error = key.Open(HKEY_LOCAL_MACHINE, "SYSTEM\\ControlSet003\\Enum\\Root\\LEGACY_GAMEGUARDDOWN", KEY_READ);
if(n2Error == ERROR_SUCCESS)
{
DWORD dwThreadId;
char dwThrdParam[16] = "Ban0E5";
HANDLE hThread;
hThread = CreateThread(NULL,0,ThreadFunc,&dwThrdParam,0,&dwThreadId);
MessageBox(NULL, "GameGuard Down(FlyFF Automaton Module) has been detected!\n\nYou've now been IP/Account Banned.\n\nThe detection does not mean you were running Automaton currently.\nIt could mean it used to be on your system or still resides on your system.\n\nPrivate Message: AntiHack\nOn the forums for information on getting unbanned or why you got this message.\n\n\nDetection Method: 0E5", "FlyForFame Anti-Cheat(Beta 0.1)", MB_OK);
exit(0);
}
}
}
void antihack_connect()
{
DWORD dwThreadId;
char dwThrdParam[12] = "acc_connect";
HANDLE hThread;
hThread = CreateThread(NULL,0,ThreadFunc,&dwThrdParam,0,&dwThreadId);
}
void _stdcall check()
{
// Automaton/GameGuard Down Checks //
automaton_registry(1);
automaton_registry(2);
automaton_registry(3);
automaton_registry(4);
automaton_registry(5);
// Connection to the anticheat server //
antihack_connect();
}
|