rdbo / libmem

Advanced Game Hacking Library for C, Modern C++, Rust and Python (Windows/Linux/FreeBSD) (Process/Memory Hacking) (Hooking/Detouring) (Cross Platform) (x86/x64/ARM/ARM64) (DLL/SO Injection) (Internal/External) (Assembler/Disassembler)
GNU Affero General Public License v3.0
788 stars 91 forks source link

Only loop through real pages in LM_EnumPages(Ex) for Windows #42

Closed rdbo closed 1 year ago

rdbo commented 1 year ago

Unlike on Linux, where the pages are acquired through /proc/<pid>/maps, the Windows function tries to get all valid pages starting from address 0, which would be extremely slow when compared to only looping through the allocated pages.

rdbo commented 1 year ago

Done: f0e556ccfbe24428269683922a67d3d1879d87b8