Hello guys.
I'm trying to read some user space memory but I can't due to an exception while using ProbeForRead (ACCESS_VIOLATION).
These are the steps I follow to read the memory:
1) I open a through ZwOpenProcess
2) I open a system handle through PsLookupProcessByProcessId
3) I use ZwQueryVirtualMemory to get the virtual addresses pages and their sizes
4) KeStackAttach to switch context
5) ProbeForRead -> ACCESS_VIOLATION (on addresses got before with ZwQueryVirtualMemory)
What am I doing wrong?
Thank you very much.
I'm trying to read some user space memory but I can't due to an exception while using ProbeForRead (ACCESS_VIOLATION).
These are the steps I follow to read the memory:
1) I open a through ZwOpenProcess
2) I open a system handle through PsLookupProcessByProcessId
3) I use ZwQueryVirtualMemory to get the virtual addresses pages and their sizes
4) KeStackAttach to switch context
5) ProbeForRead -> ACCESS_VIOLATION (on addresses got before with ZwQueryVirtualMemory)
What am I doing wrong?
Thank you very much.