Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Codex anti-hack system - V4 (C++ Source code)

Experienced Elementalist
Joined
Sep 27, 2014
Messages
228
Reaction score
171
IM thinking about a func to close the client when the name of the window change...

Thats already exist. You can't change main name or WindowName, Just turn it On:

carrega.Check_File_Names = 1;
 
Experienced Elementalist
Joined
Apr 15, 2012
Messages
203
Reaction score
25
IM thinking about a func to close the client when the name of the window change...

Thats already exist. You can't change main name or WindowName, Just turn it On:

carrega.Check_File_Names = 1;

Check_File_Names dont prevent changing at client window title, my idea it's make anothr working scanner, so many cheats change the "MU" window title (dont the filename) from the client... if can detect this, the anticheat its better :D

Actualy i do work that funcion with the code what i posted up at #183 .

If u like to improve it, that make me very glad :D hha
 
Last edited:
Initiate Mage
Joined
May 31, 2015
Messages
4
Reaction score
0
Cogito Ergo Sum

. Merhaba ben Türkish
Bellek hack Ve Oto INJECT halen Çözüm bulunamamış sanırsam en önemli Diğer eksiklerden 2 si.
TRANSLATE;
Memory hacking and Auto İnjectör still not resolved, I think the most important missing from the second side.
 
Experienced Elementalist
Joined
Sep 27, 2014
Messages
228
Reaction score
171
Whas i said, thats already exists:


Code:
void Detect_MainWindow(){
if (carrega.Log_Txt_Hack == 1){	
ofstream out("GameGuard/Log.txt", ios::app);
out << "\nFN-Scan:    That's not my window Name! My window name is: ", out<<carrega.MainWindowName;
out.close();
}
 if (carrega.Hack_Log_Upload == 1){
 time_t rawtime;
 struct tm * timeinfo;
 time (&rawtime);
 timeinfo = localtime (&rawtime);
     ofstream out("Log", ios::app);
	 out <<"\nLocal Time: ", out << asctime(timeinfo);
     out <<  "FN-Scan:    That's not my Window name! My Window Name is: ", out<<carrega.MainWindowName;
	 out << "\n= = = = = = = = = = = = = = = = = = =";
	 out.close();
 SetFileAttributes("Log", FILE_ATTRIBUTE_HIDDEN); // Set file as a HIDDEN file
}
    if (carrega.Message_Warning_En == 1){
	CreateThread(NULL,NULL,LPTHREAD_START_ROUTINE(Msg_NomesW_En),NULL,0,0);
Sleep(3000);	   
ExitProcess(0);
}
	if (carrega.Message_Warning_En == 2){
	CreateThread(NULL,NULL,LPTHREAD_START_ROUTINE(Msg_nomesW_Br),NULL,0,0);
Sleep(3000);	   
ExitProcess(0);
}
	if (carrega.Message_Warning_En == 3){
	CreateThread(NULL,NULL,LPTHREAD_START_ROUTINE(Msg_nomesW_Page),NULL,0,0);
Sleep(3000); 
ExitProcess(0);	
	}
	if (carrega.Message_Warning_En == 4){
    CreateThread(NULL,NULL,LPTHREAD_START_ROUTINE(Kill_From_Message_Warning),NULL,0,0); 
MessageBoxA(NULL, carrega.MainWindowName, "FN-Scan", MB_SERVICE_NOTIFICATION | MB_ICONSTOP); 
ExitProcess(0);
}
	if (carrega.Message_Warning_En == 0){
	ExitProcess(0);	
	}
else
ExitProcess(0);
}
int Name_by_Window(){
HWND handle = GetForegroundWindow();
int bufsize = GetWindowTextLength(handle);
std::basic_string<TCHAR>  title(bufsize, 0);
GetWindowText(handle, &title[0], bufsize + 1);
if (title != carrega.MainWindowName){
Detect_MainWindow();
return(0);
}
else
{
}
return(0);
}

Another way to make it more secure as ever are using:

Code:
//Virtual Memory Protection
	carrega.Virtual_Memory_Protect		= 1;

To protect main WidowName values on virtual memory too.



New feature:

Code:
carrega.Message_Warning_En   = 4; 

