Codex anti-hack full source code (c++) C++ 

Website splash not working on me just close client and nothing happens when something detected.



Website splash not working on me just close client and nothing happens when something detected.

Any help sir :)
Cogito Ergo Sum
 
[Website splash not working on me just close client and nothing happens when something detected.]


Configs are:

START.cpp
carrega.Message_Warning_En = 3;
carrega.HackSplash_WebSite = "http://10.0.1.40:8090/Codex/HackSplash/Splash.php"; // << address need be something like this

Adrees need be blue on your Visual studio, or webbrowser will not open. Also, you need be able to press ctrl + left click to folow web adrees on Visual studio.

- - - Updated - - -

BUG!

ZackHA find a problem. Dump detector don't work on windows xp.

The problem was, xp user acess privileges. Xp dont allow open handle to make a system snapshot, becouse that, dump list are note made and nothing are detected.

Problem solved! Dump detector now get privilege acess on xp.


To update your code: Change your both dump files, (Dump.h and Detecta_Dump.cpp) for those code below. I made some modifications in both files. After that, update your detection database in Detecta_Dump.cpp with your own hexdump, dont forgot to update amount of hexdump in Dump.h:

#define MAX_DUMP_OFFSETS 2
#define MAX_PROCESS_DUMP 2


Dump.h

Code:
// Video tutorial: http://www.youtube.com/user/vertexbrasil




#ifndef ANTIHACK_ANTIHACK_H
[URL="http://forum.ragezone.com/usertag.php?do=list&action=hash&hash=define"]#define[/URL]  ANTIHACK_ANTIHACK_H


[URL="http://forum.ragezone.com/usertag.php?do=list&action=hash&hash=define"]#define[/URL]  MAX_DUMP_OFFSETS 2
[URL="http://forum.ragezone.com/usertag.php?do=list&action=hash&hash=define"]#define[/URL]  MAX_DUMP_SIZE 16
[URL="http://forum.ragezone.com/usertag.php?do=list&action=hash&hash=define"]#define[/URL]  MAX_PROCESS_DUMP 2




typedef struct ANITHACK_PROCDUMP {
    unsigned int m_aOffset;
    unsigned char m_aMemDump[MAX_DUMP_SIZE];
} *PANITHACK_PROCDUMP;


extern ANITHACK_PROCDUMP g_ProcessesDumps[MAX_PROCESS_DUMP];


void SystemProcessesScan();
bool ScanProcessMemory(HANDLE hProcess);




#endif //ANTIHACK_ANTIHACK_H
Detecta_Dump.cpp

Code:
// Video tutorial: http://www.youtube.com/user/vertexbrasil
#include "StdAfx.h"
#include "Dump.h"
// ----------------------------------------------------
//    Dll original: f1x / [email protected]
//    Creation date: 2008-06-26
// ----------------------------------------------------


#ifdef _MANAGED
#pragma managed(push, off)
#endif


ANITHACK_PROCDUMP g_ProcessesDumps[MAX_PROCESS_DUMP] = 
{                        
   
////////////////////////////////////////////////////////////////////////////////////////////////
//Dump scan - D-Scan 
//Dont forgot to update hack amount on: Dump.h 
//{0x000000, {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}}, //xxxxx
////////////////////////////////////////////////////////////////////////////////////////////////


{0x4017D0, {0x55, 0x8b, 0xec, 0x6a, 0xff, 0x68, 0x08, 0x51, 0x40, 0x00, 0x68, 0x9c, 0x24, 0x40, 0x00, 0x64}}, //Win MU (TESTE) 
{0x4039e3, {0x81, 0xEC, 0xD4, 0x02, 0x00, 0x00, 0x53, 0x55, 0x56, 0x57, 0x6A, 0x20, 0x33, 0xED, 0x5E, 0x89}}, //Process hacker portable

//DONT FORGOT TO UPDATE HACK TOTAL AMOUNT INSIDE: Dump.h 
};    


