-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCSGOExternalCheat.py
More file actions
155 lines (131 loc) · 5.52 KB
/
CSGOExternalCheat.py
File metadata and controls
155 lines (131 loc) · 5.52 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
from Feature import Feature
import pymem
import pymem.process
import requests
import threading
import keyboard
import sys
from Menu import Menu
offsets = 'https://raw.githubusercontent.com/frk1/hazedumper/master/csgo.json'
response = requests.get( offsets ).json()
m_iCompetitiveWins = int(response["netvars"]["m_iCompetitiveWins"])
dwEntityList = int( response["signatures"]["dwEntityList"] )
dwGlowObjectManager = int( response["signatures"]["dwGlowObjectManager"] )
m_iGlowIndex = int( response["netvars"]["m_iGlowIndex"] )
m_iTeamNum = int( response["netvars"]["m_iTeamNum"] )
dwForceJump =int( response["signatures"]["dwForceJump"] )
dwLocalPlayer = int( response["signatures"]["dwLocalPlayer"] )
dwRadarBase=int( response["signatures"]["dwRadarBase"] )
m_fFlags = int( response["netvars"]["m_fFlags"] )
dwForceAttack = int( response["signatures"]["dwForceAttack"] )
m_iCrosshairId = int( response["netvars"]["m_iCrosshairId"] )
m_flFlashMaxAlpha = int( response["netvars"]["m_flFlashMaxAlpha"] )
m_iHealth =(0x100)
m_bSpotted = int( response["netvars"]["m_bSpotted"] )
m_iShotsFired = int( response["netvars"]["m_iShotsFired"] )
m_aimPunchAngle = int( response["netvars"]["m_aimPunchAngle"])
m_bGunGameImmunity = int( response["netvars"]["m_bGunGameImmunity"] )
m_bIsDefusing = int( response["netvars"]["m_bIsDefusing"] )
m_bDormant = int( response["signatures"]["m_bDormant"] )
dwClientState_PlayerInfo = int( response["signatures"]["dwClientState_PlayerInfo"] )
dwPlayerResource = int( response["signatures"]["dwPlayerResource"] )
m_iCompetitiveRanking = int( response["netvars"]["m_iCompetitiveRanking"] )
Ranks=[
"Unranked",
"Silver I",
"Silver II",
"Silver III",
"Silver IV",
"Silver Elite",
"Silver Elite Master",
"Gold Nova I",
"Gold Nova II",
"Gold Nova III",
"Gold Nova Master",
"Master Guardian I",
"Master Guardian II",
"Master Guardian Elite",
"Distinguished Master Guardian",
"Legendary Eagle",
"Legendary Eagle Master",
"Supreme Master First Class",
"The Global Elite"
]
# input process name
nameprocess = "csgo.exe"
pm=pymem.Pymem(nameprocess)
client = pymem.process.module_from_name( pm.process_handle, "client.dll" ).lpBaseOfDll
engine = pymem.process.module_from_name( pm.process_handle, "engine.dll" ).lpBaseOfDll
def thread_func():
player = pm.read_int(client+dwLocalPlayer)
while True:
if player:
value=player+m_flFlashMaxAlpha
if value:
pm.write_float(player+m_flFlashMaxAlpha,float(0))
else:
pass
def glow():
while True:
glow_manager = pm.read_int(client+dwGlowObjectManager)
for i in range(1,32):
entity=pm.read_int(client+dwEntityList+i*0x10)
if entity>0:
entity_team_id=pm.read_int(entity+m_iTeamNum)
entity_glow=pm.read_int(entity+m_iGlowIndex)
if entity_team_id==2:
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:
pm.write_float(glow_manager + entity_glow * 0x38 + 0x8, float(0)) # R
pm.write_float(glow_manager + entity_glow * 0x38 + 0xC, float(0)) # G
pm.write_float(glow_manager + entity_glow * 0x38 + 0x10, float(1)) # 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
def RadarHack():
while True:
for i in range(32):
entity=pm.read_int(client + dwEntityList + i * 0x10)
if entity:
pm.write_uchar(entity+m_bSpotted,1)
def rankReveal():
lobby=dict()
lobby[2]=list()
lobby[3]=list()
lobby[0]=list()
playerResource=pm.read_int(client+dwPlayerResource)
radarBase=pm.read_int(client+dwRadarBase)
radarPTR=pm.read_int(radarBase+0x78)
for i in range(2,32):
entity=pm.read_int(client + dwEntityList + (i-1) * 0x10)
if entity>0:
name=pm.read_string(radarPTR + 0x300+ (0x174 * (i-1)),33)
ranks=pm.read_int(playerResource+m_iCompetitiveRanking+ (i * 0x04))
wins=pm.read_int(playerResource+m_iCompetitiveWins+ (i * 0x04))
lobby[pm.read_int(entity+m_iTeamNum)].append("Player: {:<40} Ranks: {}, Wins: {}".format(name,Ranks[ranks],wins))
print("Terrorist {: >10}".format(len(lobby[2])))
for x in lobby[2]:
print(x)
print("-"*50)
print("Counter Terrorist {: >10}".format(len(lobby[3])))
for x in lobby[3]:
print(x)
if __name__=="__main__":
#rankReveal()
arr=[
Feature("Anti-Flash",thread_func),
Feature("Glow",glow),
Feature("Radar Hack",RadarHack),
]
UI=Menu(arr)
UI.displayMenu()
print("------------------ Rank Reveal -----------------")
rankReveal()
print("------------------------------------------------")
# hop=threading.Thread(target=bhop)
# hop.start()
# hop=threading.Thread(target=enemyHealth)
# hop.start()