jonomango / hv

Lightweight Intel VT-x Hypervisor.
MIT License
406 stars 86 forks source link

Wrong CR3 #18

Closed badr-tn closed 1 year ago

badr-tn commented 1 year ago

Since EAC has started modifying the CR3 value to some wrong value reading physical memory is no longer possible without accessing or finding the original CR3 value so is there a way to find it? Or do I have to just read virtual memory?

thanks :)

jonomango commented 1 year ago

Well, reading physical memory doesn't need the CR3 register (this is a half-lie), since the whole point of that register is for translating virtual addresses to physical addresses. Your best bet is just temporarily hooking the game at a known point where it will have a valid CR3 and storing that somewhere.

badr-tn commented 1 year ago

That's too complicated for me now I'll just read virtual memory with syscalls thanks 👍🏻