Hack Forums
[.NET] [VB.NET] Very simple "Anti dll-injection" - 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: [.NET] [VB.NET] Very simple "Anti dll-injection" (/showthread.php?tid=4366303)

Pages: Pages 1 2


* - webinject - Jul 29, 2014

(Jul 29, 2014 07:39 PM)ibennz Wrote:  When will you stop comming back to HF kingroot? No one want your shitty grabber. You're the only retarded here Mr "how do i hide api callz in cpp ?".
i'm deliberately lost.. i'm not that said person 🤣


* - Flatsack - Jul 29, 2014

(Jul 29, 2014 10:44 AM)Scripter4ever Wrote:  Hello everyone. It's been a while since I shared something, even something little, so I decided I could share this quick snippet I came up with.

The code:
Spoiler (Click to View)

This, is what either of LoadLibrary entry points look like before execution of the code:
Spoiler (Click to View)

This is LoadLibrary entry point afterwards:
Spoiler (Click to View)

The first statement of LoadLibrary was just replaced by a return statement, causing any dll injector using LoadLibrary to fail (because when LoadLibrary is being called, it just returns without loading the actual dll into the process).

All you have to do is to call "ScrewLoadLibrary()".

Hopefully somebody finds this useful.

Ps. This is easy to reverse though.
Stop trying to do native jobs in a safe environment. Do you even know how the operating system works?


* - samuelrizzo - Oct 22, 2015

Can you 'translate' this method for Delphi?

Thanks


* - Vrekt - Oct 22, 2015

(Oct 22, 2015 05:36 AM)samuelrizzo Wrote:  Can you 'translate' this method for Delphi?

Thanks

This is a year old thread.
But nice tutorial very useful.


RE: [VB.NET] Very simple "Anti dll-injection" - qabeel1 - Oct 7, 2018

How do I do a task check on a program if it is an injector or not ØŸ


RE: [VB.NET] Very simple "Anti dll-injection" - Vyxn - Oct 7, 2018

(Oct 7, 2018 06:44 AM)qabeel1 Wrote:  How do I do a task check on a program if it is an injector or not ØŸ

Loop on active process, then do the checking for each process (there's a lot of method for checking injector).