Results 1 to 6 of 6
  1. #1
    drlunar's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Location
    In Solitude...
    Posts
    24
    Reputation
    10
    Thanks
    0
    My Mood
    Stressed

    Er, disabling cheat engine from running with my trainer?

    I'd like my trainer to detect and close CE, or even just kill the client if CE is detected. I'd like to do this for tampering reasons of course, if you have any ideas please do help me. I'd be quite grateful, and I'd like to thank anyone who does in advance.

  2. #2
    .::SCHiM::.'s Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    733
    Reputation
    180
    Thanks
    880
    My Mood
    Twisted
    As a rule you should not close CE when you detect it presence, instead you should close your own program. Like this:

    Code:
    void CheckCEPresent(){
    HANDLE hSnap = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, NULL ) 
    PROCESSENTRY32  p = { NULL };
    
    if( hSnap == INVALID_HANDLE_VALUE ){
      printf("Error: Failed to open a snapshot of all the processes running\n");
    return;
    }
    if( !Process32First( hSnap, &p ) ){
       printf("Error: Failed to enumerate first process running\n");
    }
    
    do{
       if( !strcmp(  (char*)&p.szExeFile, "ce.exe" ) ){   // strcmp returns 0 when the strings are equal
         printf("CE.exe found, exiting!\n");
         exit( 0 );
       }
    
    } while( Process32Next( hSnap, &p ) );
    
    }
    I wrote this from the top of my head, but this is the general idea. Simply execute this function every few seconds, once CE shows up in your process list the program exits.
    Last edited by .::SCHiM::.; 07-23-2012 at 11:05 AM.

    I'm SCHiM

    Morals derive from the instinct to survive. Moral behavior is survival behavior above the individual level.

    Polymorphic engine
    Interprocess callback class
    SIN
    Infinite-precision arithmetic
    Hooking dynamic linkage
    (sloppy)Kernel mode Disassembler!!!

    Semi debugger




  3. #3
    drlunar's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Location
    In Solitude...
    Posts
    24
    Reputation
    10
    Thanks
    0
    My Mood
    Stressed
    Quote Originally Posted by .::SCHiM::. View Post
    As a rule you should not close CE when you detect it presence, instead you should close your own program. Like this:

    Code:
    void CheckCEPresent(){
    HANDLE hSnap = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, NULL ) 
    PROCESSENTRY32  p = { NULL };
    
    if( hSnap == INVALID_HANDLE_VALUE ){
      printf("Error: Failed to open a snapshot of all the processes running\n");
    return;
    }
    if( !Process32First( hSnap, &p ) ){
       printf("Error: Failed to enumerate first process running\n");
    }
    
    do{
       if( !strcmp(  (char*)&p.szExeFile, "ce.exe" ) ){   // strcmp returns 0 when the strings are equal
         printf("CE.exe found, exiting!\n");
         exit( 0 );
       }
    
    } while( Process32Next( hSnap, &p ) );
    
    }
    I wrote this from the top of my head, but this is the general idea. Simply execute this function every few seconds, once CE shows up in your process list the program exits.
    I couldn't get your example to work, though thank you for the reply. If possible can you help me with IsWindow()? I'm currently trying the following;

    Code:
    HWND hWnd = FindWindowA("Cheat Engine", NULL);
    		
    IsWindow(hWnd);
    {
    	MessageBox:: Show ("Cheat Engine has been detected running on this system","");
    	exit(0);
    }
    		 }
    It doesn't search for Ce and spams the messagebox.
    Last edited by drlunar; 07-23-2012 at 11:54 AM.

  4. #4
    .::SCHiM::.'s Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    733
    Reputation
    180
    Thanks
    880
    My Mood
    Twisted
    Do it like this:

    Code:
    if( hWnd ){
    MessageBox( "Cheat Engine has been detected running on this system" );
    }
    I don't know the marco IsWindow(). But FindWindow() returns either a handle to the found window, or null.

    I'm SCHiM

    Morals derive from the instinct to survive. Moral behavior is survival behavior above the individual level.

    Polymorphic engine
    Interprocess callback class
    SIN
    Infinite-precision arithmetic
    Hooking dynamic linkage
    (sloppy)Kernel mode Disassembler!!!

    Semi debugger




  5. #5
    drlunar's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Location
    In Solitude...
    Posts
    24
    Reputation
    10
    Thanks
    0
    My Mood
    Stressed
    For some odd reason it isn't working

    Code:
    void Form1::Form1_Load.. {
    HWND m_hWnd = FindWindowA("Cheat Engine 6.2", NULL);
    	if( m_hWnd ) {
    MessageBox:: Show ( "Cheat Engine has been detected running on this system","");
    Close();
    }
    }

  6. #6
    .::SCHiM::.'s Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    733
    Reputation
    180
    Thanks
    880
    My Mood
    Twisted
    Ahh I see your problem.

    FindWindowA(NULL, "Cheat Engine 6.2");

    There you go, the first param is the class name not the window tittle.

    I'm SCHiM

    Morals derive from the instinct to survive. Moral behavior is survival behavior above the individual level.

    Polymorphic engine
    Interprocess callback class
    SIN
    Infinite-precision arithmetic
    Hooking dynamic linkage
    (sloppy)Kernel mode Disassembler!!!

    Semi debugger




Similar Threads

  1. How To Use Cheat Engine 5.5 With Pinball
    By comon trade in forum General Game Hacking
    Replies: 2
    Last Post: 12-20-2009, 08:37 PM
  2. I Sell UCE(Undetcted Cheat Engine) For Account With Hight Level
    By pecopecoman3 in forum Trade Accounts/Keys/Items
    Replies: 3
    Last Post: 09-23-2007, 05:12 PM
  3. pROBLEM WITH CHeAT ENGINE
    By w00t? in forum General
    Replies: 8
    Last Post: 07-03-2007, 06:39 PM
  4. need help with cheat engine hacks for u to tell me including amazing bypasser
    By george567 in forum WarRock - International Hacks
    Replies: 5
    Last Post: 07-01-2007, 12:43 PM
  5. How To Get Hacks With Cheat Engine 5.3?
    By naomelembro14 in forum WarRock - International Hacks
    Replies: 1
    Last Post: 02-20-2007, 01:26 AM