[Tutorial] Anti Cheat

Page 1 of 2 12 LastLast
Results 1 to 25 of 29
  1. #1
    AKCore ATIDOT3 is offline
    Grand MasterRank
    Apr 2013 Join Date
    BinaryLocation
    536Posts

    [Tutorial] Anti Cheat

    PROCESS NAME CHECK


    Hellllloooooooo.

    So !

    We are going to make a simple anti cheat..

    It's SIMPLE so don't be rude.
    it's look like doidloko's methode.


    First open Warz.sln.

    Look for:

    Code:
    int win::ProcessSuspended()
    at the first line of the WinMain.cpp file add this:

    Code:
    #include <windows.h>
    #include <tlhelp32.h>
    After this:

    Code:
    int win::ProcessSuspended()
    {
      if(!bSuspended)
        return FALSE;
    
    
      MSG msg;
      while(PeekMessage(&msg, NULL,0,0,PM_NOREMOVE))
      {
        if(!GetMessage (&msg, NULL, 0, 0)) 
          return 1;
    
    
        TranslateMessage(&msg);
        DispatchMessage(&msg);
      }
    
    
      return TRUE;
    }
    PAST THIS

    This function is going to check every prosess with the name "ProcName".
    Yes we'll check inside the process for the Menu title change.

    Code:
    void GetProcId(char* ProcName)
    {
        PROCESSENTRY32   pe32;
        HANDLE         hSnapshot = NULL;
    
    
        pe32.dwSize = sizeof( PROCESSENTRY32 );
        hSnapshot = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, 0 );
    
    
        if( Process32First( hSnapshot, &pe32 ) )
        {
            do{
                if( strcmp( pe32.szExeFile, ProcName ) == 0 )
                {
                    Sleep(5000); 
                    ExitProcess(0);
                }
            }while( Process32Next( hSnapshot, &pe32 ) );
        }
    
    
        if( hSnapshot != INVALID_HANDLE_VALUE )
            CloseHandle( hSnapshot );
    
    
        ProcId = pe32.th32ProcessID;
    }
    
    void ClasseCheckPross()
    {
            // Check the prosess name for me in this example is cheatengine.
            // You can add a lot of name for the inject dll - cheat emulator ect....
        GetProcId("cheatengine-x86_64.exe");
    }
    And finally after:

    Code:
    game::PreInit();
    add


    Code:
    ClasseCheckPross();
    So with this methode and the doidloko's methode together, the cheat can't be started before the game because of his process name, and not during the game because of the name window.

    Bye.

    Atidote.
    Last edited by GigaToni; 28-07-15 at 02:53 PM. Reason: removed extensive use of colors & size.


  2. #2
    Yuri-BR#1559 Yuri-BR is offline
    DeveloperRank
    Apr 2013 Join Date
    ☣️❤️Location
    1,039Posts

    Re: [Tutorial] Anti Cheat

    good work =D
    Last edited by Yuri-BR; 12-10-13 at 08:35 AM.

  3. #3
    Elite Member iKasu is offline
    Member +Rank
    Apr 2013 Join Date
    235Posts

    Re: [Tutorial] Anti Cheat

    And then i change the .exe name and patch this...

  4. #4
    AKCore ATIDOT3 is offline
    Grand MasterRank
    Apr 2013 Join Date
    BinaryLocation
    536Posts

    Re: [Tutorial] Anti Cheat

    i've sayed it's a simple anti-hack so ..... =)

    it's just a complement function for check nothing else.

    dafuq.jpg

  5. #5
    Yuri-BR#1559 Yuri-BR is offline
    DeveloperRank
    Apr 2013 Join Date
    ☣️❤️Location
    1,039Posts

    Re: [Tutorial] Anti Cheat

    Quote Originally Posted by iKasu View Post
    And then i change the .exe name and patch this...
    at least he tried to help others, something that a person between " " not makes
    Last edited by Yuri-BR; 12-10-13 at 08:17 AM.

  6. #6
    AKCore ATIDOT3 is offline
    Grand MasterRank
    Apr 2013 Join Date
    BinaryLocation
    536Posts

    Re: [Tutorial] Anti Cheat

    No but i'll delete the thread like that anyone will know i check the process name maybe ?

  7. #7
    Harro Syxn is offline
    Grand MasterRank
    Mar 2013 Join Date
    767Posts

    Re: [Tutorial] Anti Cheat

    Nice tutorial but don't think a staff member would delete it only would close this.

  8. #8
    AKCore ATIDOT3 is offline
    Grand MasterRank
    Apr 2013 Join Date
    BinaryLocation
    536Posts

    Re: [Tutorial] Anti Cheat

    i'm not going to delete ^^, it was ironique

    but thank's ^^

  9. #9
    Infraction Banned PrinceRay is offline
    Member +Rank
    Feb 2012 Join Date
    SysWow64Location
    396Posts

    Re: [Tutorial] Anti Cheat

    nice release

    for cheat engine, file not found because you open Cheat Engine Launcher :junglejane:
    Open Renamed File : dzqdq.exe

  10. #10
    Member renildomarcio is offline
    MemberRank
    Mar 2013 Join Date
    BR, USALocation
    57Posts

    Re: [Tutorial] Anti Cheat

    I was studying the cheat engine and see that the staff changes the name of his title.
    Most things have not changed it.


    Code grab direct source of Cheat Engine

    Code:
    if launch32bit then  begin
        if fileexists(selfpath+'cheatengine-i386.exe') then
          ShellExecute(0, 'open', pchar(selfpath+'cheatengine-i386.exe'), pchar(param), pchar(selfpath), sw_show)
        else
          MessageBox(0, 'cheatengine-i386.exe could not be found. Please disable/uninstall your anti virus and reinstall Cheat Engine to fix this','Cheat Engine launch error',MB_OK or MB_ICONERROR);
      end
      else
      begin
        if FileExists(selfpath+'cheatengine-x86_64.exe') then
          ShellExecute(0, 'open', pchar(selfpath+'cheatengine-x86_64.exe'), pchar(param), pchar(selfpath), sw_show)
        else
          MessageBox(0, 'cheatengine-x86_64.exe could not be found. Please disable/uninstall your anti virus and reinstall Cheat Engine to fix this','Cheat Engine launch error',MB_OK or MB_ICONERROR);
      end;
    
    
    end.

  11. #11
    AKCore ATIDOT3 is offline
    Grand MasterRank
    Apr 2013 Join Date
    BinaryLocation
    536Posts

    Re: [Tutorial] Anti Cheat

    Yep.

    And i don't thing but also you can encrypt you're .exe or use VMprotect.

    Better security for the hexedit.

  12. #12
    Member renildomarcio is offline
    MemberRank
    Mar 2013 Join Date
    BR, USALocation
    57Posts

    Re: [Tutorial] Anti Cheat

    Quote Originally Posted by atidote View Post
    Yep.

    And i don't thing but also you can encrypt you're .exe or use VMprotect.

    Better security for the hexedit.
    as vmProtect uses.?

  13. #13
    AKCore ATIDOT3 is offline
    Grand MasterRank
    Apr 2013 Join Date
    BinaryLocation
    536Posts

    Re: [Tutorial] Anti Cheat

    Yep vmprotect lock the pure hexedit of you're .exe

    Corrige me if i'm wrong but i don't think.

    "Vmprotect lock the pure hexedit" i mean for the basic function like mine or wondow title check ect...

  14. #14
    Elite Member Lewis Caddick is offline
    Member +Rank
    May 2013 Join Date
    Casa Del LewisLocation
    160Posts

    Re: [Tutorial] Anti Cheat

    I have tried to use this and rewritten it so many times, but it just comes back everytime with 'ProcID' undeclared identifier.
    Last edited by Lewis Caddick; 16-10-13 at 03:11 PM.

  15. #15
    Elite Member Lewis Caddick is offline
    Member +Rank
    May 2013 Join Date
    Casa Del LewisLocation
    160Posts

    Re: [Tutorial] Anti Cheat

    i think the person who posted this need to look the code over i think there is a mistake as i always come back with ProcId undeclared identifier

  16. #16
    AKCore ATIDOT3 is offline
    Grand MasterRank
    Apr 2013 Join Date
    BinaryLocation
    536Posts

    Re: [Tutorial] Anti Cheat

    come one guy, just make it ^^.

    DWORD ProcId = 0;

  17. #17
    Elite Member Lewis Caddick is offline
    Member +Rank
    May 2013 Join Date
    Casa Del LewisLocation
    160Posts

    Re: [Tutorial] Anti Cheat

    Quote Originally Posted by atidote View Post
    come one guy, just make it ^^.

    DWORD ProcId = 0;
    so where would i write this part.

  18. #18
    AKCore ATIDOT3 is offline
    Grand MasterRank
    Apr 2013 Join Date
    BinaryLocation
    536Posts

    Re: [Tutorial] Anti Cheat

    HANDLE hSnapshot = NULL;
    here
    past "here"

  19. #19
    Sorcerer Supreme ItzFdr is offline
    Member +Rank
    May 2013 Join Date
    BrasilLocation
    293Posts

    Re: [Tutorial] Anti Cheat

    Good Job!

  20. #20
    Member budaihu is offline
    MemberRank
    Sep 2013 Join Date
    77Posts

    Re: [Tutorial] Anti Cheat

    error.jpg
    Please help me! How to fix?

  21. #21
    Elite Member Lewis Caddick is offline
    Member +Rank
    May 2013 Join Date
    Casa Del LewisLocation
    160Posts

    Re: [Tutorial] Anti Cheat

    Quote Originally Posted by budaihu View Post
    error.jpg
    Please help me! How to fix?
    please go over the code and make sure you haven't missed any semi colons, always double check.

  22. #22
    Member budaihu is offline
    MemberRank
    Sep 2013 Join Date
    77Posts

    Re: [Tutorial] Anti Cheat

    I haven't got windows.h and tlhelp32.h! Please upload and help! Thx!

  23. #23
    Member budaihu is offline
    MemberRank
    Sep 2013 Join Date
    77Posts

    Re: [Tutorial] Anti Cheat

    error2.jpg
    How to fix this?

  24. #24
    Elite Member Lewis Caddick is offline
    Member +Rank
    May 2013 Join Date
    Casa Del LewisLocation
    160Posts

    Re: [Tutorial] Anti Cheat

    Quote Originally Posted by budaihu View Post
    error2.jpg
    How to fix this?
    the only way i got around all that was to type the code out by hand and not copy and pasting it.

  25. #25
    Grand Master javaz97 is offline
    Grand MasterRank
    May 2006 Join Date
    HellLocation
    1,537Posts

    Re: [Tutorial] Anti Cheat

    do you have update ?

    v2
    v3
    ...

    - - - Updated - - -

    and thank you....atidote



Page 1 of 2 12 LastLast

Advertisement