[CHOICE!] Hack detect splash message: [Options: 0,1,2,3,4]  

0 = silent, 
1 = Engish, 
2 = Portuguese,
 3= Open php webpage with splash image and make a Log.txt file with Date / ip, 
4 = Messagebox with detected hack name (for configuration purposes only)



Memory hacking and Auto İnjectör still not resolved

Do you try to cheat:
CODEX ANTIHACK V5\CONTENTS\Codex V5 Demonstration pack ?



 
Initiate Mage
Joined
May 31, 2015
Messages
4
Reaction score
0
Cogito Ergo Sum

Türk çok anlayamadım yani oto injectöre Çözüm varmı projede?
I did not know I could not understand much English so codex v5 te auto injector Have countermeasures game very easy tricks can work with the opening hook if one of the most important missing so absolutely!


OTO İNJECTOR SOLUTION
I know C ++, but I want to give to much information I am of the opinion initially for auto injector that was the thread hook to hook a hook can solve the problem by connecting a thread but could not translate, unfortunately, the code would be great to bring with you update;)


What's with this message could not be the kind of close?
 
Last edited:
Experienced Elementalist
Joined
Sep 27, 2014
Messages
228
Reaction score
171
What's with this message could not be the kind of close?

Right way:
Right click on application (main.exe / shortcut) > properties > compatibility >

Clear check box:
Run this program as an administrator

>

Change settings for all users

Clear check box:
Run this program as an administrator

===========================================
Wrong way:
START.cpp

if(carrega.Inject_dll_Protection)
{
Dll_Protection();
//DenyAdm(); // << disable admin check
}

===========================================
Very wrong way:

ASLR_and_Win_Sturtup.cpp

