Le-o-n / cython-virtual-memory-toolkit

The Cython Virtual Memory Toolkit is designed to provide Cython header files (*.pxd) for various functionalities, enabling Cython to interact with the virtual memory of a target process. This toolkit includes features for reading, writing, allocating, and freeing virtual memory.
MIT License
2 stars 0 forks source link

Development #34

Closed Le-o-n closed 3 months ago

Le-o-n commented 3 months ago

Improved the AOB scan from a slow singlethreaded loop that called Windows API function that reads process memory for each address between start address and end address (this is very bad due to the overheads of these calls).

New scan only calls the Windows API read virtual memory function for each memory region once, stores in a buffer and then for each memory region, iterates over all the locations and checks if the memory matches the target pattern - this also uses multithreading.