Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] DarkLoadLibrary for DLL Imports #14

Open
williamknows opened this issue Nov 3, 2021 · 5 comments
Open

[Feature Request] DarkLoadLibrary for DLL Imports #14

williamknows opened this issue Nov 3, 2021 · 5 comments

Comments

@williamknows
Copy link

Hey, great tool. Are there any near-term plans to add DarkLoadLibrary loading for a DLL's dependencies/imports? They're current just using LoadLibrary, and I can see you added a note to say support would (hopefully) be added in future (in ldrutils.c).

@hypervis0r
Copy link
Contributor

do it urself

@physics-sec
Copy link
Contributor

I tried it but there are still some cases where DarkLoadLibrary doesn't seem to work. I found some very weird errors with user32.dll if I remember correctly, the initialization routine (DLLMain) followed some very bizarre code paths for some reason

@bats3c
Copy link
Owner

bats3c commented Nov 4, 2021

Yes some Microsoft DLL's don't load correctly when using DarkLoadLibrary. I've not quite for to the bottom of this issue yet, I am currently investigating it.

@EddieIvan01
Copy link

Yes some Microsoft DLL's don't load correctly when using DarkLoadLibrary. I've not quite for to the bottom of this issue yet, I am currently investigating it.

The reason is: you haven't handle the api set schema in your DIY GetProcAddress, here https://github.com/bats3c/DarkLoadLibrary/blob/master/DarkLoadLibrary/src/pebutils.c#L445

@bats3c
Copy link
Owner

bats3c commented Jan 13, 2022

This is not the reason for the issues, in the past LdrGetProcedureAddress from ntdll was in use and the issue still remained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants