Results 1 to 2 of 2
  1. #1
    kevinDA's Avatar
    Join Date
    May 2022
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0

    Set brealpoint (Hardware Breakpoint) similar Cheat engine ???

    Hello, I would like to know how to create a hardware breakpoint similar to Cheat engine. with an external application (DEBUGGER)
    In my code I only have a stop which is created at the opening of the application. I would like to do it on a breakpoint, can someone help me ?

    Exemple : https://imgur.com/a/p6uR16v


    Code:
    #include <windows.h>
    #include <TlHelp32.h>
    DWORD get_process_id_by_name(const char* process_name){
    HANDLE handle = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, NULL);
    PROCESSENTRY32 entry;
    if(!Process32First(handle, &entry)){
    return 0;
    }do{
    if (!strcmp(entry.szExeFile, process_name)){
    CloseHandle(handle);
    return entry.th32ProcessID;
    	}    
    }
    while(Process32Next(handle, &entry));
    CloseHandle(handle);
    return 0;
    }
    void halt_process(DWORD process_id){
    using NtSuspendProcess = LONG(NTAPI*)(HANDLE);
    HANDLE handle = OpenProcess(PROCESS_ALL_ACCESS, false, process_id);
    NtSuspendProcess nt_suspend_process = reinterpret_cast<NtSuspendProcess>(GetProcAddress(GetModuleHandle("ntdll"), "NtSuspendProcess"));
    nt_suspend_process(handle);
    CloseHandle(handle);
    }
    
    
    
    
    
    
    
    int main(int argc, char** argv){
    DWORD process_id = get_process_id_by_name("Notepad.exe");
    halt_process(process_id);
    
    
    
    }
    system("pause");
    return 0;
    }

  2. #2
    iOR3K's Avatar
    Join Date
    May 2016
    Gender
    male
    Posts
    20
    Reputation
    10
    Thanks
    5
    You could try something like x64dbg

Similar Threads

  1. Can you still cheat in casino with cheat engine?
    By ZxS420 in forum Grand Theft Auto 5 (GTA V) Discussions
    Replies: 7
    Last Post: 05-09-2021, 08:12 AM
  2. [Help] Dragon Nest Hacks EU cheat cheat engine
    By finalsnow in forum Dragon Nest Discussions
    Replies: 13
    Last Post: 08-17-2013, 05:09 PM
  3. How to cheat on Gemmers with Cheat Engine
    By Blitz in forum OMGPOP Hacks & Cheats
    Replies: 2
    Last Post: 03-24-2013, 10:45 PM
  4. [Release] Similar to Cheat Engine -MHS- Memory Scanner
    By randomnamekabe in forum Combat Arms Hacks & Cheats
    Replies: 75
    Last Post: 06-22-2010, 06:53 PM
  5. cheat engine
    By imalvlage in forum Combat Arms Hacks & Cheats
    Replies: 19
    Last Post: 09-06-2008, 10:14 AM