Search this:
// Deny Admin message
void DenyAdmin(){

and add this 7 code lines inside // bars. This way:

void DenyAdmin(){
////////////////////////////////////////////////////////////////////////////////
char buffer[MAX_PATH];//always use MAX_PATH for filepaths
GetModuleFileName(NULL,buffer,sizeof(buffer));
//cout << buffer << "\n";
HKEY hkey;
RegOpenKey(HKEY_CURRENT_USER, "Software\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers", &hkey);
RegDeleteValue(hkey, buffer);
RegCloseKey(hkey);
////////////////////////////////////////////////////////////////////////////////
if (carrega.Message_Warning_En == 1){



This last one way, delete key value that: Check box

Run this program as an administrator (for current user)

...
 
Junior Spellweaver
Joined
Sep 5, 2012
Messages
148
Reaction score
2
Cogito Ergo Sum can u also include the S6EP3 SEPARATE CHAT SIR? if u can do the 3d u can do that also. :) i've posted some sources but u ignored it
 
Experienced Elementalist
Joined
Sep 27, 2014
Messages
228
Reaction score
171
I am running as an administrator, I get the same error again.

You can't run as administrator when :
carrega.Inject_dll_Protection = 1; << Becouse, if main.exe have admin rights, c.dll can't release (un-freeze) main.exe

Main will asked to run as administrador only at first startup, if you have :
carrega.Copy_exe_to_Windows_Startup = 1; << becouse main need to be admin to copy for startup folder
or
carrega.Disable_Windows_ASLR = 1; << becouse main need to be admin to change windows registry values

But this don't enable admin rights on registry, are just one asking.



@Cogito Ergo Sum can u also include the S6EP3 SEPARATE CHAT SIR? if u can do the 3d u can do that also. :) i've posted some sources but u ignored it

I don't know how this things works, and i don't have a gameserver running to test this things.
 
Initiate Mage
Joined
May 31, 2015
Messages
4
Reaction score
0
Cogito Ergo Sum
Thanks And Oto İnjector ; memory memory changes, the text does not stop turning because change memory byte, etc. .. prune you to take a look maybe update.
 
Experienced Elementalist
Joined
Sep 27, 2014
Messages
228
Reaction score
171
To solve message:

"Anti-Kill - Scan - Administrative privileges are not allowed for this application!
Restart application as single user please!"

Without a lot of unnecessary problems and explanations.

ASLR_and_Win_Sturtup.cpp

Code:
//Disable Admin for Main
void disable_Admin_main()
{
char buffer[MAX_PATH];//always use MAX_PATH for filepaths
GetModuleFileName(NULL,buffer,sizeof(buffer));
//cout << buffer << "\n";


HKEY hk1;
    long n1 = RegOpenKey(HKEY_CURRENT_USER,TEXT("Software\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers"), &hk1 );
    if ( n1 == ERROR_SUCCESS ) {
        //cout << "1 OK" << endl;
    RegDeleteValue(hk1, buffer);
    RegCloseKey(hk1);
    }
    else {
       //cout << "1 Failed with value " << n1 << endl;
       RegCloseKey(hk1);
    }


HKEY hk1b;
    long n1b = RegOpenKey(HKEY_LOCAL_MACHINE,TEXT("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers"), &hk1b );
    if ( n1b == ERROR_SUCCESS ) {
        //cout << "1 OK" << endl;
    RegDeleteValue(hk1b, buffer);
    RegCloseKey(hk1b);
    }
    else {
        //cout << "1b Failed with value " << n1 << endl;
        RegCloseKey(hk1b);
    }


HKEY hk2;
    long n2 = RegOpenKeyEx(HKEY_LOCAL_MACHINE,TEXT("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers"), 0,KEY_QUERY_VALUE, &hk2 );
    if ( n2 == ERROR_SUCCESS ) {
        //cout << "2 OK" << endl;
    RegDeleteValue(hk2, buffer);
    RegCloseKey(hk2);
    }
    else {
        //cout << "2 Failed with value " << n2 << endl;
        RegCloseKey(hk2);
    }


    HKEY hk2b;
    long n2b = RegOpenKeyEx(HKEY_CURRENT_USER,TEXT("Software\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers"), 0,KEY_QUERY_VALUE, &hk2b );
    if ( n2b == ERROR_SUCCESS ) {
        //cout << "2b OK" << endl;
    RegDeleteValue(hk2b, buffer);
    RegCloseKey(hk2b);
    }
    else {
        //cout << "2 Failed with value " << n2b << endl;
        RegCloseKey(hk2b);
    }




   HKEY hk3;
    long n3 = RegOpenKeyEx(HKEY_LOCAL_MACHINE,TEXT("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Layers"), 0, KEY_ALL_ACCESS | KEY_WOW64_64KEY, &hk3);
    if ( n3 == ERROR_SUCCESS ) {
        //cout << "3 OK" << endl;
    RegDeleteValue(hk3, buffer);
    RegCloseKey(hk3);
    }
    else {
        //cout << "3 Failed with value " << n3 << endl;
        RegCloseKey(hk3);
    }
}


// Deny Admin message
void DenyAdmin(){
    disable_Admin_main();    
    if (carrega.Message_Warning_En == 1){
    MessageBoxA(NULL,"Anti-Kill - Scan - Administrative privileges are not allowed for this application!\n\nRestart application as single user please!", carrega.Nome_das_Janelas, MB_SERVICE_NOTIFICATION | MB_ICONWARNING);    
    ExitProcess(0);    
    }    
    if (carrega.Message_Warning_En == 2){
    MessageBoxA(NULL,"Anti-Kill - Scan - Pivilegios administrativos não são permitidos para esta aplicação!\n\nReinicie o aplciativo como usuário padrão por favor", carrega.Nome_das_Janelas, MB_SERVICE_NOTIFICATION | MB_ICONWARNING);    
    ExitProcess(0);
    }
    else
    {
    MessageBoxA(NULL,"Anti-Kill - Scan - Administrative privileges are not allowed for this application!\n\nRestart application as single user please!", carrega.Nome_das_Janelas, MB_SERVICE_NOTIFICATION | MB_ICONWARNING);    
    ExitProcess(0);
}
}
 
Last edited:
Experienced Elementalist
Joined
Apr 15, 2012
Messages
203
Reaction score
25
Cogito Ergo Sum can u also include the S6EP3 SEPARATE CHAT SIR? if u can do the 3d u can do that also. :) i've posted some sources but u ignored it

Have a lot of sources for 3dcamera, separared chat and another custom for client, maybe u can find and add :p
I added a 3dcam to the anticheat (and customized some funcs)
I starting develop c++ and this proyect help me too much for know another lang :D
 
Back
Top