[Source] Manual DLL Mapper

11/07/2016 15:14 Cyrex'#1
I'm just gonna leave this here. It's fully undetected by x1gnc0de.

However I (you) still need to update the source/binary tomorrow:

Quote:
- add erase header functionality
- execute image's entry point
- add iat entry resolve by ordinal
- anti memory-leak (RAII mechanism for handles 'n stuff)
- add loadlibrary emulation
[Only registered and activated users can see links. Click Here To Register...]

Note: If you are trying to update the source yourself, a few tips:
  • Either zero-out the header after iat resolving or wait for the thread to complete by using WaitForSingleObject and then externally zero it out.
  • To execute the dll's entry point grab entry point offset from nt header and utilize this type definition:
    Code:
    using tDllMain = BOOL( __stdcall* )( HMODULE hinstDLL, DWORD dwReason, LPVOID lpReserved );
  • IAT entry resolve by ordinal: Use GetProcAddress or parse export ordinal table.
  • [Only registered and activated users can see links. Click Here To Register...]
  • recall your manual mapping code for every IMAGE_IMPORT_DESCRIPTOR entry.
    (I don't know an iterative approach since you don't know how many dependencies the current dependency needs to load into the target process)
11/07/2016 15:27 gοd#2
Good job, I kinda like your coding-style tbh.
11/07/2016 16:05 dodakar39#3
what is this?
11/07/2016 16:06 TheMokkо#4
better coding release than any other else i've seen here o:
Nice, even understandable for me :)
11/07/2016 16:31 0x80004005#5
Thanks for sharing
11/07/2016 19:20 xxflay200#6
Nicee job bro
11/08/2016 07:29 Decrypted#7
Reported(move request).
No reason to be in the s4 section. Post it in code section.
11/08/2016 15:21 Cyrex'#8
Quote:
Originally Posted by Decrypted View Post
Reported(move request).
No reason to be in the s4 section. Post it in code section.
Quote:
Zitat von S.A.L.O.M.O.N.
Posts, die nur "#reported/#closerequest" etc. enthalten, ohne zum Thema beizutragen, werden als Spam angesehen und entsprechend geahndet
([Only registered and activated users can see links. Click Here To Register...])

gj.