Coder Social home page Coder Social logo

mecanik / anti-debugnet Goto Github PK

View Code? Open in Web Editor NEW
268.0 8.0 60.0 29 KB

C# Anti-Debug and Anti-Dumping techniques using Win32 API functions and tricks.

License: MIT License

C# 100.00%
antidebugging antidebug net-framework antidump net-antidebug

anti-debugnet's Introduction

Anti-DebugNET

C# Anti-Debug and Anti-Dumping techniques using Win32/NT API functions. There are certain functions/methods like the anti-dump that were created by other people.

Current Anti-Debug methods

  • Check for managed debugger
  • Check for unmanaged debugger
  • Check for remote debugger
  • Check debug port
  • Detach from debugger process
  • Check for kernel debugger
  • Hides current process OS thread ( managed threads soon )
  • Scan and Kill debuggers (ollydbg, x32dbg, x64dbg, Immunity, MegaDumper, etc)

Current Anti-Dump methods

  • Erase sections - WARNING! It breaks applications which are obfuscated.

Notes

  • You can use these tricks to protect your C# application, however make sure you obfuscate the code. And make no mistake, a skilled reverse engineer will easily bypass these tricks unless used properly. (see tips)
  • Do not forget to remove the Console logs before simply copy/pasting files into your project ;)

Tips

  • Avoid taking an immediate action, like displaying a message or crashing the application. If you take an immediate action, the cracker will know where the problematic code is located and will focus all his attention at that point, trying to figure out the root of the problem in that code.
  • Avoid displaying messages saying that the application has been tampered. Instead, make a "late" crash (see below) or display a strange error message at a later point in your application.
  • Produce a "late crash" or malfunction. That is, if you detect that your application has been tampered, you mark special variables (or similar action) in your code. At a later point in your application, you crash your application or initialize further structures in a wrong way, so, your application won't work as expected.

Contribution

Feel free to contribute with your own functions/methods. Just make sure you tested it properly.

Assistance

In your are in immediate need of commercial help/advice/assistance in protecting your .NET application, I can offer you my assistance for a small fee. Please do contact me via my email or if you cannot do so open an issue.

Support me

Buy me a coffee to give me more energy and write more code :)

anti-debugnet's People

Contributors

mecanik avatar owersite avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

anti-debugnet's Issues

How to use

Hi. Already build this but still no idea how I can use this to my app.
Is there any tutorial?

Adding to C# Window Form.Net Application

Hi I been trying to implement this for weeks on my window form application but doesn't seem to be working at all is there other parameters i need for it to work on a C# Window Form.Net application or should it just work

Thank.

Crash function

is it possible have example of something that will crash application as you explain ? (instead use .kill()/.exit() easy to find in code)

i thought something with winapi cause unmanaged code should be better !?!?

thanks

Form app problem

My form not load if AntiDebug.DebugProtect3.HideOSThreads(); or AntiDump.DumpProtect1.AntiDump(); in the program.cs, i mean the program running in the background, but the form not visible and the proection not work like i can dump with megadumper

AntiDump issue x64

Look like there is issue with AntiDump() when i force x64 solution

var dwpeheader = System.Runtime.InteropServices.Marshal.ReadInt32((IntPtr)(base_address.ToInt32() + 0x3C));
Aritmetic overflow

Is it possible to fix this function for x64 runtime?
thanks

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.