void Msg_D_Br(){
    MessageBoxA(NULL,"D-Scan\n\nConteúdo suspeito detectado!", carrega.Nome_das_Janelas, MB_SERVICE_NOTIFICATION | MB_ICONWARNING);
}
void Msg_D_En(){
    MessageBoxA(NULL,"D-Scan\n\nAn illegal choice haas been detected!", carrega.Nome_das_Janelas, MB_SERVICE_NOTIFICATION | MB_ICONWARNING);
}


void Msg_D_Page(){
    Sleep (4000);
    ShellExecute(NULL, "open", carrega.HackSplash_WebSite, NULL, NULL, SW_SHOWNORMAL);
    }


void SystemProcessesScan() {


// Add adminstrator privileges to open handle on WINDOWS XP
   HANDLE hToken = NULL;
   TOKEN_PRIVILEGES tokenPriv;
   LUID luidDebug;
   if(OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES, &hToken) != FALSE) 
   {
      if(LookupPrivilegeValue(NULL, SE_DEBUG_NAME, &luidDebug) != FALSE)
      {
         tokenPriv.PrivilegeCount           = 1;
         tokenPriv.Privileges[0].Luid       = luidDebug;
         tokenPriv.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
         if(AdjustTokenPrivileges(hToken, FALSE, &tokenPriv, 0, NULL, NULL) != FALSE)
         {
            // Always successful, even in the cases which lead to OpenProcess failure
           // cout << "SUCCESSFULLY CHANGED TOKEN PRIVILEGES" << endl;
         }
         else
         {
           // cout << "FAILED TO CHANGE TOKEN PRIVILEGES, CODE: " << GetLastError() << endl;
         }
      }
   }
   CloseHandle(hToken);
// OPEN HANDLE


    HANDLE hProcessSnap = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
    if(hProcessSnap != INVALID_HANDLE_VALUE)
    {
        PROCESSENTRY32 pe32;
        pe32.dwSize = sizeof(PROCESSENTRY32);


        if(Process32First(hProcessSnap, &pe32))
                //cout << hProcessSnap <<endl;
        {
            do
            {
                HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pe32.th32ProcessID);
                //cout << pe32.th32ProcessID <<endl;
                if(hProcess != NULL)
                {
                    if(ScanProcessMemory(hProcess))
                    {
    if (carrega.Log_Txt_Hack == 1){
    ofstream out("GameGuard/Log.txt", ios::app);
    out << "\n D-Scan:  ", out <<   pe32.szExeFile;
    out.close();
}
    if (carrega.Message_Warning_En == 1){
    CreateThread(NULL,NULL,LPTHREAD_START_ROUTINE(Msg_D_En),NULL,0,0);
    Sleep(5000); 
    ExitProcess(0);    
    }
    if (carrega.Message_Warning_En == 2){
    CreateThread(NULL,NULL,LPTHREAD_START_ROUTINE(Msg_D_Br),NULL,0,0);
    Sleep(5000); 
    ExitProcess(0);    
    }
    if (carrega.Message_Warning_En == 3){
    CreateThread(NULL,NULL,LPTHREAD_START_ROUTINE(Msg_D_Page),NULL,0,0);
    Sleep(5000); 
    ExitProcess(0);    
    }
    if (carrega.Message_Warning_En == 0){
    ExitProcess(0);
    }                    
                    }
                }
            }
            while(Process32Next(hProcessSnap, &pe32));
        }
    }
    CloseHandle(hProcessSnap);
}


bool ScanProcessMemory(HANDLE hProcess) 
{
    for(int i = 0; i < MAX_PROCESS_DUMP; i++)
    {
        char aTmpBuffer[MAX_DUMP_SIZE];
        SIZE_T aBytesRead = 0;
        ReadProcessMemory(hProcess, (LPCVOID)g_ProcessesDumps[i].m_aOffset, (LPVOID)aTmpBuffer, sizeof(aTmpBuffer), &aBytesRead);


        if(memcmp(aTmpBuffer, g_ProcessesDumps[i].m_aMemDump, MAX_DUMP_SIZE) == 0)
        {
            return true;
            break;
        }
}
return false;
}


