Skip to content

Instantly share code, notes, and snippets.

Current and permanent status: GitHub is not a social network.


Current and permanent status: GitHub is not a social network.
View GitHub Profile
RolfRolles / member-func-ptr-cast.cpp
Created Oct 31, 2020
Example showing how to cast member function pointers and use proxy stubs during DLL injection / code reuse
View member-func-ptr-cast.cpp
#define USE_OCT20_VERSION 1
#define OFFS_ValveBuffer_Constructor 0x83A9E0
#define OFFS_ValveBuffer_Destructor 0x83FC30
#define OFFS_ValveBuffer_PutByte 0x83C8D0
#define OFFS_ValveBuffer_PutByteBuffer 0x83BDA0
#define OFFS_ValveBuffer_PutString 0x44C940
#define OFFS_ValveBuffer_GetByteBuffer 0x44C070
View smartlock-dec.c
unsigned char dscrc_table[] =
0x00, 0x5E, 0xBC, 0xE2, 0x61, 0x3F, 0xDD, 0x83, 0xC2, 0x9C,
0x7E, 0x20, 0xA3, 0xFD, 0x1F, 0x41, 0x9D, 0xC3, 0x21, 0x7F,
0xFC, 0xA2, 0x40, 0x1E, 0x5F, 0x01, 0xE3, 0xBD, 0x3E, 0x60,
0x82, 0xDC, 0x23, 0x07, 0x9F, 0xC1, 0x42, 0x1C, 0xFE, 0xA0,
0xE1, 0xBF, 0x5D, 0x03, 0x80, 0xDE, 0x3C, 0x62, 0xBE, 0xE0,
0x02, 0x5C, 0xDF, 0x81, 0x63, 0x3D, 0x7C, 0x22, 0xC0, 0x9E,
0x1D, 0x43, 0xA1, 0xFF, 0x46, 0x18, 0xFA, 0xA4, 0x27, 0x79,
0x9B, 0xC5, 0x84, 0xDA, 0x38, 0x66, 0xE5, 0xBB, 0x59, 0x07,