Stealth way to load a library?
by red_dot - Monday January 22, 2024 at 07:16 PM
#1
Yo im wondering how can i make loading DLL's more stealthy. As LdrLoadDll isn't a suscall it's not that easy.

I see two possibilities:
Call Stack Spoofing
Make my retarded loader work with every Native PE file cuz at this moment its kind of lottery and some binaries/libraries doesn't load properly -_-.

Whats your thoughts, maybe im missing other possibilities?
Reply
#2
Manual mapping.
Reply
#3
depends on what you are injecting the dll into
Reply
#4
(Jan 24, 2024, 09:30 PM)Throne Wrote: Manual mapping.

Isn't it resolving relocations, resolving IAT, building exports, executing tls and executing entry point? I have a basic loader that does that but i can't load for example nss3.dll. I tried basic dll that i made and it worked and im not sure if nss3 is somehow secured or my loader cannot load more complex ddl's.

(Jan 24, 2024, 11:26 PM)ricky_bobby Wrote: depends on what you are injecting the dll into

I want to inject/load DLL to current process to use its functions as i would use LoadLibrary and GetProcAddress. But i dont want to use this WinApi function for obvious reason
Reply
#5
(Jan 25, 2024, 05:07 PM)red_dot Wrote: my loader cannot load more complex ddl's.

Yes, you're right. You need to debug nss3.dll and find out why you can't load it. Maybe It tried to get handle of nss3.dll, (It can't because of manual mapping). You need to hook specific Windows API functions to fix this.
Reply
#6
(Jan 25, 2024, 06:07 PM)Throne Wrote:
(Jan 25, 2024, 05:07 PM)red_dot Wrote: my loader cannot load more complex ddl's.

Yes, you're right. You need to debug nss3.dll and find out why you can't load it. Maybe It tried to get handle of nss3.dll, (It can't because of manual mapping). You need to hook specific Windows API functions to fix this.

That's a really good idea with hooking API functions i'll debug it and see where exactly does it crash. Thanks!
Reply
#7
(Jan 25, 2024, 08:06 PM)red_dot Wrote:
(Jan 25, 2024, 06:07 PM)Throne Wrote:
(Jan 25, 2024, 05:07 PM)red_dot Wrote: my loader cannot load more complex ddl's.

Yes, you're right. You need to debug nss3.dll and find out why you can't load it. Maybe It tried to get handle of nss3.dll, (It can't because of manual mapping). You need to hook specific Windows API functions to fix this.

That's a really good idea with hooking API functions i'll debug it and see where exactly does it crash. Thanks!

Ever get around to this?

This forum account is currently banned. Ban Length: Permanent (N/A Remaining)
Ban Reason: Leeching | http://c66go4clkqodr7tdjfu76jztjs7w7d3fajdeypxn73v4ju3dt7g5yyyd.onion/Forum-Ban-Appeals if you feel this is incorrect.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Bypass Cookies Encryption | Working FrancisMDouble 8 1,121 Today, 12:43 AM
Last Post: 0x0xGunger998
  Malware On Steroids 0neSh0t 348 24,399 Today, 12:34 AM
Last Post: 0x0xGunger998
  [ LIST ] 5 FREE STEALERS WITH PROS/CONS elix 391 15,536 Today, 12:30 AM
Last Post: 0x0xGunger998
  Malware Development MD MZ E Book Mandala 51 2,078 Today, 12:28 AM
Last Post: 0x0xGunger998
  3 sektor7 free courses NEO123 50 3,484 Today, 12:25 AM
Last Post: 0x0xGunger998

Forum Jump:


 Users browsing this forum: 1 Guest(s)