Hack Forums
[C] How to implement an anti-debugger on my crypter? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C] How to implement an anti-debugger on my crypter? (/showthread.php?tid=6100307)



How to implement an anti-debugger on my crypter? - invisible_hack2 - Aug 4, 2020

I mean, do I have to patch the binary? , I really haven't found any example about this, my crypter is pretty basic encrypts and decrypts using XOR

thank you anyways✌✌✌✌


RE: How to implement an anti-debugger on my crypter? - spiderfruit - Aug 5, 2020

(Aug 4, 2020 03:31 PM)invisible_hack2 Wrote:  I mean, do I have to patch the binary? , I really haven't found any example about this, my crypter is pretty basic encrypts and decrypts using XOR

thank you anyways✌✌✌✌

so many techniques on anti-debugging (google alkhaser iirc) regarding the 'how' is up to you- generally speaking those checks (anti XX) should be implement in your stub before it decrypt and executes the binary


RE: How to implement an anti-debugger on my crypter? - Freak_OG - Aug 5, 2020

use a call to kernel32.dll and isdebuggerpresent and checkremotedebuggerpresent, these are the best methods I use them, you shouldnt have anyone debugging your crypter after that my friend!

unless they open x64dbg and edit the return values of those functions but its pretty hard and takes some skill.


RE: How to implement an anti-debugger on my crypter? - Pernat1y - Aug 5, 2020

(Aug 5, 2020 03:22 AM)Freak_OG Wrote:  you shouldnt have anyone debugging your crypter after that my friend!
Cool story.
https://github.com/x64dbg/ScyllaHide


RE: How to implement an anti-debugger on my crypter? - invisible_hack2 - Aug 5, 2020

(Aug 4, 2020 03:31 PM)invisible_hack2 Wrote:  I mean, do I have to patch the binary? , I really haven't found any example about this, my crypter is pretty basic encrypts and decrypts using XOR

thank you anyways✌✌✌✌

(Aug 5, 2020 01:38 AM)spiderfruit Wrote:  so many techniques on anti-debugging (google alkhaser iirc) regarding the 'how' is up to you- generally speaking those checks (anti XX) should be implement in your stub before it decrypt and executes the binary

thanks so i just have to add some anti-debugging technique to my stub? no need to patch the binary.


RE: How to implement an anti-debugger on my crypter? - Freak_OG - Aug 5, 2020

(Aug 5, 2020 09:50 AM)invisible_hack2 Wrote:  thanks so i just have to add some anti-debugging technique to my stub? no need to patch the binary.

No need to patch the binary bro. 🤐


RE: How to implement an anti-debugger on my crypter? - 3DES - Aug 5, 2020

(Aug 5, 2020 03:22 AM)Freak_OG Wrote:  use a call to kernel32.dll and isdebuggerpresent and checkremotedebuggerpresent, these are the best methods I use them, you shouldnt have anyone debugging your crypter after that my friend!

unless they open x64dbg and edit the return values of those functions but its pretty hard and takes some skill.

"Prettt hard" lmao. Easiest thing ever, theres even plugins to automate this.


RE: How to implement an anti-debugger on my crypter? - HRRHHRRH - Aug 6, 2020

If you have to ask this you probably should not yet be attempting to make a "Crypter".

There's tens to hundreds of public methods you can use, and probably tens more that are not public. All of them are created based on the knowledge of how a debugger works, how the operating system works, etc. You need real knowledge of your computer's internals.

Even then, if you just have a couple of debug checks in your software and that's it, someone could very easily stop them from executing at all trough 10 different hook methods or 10 different patch methods.


RE: How to implement an anti-debugger on my crypter? - invisible_hack2 - Aug 7, 2020

(Aug 5, 2020 11:21 PM)3DES Wrote:  "Prettt hard" lmao. Easiest thing ever, theres even plugins to automate this.

I know , i thought i needed to patch the binary


RE: How to implement an anti-debugger on my crypter? - 4Txe4y33C9zvNhMj - Aug 7, 2020

Just implement this, take a look at what malware does and what malware analysts do to bypass those checks

https://anti-reversing.com/Downloads/Anti-Reversing/The_Ultimate_Anti-Reversing_Reference.pdf


RE: How to implement an anti-debugger on my crypter? - H4x10r - Aug 15, 2020

Best way to get into this is
https://github.com/LordNoteworthy/al-khaser
https://github.com/cetfor/AntiDBG