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, 11:45 PM #29
Zemanez
I am error
Originally posted by testegw View Post
please, put download asi. file


This is for those making trainers. Compiling to an .asi file will do nothing without trainer/menu code.
04-27-2015, 11:49 PM #30
bunbun888
Do a barrel roll!
Originally posted by Zemanez View Post
This is for those making trainers. Compiling to an .asi file will do nothing without trainer/menu code.


Thank you for explaining to us.:yes:
04-28-2015, 06:17 AM #31
I compiled this in Blade's SDK, Onlinebypass.h with code, #include "onlinebypass.h" in script.cpp, and the void scriptmain including the bypass. but this simply does NOTHING in game...

what am i doing wrong?

You must login or register to view this content.
04-28-2015, 06:22 AM #32
bunbun888
Do a barrel roll!
Originally posted by Staley View Post
I compiled this in Blade's SDK, Onlinebypass.h with code, #include "onlinebypass.h" in script.cpp, and the void scriptmain including the bypass. but this simply does NOTHING in game...

what am i doing wrong?

You must login or register to view this content.


you need visual studio c++ sdk(?).
soo the dll of better to inject Try performed using Extreme Injector v3.3. The SDK required when would be downloaded!
04-28-2015, 10:28 AM #33
dmx92
Keeper
bypass_online(); has to be before main();
04-28-2015, 07:48 PM #34
Originally posted by dmx92 View Post
bypass_online(); has to be before main();


you're my hero
05-05-2015, 12:19 PM #35
lovemf
Save Point
unicode can't Compile
tip: can't char[50] change LPWSTR

thanks
05-05-2015, 01:46 PM #36
bunbun888
Do a barrel roll!
Originally posted by lovemf View Post
unicode can't Compile
tip: can't char[50] change LPWSTR

thanks

Hello.
You must login or register to view this content.
You should select multibyte of character set.
05-05-2015, 02:26 PM #37
lovemf
Save Point
thank you for repay

i change the source text chinese,so must be unicode.how can i edit the source?

sorry my bad english. thank you again.

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo