Post: GTA_V ONLINE_SCRIPT_MOD_BYPASS by Bucho
04-27-2015, 05:50 PM #1
bunbun888
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); You must login or register to view this content.
    
#pragma warning(disable:4996)
#include <windows.h>
#include <stdio.h>
#include <string>
#include <psapi.h>
#include <stdint.h>
using namespace std;


DWORD64 GetModuleBase(HANDLE hProc, string &sModuleName)
{



HMODULE *hModules;
hModules = 0;
char szBuf[50];
DWORD cModules = 0;
DWORD64 dwBase = 0;

EnumProcessModules(hProc, hModules, 0, &cModules);
hModules = new HMODULE[cModules / sizeof(HMODULE)];

if (EnumProcessModules(hProc, hModules, cModules / sizeof(HMODULE), &cModules)) {
for (int i = 0; i < cModules / sizeof(HMODULE); i++) {
if (GetModuleBaseName(hProc, hModules[i], szBuf, sizeof(szBuf))) {
if (sModuleName.compare(szBuf) == 0) {
dwBase = (DWORD64)hModules[i];
break;
}
}
}
}

delete[] hModules;

return dwBase;
}


void bypass_online()
{
__int64 Address = GetModuleBase(GetCurrentProcess(), string("GTA5.exe"));
INT i, p;
CHAR *MemoryBuff = new CHAR[512];
int ok = 0;
HANDLE hProcess = GetCurrentProcess();
BYTE bytes[] = { 0x48, 0x8B, 0x88, 0x10, 0x01, 0x00, 0x00 };
BYTE bytes2[] = { 0x4C, 0x8D, 0x8A, 0xC4, 0x00, 0x00, 0x00 };
BYTE jmp[] = { 0xEB, 0x1B };
BYTE nop2[] = { 0x90, 0x90 };
int count = 0;
int adc = 0;
for (int i = 0; i < 0x9FFF9840; i++)
{
ReadProcessMemory(hProcess, (LPVOID)Address, (LPVOID)MemoryBuff, 512, NULL);
for (p = 0; p < 512; p++)
{
Address++;
MemoryBuff++;
if (ok == 0)
{
if (memcmp(MemoryBuff, bytes, 7) == 0)
{
count++;
if (count == 2)
{
WriteProcessMemory(hProcess, (LPVOID)(Address + 0x2D), nop2, 2, 0);
ok = 1;
count = 0;
}
}
}
if (ok == 1)
{
if (adc == 0)
{
Address = GetModuleBase(GetCurrentProcess(), string("GTA5.exe"));
adc = 1;
}

if (memcmp(MemoryBuff, bytes2, 7) == 0)
{
count++;
if (count == 4)
{
WriteProcessMemory(hProcess, (LPVOID)(Address -0x27Cool Man (aka Tustin), jmp, 2, 0);
goto endfunc;
}
}
}

}
MemoryBuff = MemoryBuff - 512;
}
endfunc:;
}

//if u use alex's script hook it.

void ScriptMain()
{
bypass_online();//this function bypass create_vehicle and other function. and fix to crash when change animal of model in online
}
Last edited by bunbun888 ; 04-28-2015 at 02:05 AM.

The following user thanked bunbun888 for this useful post:

lwick
04-27-2015, 08:24 PM #20
dmx92
Keeper
this is golden, good job man!
04-27-2015, 08:25 PM #21
lo777lov
Save Point
Fucking visual studio.Please load compile dll
04-27-2015, 08:28 PM #22
bunbun888
Do a barrel roll!
Originally posted by dmx92 View Post
this is golden, good job man!


If I wanted to know, I do I do not sleepy me to create a tutorial on my behalf.
04-27-2015, 08:57 PM #23
lo777lov
Save Point
Please download the compiled dll, in my visual studio problems with psapi.h
04-27-2015, 09:39 PM #24
can any on tell us how to use
04-27-2015, 09:51 PM #25
Sabotage
Gaming Squad
much haxs
04-27-2015, 10:07 PM #26
Not Working
04-27-2015, 11:21 PM #27
please, put download asi. file
04-27-2015, 11:43 PM #28
Zemanez
I am error
Originally posted by oRezzah View Post
32 Errors in code


Sounds like you haven't got the header files (like psapi.h). Works fine for me.

Alexander Blade's SDK will help.

Originally posted by oRezzah View Post
This code is already in the native trainer ?


The original trainer does not work online for good reason - so we don't have a repeat of console lobbies being infected with kids using god mode.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo