Skip to content

C/C++ antidebugging library for 32 and 64 bit processors

License

Notifications You must be signed in to change notification settings

NotRequiem/antidbg

Repository files navigation

AntiDebugging Library for C/C++

Compatibility

This library is compatible with:

  • 1. Any C or C++ standard
  • 2. Any Windows version and/or build ranging from Windows Vista to Windows 11
  • 3. Any C/C++ compiler
  • 4. Any processor architecture (32 or 64 bits)

Example Usage 1:

#include "adbg.h"

int main() {
    IsProgramDebugged();
    return 0;
}

Example Usage 2:

#include "adbg.h"

int main() {
    if (IsProgramDebugged()) {
        printf("The program is being debugged.\n");
        // do something, example: exit(1);
    }
    else {
        printf("The program is NOT debugged.\n");
        // continue execution here
    }
    
    // or continue execution here
    return 0;
}

If you do not want the boolean function to print anything when a debugger is detected, you can simply set printDebugInfo to false:

#include "adbg.h"

int main() {
    printDebugInfo = false;
    IsProgramDebugged();
    return 0;
}

About

C/C++ antidebugging library for 32 and 64 bit processors

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published