TheCruZ / Simple-Manual-Map-Injector

Simple C++ DLL Manual Map Injector For x86 and x64
MIT License
368 stars 81 forks source link

When building the injector in debug mode, the game crashes; however, in release mode, it works fine and doesn't cause any issues. #15

Open woruteyqi opened 10 months ago

woruteyqi commented 10 months ago

why?

Dufiw commented 9 months ago

assuming your speaking about cs2, debug requires "-insecure" to be enabled in the game properties on steam while release doesn't. < Unless they changed it then I'm not sure

woruteyqi commented 9 months ago

assuming your speaking about cs2, debug requires "-insecure" to be enabled in the game properties on steam while release doesn't. < Unless they changed it then I'm not sure

i just inject a very simple DLL that just do show a messagebox when injected,the target process is a DX12 sample

TheCruZ commented 9 months ago

Probably (I don't have any computer in front to check) when you build in debug mode the injector get optimized for debugging setting jumps for every function etc and when injector tries to copy the shell code into the game is jus copying a jump and other bytes which is incorrect, an alternative could be dump the shellcode when build on release and use as array of bytes