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

Windows - Read x64 bits process memory from a x86 process #18

Open
AlessandroZ opened this issue Mar 25, 2018 · 1 comment
Open

Windows - Read x64 bits process memory from a x86 process #18

AlessandroZ opened this issue Mar 25, 2018 · 1 comment

Comments

@AlessandroZ
Copy link
Contributor

I have spent to much time to try to read x64 bit process memory from a x86 bit process without success, so maybe someone could help me.

There are some points I have noticed:

  • VirtualQueryEx64 should be used instead of VirtualQueryEx used right now to iter memory address space. So this function should be uncommented.

  • From a x86 process, NtWow64ReadVirtualMemory64 should be used automatically if the remote process it a x64 bits.

  • When I call this function, I always have a Windows error code "2" which I suppose the offset does not exists. I think casting the address as an int is not a good idea (but even removing the cast, it does not change anything).

I already have tested all points I have noticed, without success. All functions needed to read x64 memory process from a x86 process are already defined in the project so I suppose you already work on it.

Technically it should be possible. Some projects already implement it:

@n1nj4sec
Copy link
Owner

n1nj4sec commented May 5, 2018

I worked on it at some point but eventually gave up because it did not worked as expected ... A lot of products (like the sysinternals) just drop the x64 binary on disk to handle those problems because it's too much pain even for microsoft ;)

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