Giter Club home page Giter Club logo

antidebugging's Introduction

Anti debugger techniques

These proof-of-concept's demonstrate various techniques that can be used for anti-debugging, debugger detection, and more. When encountering any of these functions or methods, a reverse engineer needs to be familiar with methods for bypassing said anti-debugger techniques.


  • IsDebuggerPresent

Using the Windows API function IsDebuggerPresent you can determine if your process is being debugged. This function works by checking the processes PEB structure's BeingDebugged value, located at 0x2. If this PEB value is set to 1, the process is being debugged, and 0 means it's not.

  • CheckRemoteDebuggerPresent

Similar to the IsDebuggerPresent methods, the CheckRemoteDebuggerPresent API function allows you to check if any process is being debugged, by passing a handle of that process as the first parameter of the function. It set's a user-provided variable to either TRUE or FALSE, based on whether the process is being debugged or not.

  • GetProcessMemoryInfo

Using the Windows API function GetProcessMemoryInfo you can determine if your process is being debugged. This function can check the working set, which is the amount of memory a process needs at a certain time. Non-debugged processes never require a great amount, you can use this idea with a simple check to see if the working set is a huge amount or not.

  • FindWindow

Using the FindWindow function, you can detect specific debuggers based on window classes, you can manually provide specific window class strings that match to potential debuggers on the system, if this function finds them, it can detect it's being debugged.

antidebugging's People

Contributors

hack-parthsharma avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.