fcccode / antidbg123

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:GNU General Public License v2.0


Languages

Language:C 98.8%Language:Assembly 1.2%