Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // HackAnyGamePt2.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include "proc.h"
- #include "string"
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- #include <sstream>
- #include <time.h>
- //using namespace std;
- int main()
- {
- for (;;)
- {
- DWORD procId = GetProcId(L"gta_sa.exe");
- uintptr_t moduleBase = GetModuleBaseAddress(procId, L"samp.dll");
- uintptr_t moduleBaseSA = GetModuleBaseAddress(procId, L"gta_sa.exe");
- HANDLE hProcess = 0;
- hProcess = OpenProcess(PROCESS_ALL_ACCESS, NULL, procId);
- uintptr_t versionAddr = moduleBase + 0xD3B93;
- char versiontype;
- char newVersion = 0x34;
- ReadProcessMemory(hProcess, (CHAR*)versionAddr, &versiontype, sizeof(versiontype), nullptr);
- WriteProcessMemory(hProcess, (CHAR*)versionAddr, &newVersion, sizeof(newVersion), nullptr);
- std::cout << "version = " << std::dec << versiontype << std::endl;
- Sleep(2500);
- system("CLS");
- }
- getchar();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement