Hi everyone!
I'm developing a CS2 cheat for bhop in Python that interacts with Win32 APIs (OpenProcess, EnumProcessModulesEx, WriteProcessMemory).
My goal is to learn more about low-level programming on Windows, reading/writing memory in processes, and how to properly handle handles, modules, and permissions.
I'm seeking feedback and contributions focused on:
- Best practices and security (e.g., MAYBE reduce privileges instead of using PROCESS_ALL_ACCESS, proper handling of handles).
- Robustness and error handling (improve logging, avoid crashes, validate inputs).
- Windows optimization (recommended API patterns, asynchronous calls vs. polling).
- Ethical considerations and problem mitigation (such as preventing abuse, detecting/preventing misuse).
If you could test my code and give your final feedback, I would be grateful. For now, the script only works with the game in windowed mode. I intend to try and improve this later, and I'm open to possible improvements/contributions.
I can't paste the link here, but if you're interested, search for Ort0x36 on GitHub, repository fuck-cs2-bhop.