-
Notifications
You must be signed in to change notification settings - Fork 0
/
wallhack.py
51 lines (43 loc) · 2.77 KB
/
wallhack.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import pymem
import pymem.process
import requests
offsets = 'https://raw.githubusercontent.com/frk1/hazedumper/master/csgo.json'
response = requests.get( offsets ).json()
m_fFlags = int( response["netvars"]["m_fFlags"] )
dwEntityList = int( response["signatures"]["dwEntityList"] )
dwGlowObjectManager = int( response["signatures"]["dwGlowObjectManager"] )
m_iGlowIndex = int( response["netvars"]["m_iGlowIndex"] )
m_iTeamNum = int( response["netvars"]["m_iTeamNum"] )
dwLocalPlayer = int( response["signatures"]["dwLocalPlayer"] )
def main():
print('''
__________ __ __ __ .__ .__
\______ \ ____ ____ | | __ / \ / \_____ | | | | ______
| | _// _ \ / \| |/ / \ \/\/ /\__ \ | | | | / ___/
| | ( <_> ) | \ < \ / / __ \| |_| |__\___ \
|______ /\____/|___| /__|_ \ \__/\ / (____ /____/____/____ >
\/ \/ \/ \/ \/ \/
''')
pm = pymem.Pymem("csgo.exe")
client = pymem.process.module_from_name(pm.process_handle, "client.dll").lpBaseOfDll
while True:
glow_manager = pm.read_int(client + dwGlowObjectManager)
for i in range(1, 32): # Entities 1-32 are reserved for players.
entity = pm.read_int(client + dwEntityList + i * 0x10)
if entity:
entity_team_id = pm.read_int(entity + m_iTeamNum)
entity_glow = pm.read_int(entity + m_iGlowIndex)
if entity_team_id == 2: # Terrorist
pm.write_float(glow_manager + entity_glow * 0x38 + 0x8, float(1)) # R
pm.write_float(glow_manager + entity_glow * 0x38 + 0xC, float(0)) # G
pm.write_float(glow_manager + entity_glow * 0x38 + 0x10, float(0)) # B
pm.write_float(glow_manager + entity_glow * 0x38 + 0x14, float(1)) # Alpha
pm.write_int(glow_manager + entity_glow * 0x38 + 0x28, 1) # Enable glow
elif entity_team_id == 3: # Counter-terrorist
pm.write_float(glow_manager + entity_glow * 0x38 + 0x8, float(0)) # R
pm.write_float(glow_manager + entity_glow * 0x38 + 0xC, float(1)) # G
pm.write_float(glow_manager + entity_glow * 0x38 + 0x10, float(0)) # B
pm.write_float(glow_manager + entity_glow * 0x38 + 0x14, float(1)) # Alpha
pm.write_int(glow_manager + entity_glow * 0x38 + 0x28, 1) # Enable glow
if __name__ == '__main__':
main()