Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 19 additions & 10 deletions OneByteWallhack.py
Original file line number Diff line number Diff line change
@@ -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)
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand All @@ -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).
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