Moderators: g3nuin3, SpeedWing, WhiteHat
memcpy( (LPVOID)&Bombs, (LPCVOID)&buffer, sizeof( UINT_PTR ) ); // Bombs is in the wrong position and sizeof() should be used instead of hardcoding numbers. NEVER HARDCODE NUMBERS.
UINT_PTR DeRef( UINT_PTR _uiptrPointer ) {
UINT_PTR uiptrRet;
if ( !::ReadProcessMemory( hProcess, reinterpret_cast<LPVOID>(_uiptrPointer), &uiptrRet, sizeof( uiptrRet ), NULL ) ) { return 0UL; }
return uiptrRet;
}
UINT_PTR DeRef( UINT_PTR _uiptrPointer ) {
return (*reinterpret_cast<UINT_PTR *>(_uiptrPointer));
}
[[0x00570074+0x0]+0x0]+0x8C
DefRef( DefRef( 0x00570074+0x0 )+0x0 )+0x8C
DWORD * pdwFinal = reinterpret_cast<DWORD *>(DefRef( DefRef( 0x00570074+0x0 )+0x0 )+0x8C);
(*pdwFinal) = 90; // Modify the value.
Users browsing this forum: No registered users and 0 guests