📜  csgo force crosshair on sniper python代码示例

📅  最后修改于: 2022-03-11 14:46:27.435000             🧑  作者: Mango

代码示例1
static char* DrawCrosshairWeaponTypeCheck = reinterpret_cast( FindSignature( "client.dll", "83 F8 05 75 17" ) );
 
DWORD dwOldProtect;
DWORD dwNewProtect;
 
// Make it writable
VirtualProtectEx( GetCurrentProcess(), DrawCrosshairWeaponTypeCheck, 3, PAGE_EXECUTE_READWRITE, &dwOldProtect );
 
*( ( DrawCrosshairWeaponTypeCheck + 0x2 ) ) = 0xFF;
 
// Restore old protection
VirtualProtectEx( GetCurrentProcess(), DrawCrosshairWeaponTypeCheck, 3, dwOldProtect, &dwNewProtect );