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

Can x64 ReflectionLoader load x32 dll into x32 process? #20

Open
Bit00009 opened this issue Dec 1, 2020 · 2 comments
Open

Can x64 ReflectionLoader load x32 dll into x32 process? #20

Bit00009 opened this issue Dec 1, 2020 · 2 comments

Comments

@Bit00009
Copy link

Bit00009 commented Dec 1, 2020

This lib is great thank you @stephenfewer
Can x64 ReflectionLoader load x32 dll into x32 process?
What do I need to change to reach this?

@stephenfewer
Copy link
Owner

The ability to inject from x64 -> x86 or vice versa was built into Metasploit's meterpreter on top of RDI, see:

https://github.com/rapid7/metasploit-payloads/blob/master/c/meterpreter/source/metsrv/base_inject.c#L497

@Bit00009
Copy link
Author

Bit00009 commented Dec 2, 2020

@stephenfewer thanks for fast reply!
Can you tell me what is it ? I toke a look at source and got confused because it's a comment that says x64 -> x86 is not supported :

BREAK_ON_ERROR( "[INJECT] inject_via_apcthread: Can't do x64->x86 APC injection yet." )

There's a Improved version of RLoader https://github.com/dismantl/ImprovedReflectiveDLLInjection that claims it can do injection from x64 to WoW64 I tried it and it works in injection but it crash after 1 or 2 seconds or sometimes only on close.
Can you take a look into the code it's your library with extra steps...

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

2 participants