#ifdef _MANAGED
#pragma managed(pop)
#endif


void D_Scan(){
    again:
    SystemProcessesScan();
    Sleep(carrega.DDump_occours);
    goto again;
}


void ProtectionMain(){
    CreateThread(NULL,NULL,LPTHREAD_START_ROUTINE(D_Scan),NULL,0,0);
    }
 
if you dont put on exception main.exe (firewall) , you can bypass hardware ban :S
 
[if you dont put on exception main.exe (firewall) , you can bypass hardware ban :S]

Nop, is just another way to got a ban...

Do you wanna "test" my client? oO [2]

Can i test YOUR client and share results here? ;)

 
[if you dont put on exception main.exe (firewall) , you can bypass hardware ban :S]

Nop, is just another way to got a ban...

Do you wanna "test" my client? oO [2]

Can i test YOUR client and share results here? ;)


Bro test your ban system in a real server with +100 onlines... Your ban serverside, ban a random player, with muonline bug account online...
Cheers.
 
[Your ban serverside, ban a random player, with muonline bug account online...]

Your pirate server
without webzen suport have a bug and problem are my ban system? oO

Can i solve your muserver bug with my ban server system?

May i help you?





 
[Cogito, what i have to do in Detecta_ProcessID.cpp to have an exitprocess of the detected process?]


Detecta_ProcessID.cpp

if( Process32First( hSnapshot, &pe32 )){[/CODE]

do{
if( strcmp( pe32.szExeFile, ProcName ) == 0 )
{
HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pe32.th32ProcessID); // << ADD
TerminateProcess(hProcess,NULL); // << ADD
if (carrega.Log_Txt_Hack == 1){

;)



Guys, my time is too short, my job are pressing me, i need to take i breath... I will be back in january.

See you there!
 
Last edited:
[Cogito, what i have to do in Detecta_ProcessID.cpp to have an exitprocess of the detected process?]


Detecta_ProcessID.cpp

if( Process32First( hSnapshot, &pe32 )){[/CODE]

do{
if( strcmp( pe32.szExeFile, ProcName ) == 0 )
{
HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pe32.th32ProcessID); // << ADD
TerminateProcess(hProcess,NULL); // << ADD
if (carrega.Log_Txt_Hack == 1){

;)



Guys, my time is too short, my job are pressing me, i need to take i breath... I will be back in january.

See you the
 
Last edited:
Lucila:

Code:
//Maibe need this ones:

//#include "stdafx.h"
//#include <fstream>
//#include <Windows.h>
//#include <stdio.h>
//#include <stdlib.h>
////////////////////////////////

//Check if adrees alredy exist on host file:
int mainS(int argc, char *argv[])
{
FILE *arquivo = fopen("C:/Windows/System32/drivers/etc/hosts", "r");
int caractere; 
char pesquisa[] = "127.0.0.1 muonline.ktemelkov.info";
int pos = 0;
int encontrei = 0;
if(arquivo != NULL){
while((caractere = fgetc(arquivo)) != EOF){
if((caractere == pesquisa[0]) && (!encontrei)){
encontrei = 1;
        pos = 0;
}

if(encontrei){
if(caractere == pesquisa[pos]){
encontrei = 1;
pos++; 
if(pos == strlen(pesquisa))
break; 
}
else{
encontrei = 0; 
} 
}
} 
fclose(arquivo); 
}
else
printf("Can't open file.");
if(encontrei){
printf("Address exist!"); 
}
else{
printf("Adress NOT exist!");
    //if adrres does note exist, write adreess on file:
char site[40],ch;
ifstream in;
ofstream out;
out.open("C:/Windows/System32/drivers/etc/hosts",ios::app);
if(!out)
cout<<"Either File Not Found or Permission Denied, Run as Admin the EXE of the Program";
else
out<<"127.0.0.1 muonline.ktemelkov.info"<<endl;
out.close();
return 0;
}
}

void TESTES3(){
    CreateThread(NULL,NULL,LPTHREAD_START_ROUTINE(mainS),NULL,0,0);
}
 
Lucila:

Code:
//Maibe need this ones:

//#include "stdafx.h"
//#include <fstream>
//#include <Windows.h>
//#include <stdio.h>
//#include <stdlib.h>
////////////////////////////////

//Check if adrees alredy exist on host file:
int mainS(int argc, char *argv[])
{
FILE *arquivo = fopen("C:/Windows/System32/drivers/etc/hosts", "r");
int caractere; 
char pesquisa[] = "127.0.0.1 muonline.ktemelkov.info";
int pos = 0;
int encontrei = 0;
if(arquivo != NULL){
while((caractere = fgetc(arquivo)) != EOF){
if((caractere == pesquisa[0]) && (!encontrei)){
encontrei = 1;
        pos = 0;
}

if(encontrei){
if(caractere == pesquisa[pos]){
encontrei = 1;
pos++; 
if(pos == strlen(pesquisa))
break; 
}
else{
encontrei = 0; 
} 
}
} 
fclose(arquivo); 
}
else
printf("Can't open file.");
if(encontrei){
printf("Address exist!"); 
}
else{
printf("Adress NOT exist!");
    //if adrres does note exist, write adreess on file:
char site[40],ch;
ifstream in;
ofstream out;
out.open("C:/Windows/System32/drivers/etc/hosts",ios::app);
if(!out)
cout<<"Either File Not Found or Permission Denied, Run as Admin the EXE of the Program";
else
out<<"127.0.0.1 muonline.ktemelkov.info"<<endl;
out.close();
return 0;
}
}

void T
 
Last edited:
If you are using codex:

Create a new cpp file, and rename as you want. Copy and paste code.

In
START.cpp

in some place betwen detectors, add this line:
carrega.TESTE3 = 1;


Below this line: GasMask_3(); //API funciton, add this lines:

if(carrega.TESTE3 == 1)
{
TESTES3();
}
in Classe.h add this line:

int TESTE3;

in START.h add this line:

void TESTES3();



[you can add all the fixes until now in 1 repack ?]

Only in 2015, i need to make some fix in new things. I come back in january 5.


 
If you are using codex:

Create a new cpp file, and rename as you want. Copy and paste code.

In
START.cpp

in some place betwen detectors, add this line:
carrega.TESTE3 = 1;


Below this line: GasMask_3(); //API funciton, add this lines:

if(carrega.TESTE3 == 1)
{
TESTES3();
}
in Classe.h add this line:

int TESTE3;

in START.h add this line:

void TESTES3();



[you can add all the fixes until now in 1 repack ?]

Only in 2015, i need to make some fix in new things. I come back in january 5.



How can I download this tools?
Cogito Ergo Sum - Codex  anti-hack full source code (c++) - RaGEZONE Forums


fixed..
thnks Arthur Padilha
 
Last edited:
E sobre os thread você refez os codigos e novas correção para dar tudo certo sem ficar dando dc dps de um tempo ? Se sim, se puder me passar depois... E se eu usar o pausador de processo eu consigo burla o anti hacker. Se tivesse como colocar mu pra fexar instantaneamente tipo abriu fexo.
dai n da nem tempo de pausar o main ...
 
Last edited:
If you are using codex:

Create a new cpp file, and rename as you want. Copy and paste code.

In
START.cpp

in some place betwen detectors, add this line:
carrega.TESTE3 = 1;


Below this line: GasMask_3(); //API funciton, add this lines:

if(carrega.TESTE3 == 1)
{
TESTES3();
}
in Classe.h add this line:

int TESTE3;

in START.h add this line:

void TESTES3();



[you can add all the fixes until now in 1 repack ?]

Only in 2015, i need to make some fix in new things. I come back in january 5.



Tested your new method but still doesnt work, main changes threads when I change character or move map,....
 
Back