diff --git a/OneByteWallhack.py b/OneByteWallhack.py index 46bd332..e28fd62 100644 --- a/OneByteWallhack.py +++ b/OneByteWallhack.py @@ -1,13 +1,22 @@ -import pymem -import re +from pymem import Pymem +from re import search +from pymem.process import module_from_name +from pymem.exception import ProcessNotFound -pm = pymem.Pymem('csgo.exe') -client = pymem.process.module_from_name(pm.process_handle, - 'client.dll') +try: + processName='csgo.exe' + pm = Pymem(processName) + client = module_from_name(pm.process_handle,'client.dll') -clientModule = pm.read_bytes(client.lpBaseOfDll, client.SizeOfImage) -address = client.lpBaseOfDll + re.search(rb'\x83\xF8.\x8B\x45\x08\x0F', - clientModule).start() + 2 + clientLpBaseOfDll=client.lpBaseOfDll + clientModule = pm.read_bytes(clientLpBaseOfDll, client.SizeOfImage) + address = clientLpBaseOfDll + search(rb'\x83\xF8.\x8B\x45\x08\x0F', + clientModule).start() + 2 -pm.write_uchar(address, 2 if pm.read_uchar(address) == 1 else 1) -pm.close_process() + pm.write_uchar(address, 2 if pm.read_uchar(address) == 1 else 1) + pm.close_process() + + print("hack completed") + +except ProcessNotFound: + print("error: couldn't find process",processName) diff --git a/README.md b/README.md index 7f43c2e..cec4ea2 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # OneByteWallhack -CS:GO wallhack achieved by patching one byte of game memory. Written in Python 3. +CS:GO wallhack achieved by patching one byte of game process memory. Written in Python 3.9 This does the same as **r_drawothermodels 2** command but without touching the cvar, so it's VAC - safe. @@ -13,4 +13,11 @@ if ( r_drawothermodels.GetInt() == 2 ) } ``` -The **r_drawothermodels** check is modified to make the `if` expression evaluate to **true** when **r_drawothermodels** cvar is set to default value (1). \ No newline at end of file +The **r_drawothermodels** check is modified to make the `if` expression evaluate to **true** when **r_drawothermodels** cvar is set to default value (1). + +𝗜𝗺𝗽𝗼𝗿𝘁𝗮𝗻𝘁! : +Download python 3.9 or newer if you hadn't: https://www.python.org/downloads/ +You may need to head to "C:\Users\ username \AppData\Local\Programs\Python\Python39\Scripts" press Win+R write "cmd" and "pip install pymem" and or "pip install pywin32" and restart your pc. + +Usage: +Run CSGO before this script. You will also need to run this script as administrator