-
Notifications
You must be signed in to change notification settings - Fork 13
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
Why is it not supported for 32-bit programs to call 64-bit target processes. #5
Comments
It should be possible to do it, as there are also some other injectors that support it, but i have not looked into how they do it. To extend the current implementation as is, there are some problems:
|
You can refer to the implementation of yapi, which supports injection of 32-bit processes into 64-bit processes under C++. Confirm whether the injection is successful can be determined by remote LoadLibrary,
|
EnumProcessModulesEx can be called but will not return x64 modules (see the remarks section). |
This problem of EnumProcessModulesEx can be easily solved. One way is to call NtQueryInformationProcess through wow64, and the other way is to directly call NtWow64QueryInformationProcess64. For related codes, please refer to https://www.52pojie.cn/forum.php?mod=viewthread&tid=872501 and https://stackoverflow.com/questions/3801517/how-to-enum-modules-in-a-64bit -process-from-a-32bit-wow-process?answertab=trending#tab-top |
I just want to mention that while I may implement this, I will not work on it in the near future. |
I rewrote listing processes and modules using ntdll in OpenByteDev/processes@31435c7 but without using the WoW64 methods. |
Is there any difficulty here?
The text was updated successfully, but these errors were encountered: