Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- long Read(DWORD address){
- long read;
- ReadProcessMemory(proc,(void*)address,(void*)&read,4,0);
- //MessageBoxA(0,StringifyHex(read),StringifyHex(address),0);
- return read;
- }
- Pointer(DWORD base_offset,DWORD offset1,DWORD offset2,DWORD offset3,DWORD offset4,DWORD offset5,long limit_down,long limit_up){
- _base_address = (DWORD)GetModuleHandleA(NULL);
- _base_offset = base_offset;
- _offset1 = offset1;
- _offset2 = offset2;
- _offset3 = offset3;
- _offset4 = offset4;
- _offset5 = offset5;
- proc = GetCurrentProcess();
- _limit = true;
- _limit_down = limit_down;
- _limit_up = limit_up;
- }
- long ReadValue(){
- long address = Read(_base_address+_base_offset);
- address = Read((DWORD)(address+_offset1));
- address = Read((DWORD)(address+_offset2));
- address = Read((DWORD)(address+_offset3));
- address = Read((DWORD)(address+_offset4));
- return Read((DWORD)(address+_offset5));
- }
- Pointer curhealth(0x0057C5D0,0x364,0x10c,0x3f8,0x14,0x0,20,500000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement