-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.py
142 lines (112 loc) · 4.44 KB
/
main.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
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
#dependencies
import os
import pymem
import pymem.process
import keyboard
import time
import random
import threading
# config
from config import *
#functions
from functions.manager import *
from functions.aimbot import *
from functions.bhop import *
from functions.triggerbot import *
from functions.glow import *
from functions.chams import *
from functions.rcs import *
from functions.junkcode import *
from functions.fovChanger import *
from functions.noFlash import *
#offsets
from offsets.autoUpdater import *
from offsets.offsets import *
os.system("wmic process where processid=\""+str(os.getpid())+"\" CALL setpriority \"high priority\"")
os.system("cls")
print("[0x1]: Generating new junkcode, if not initialize please try again...")
junkcode()
print("[0x1]: Updating offets...")
update()
glowActive = False
chamsActive = False
rcsActive = False
aimActive = False
fovActive = False
noFlashActive = False
class main():
def __init__(self):
self.pm = pymem.Pymem("csgo.exe")
self.client = pymem.process.module_from_name(self.pm.process_handle, "client.dll").lpBaseOfDll
self.engine = pymem.process.module_from_name(self.pm.process_handle, "engine.dll").lpBaseOfDll
self.enginePointer = self.pm.read_uint(self.engine + dwClientState)
def UI(self):
os.system("cls")
print("Welcome to 0x1")
print("Coded by: weakness#0054")
print("\n \nHotkeys:")
print("----------[Hold]----------")
print("Bhop and autoStrafe: Space")
print("TriggerBot: "+ triggerKey + "\n")
print("----------[Toggle]----------")
print("FovChanger: F1")
print("NoFlash: F2")
print("Glow: F6")
print("Chams visible: F7")
print("RCS: F8")
print("Aimbot: F9, " + aimKey + " key to use")
print("\n----------[Console]----------")
print("\n \nLogs:")
def UpdateUI(self, hackActive, hackName):
if hackActive:
time.sleep(0.1)
return print("[0x1]: " + hackName + " is active")
time.sleep(0.1)
return print("[0x1]: " + hackName + " is not active")
def activator(self, hackActive, key, hackName):
if(keyboard.is_pressed(key)):
self.UpdateUI(not hackActive, hackName)
if(hackActive == True):
return False
else:
return True
return hackActive
def mainLoop(self):
global glowActive
global chamsActive
global rcsActive
global aimActive
global fovActive
global noFlashActive
self.UI()
def misc():
bhop(self.pm, self.client, self.engine, self.enginePointer, autoStrafe)
trigger(self.pm, self.client, self.engine, self.enginePointer, triggerbotDelay, triggerKey)
while True:
if(manager(self.pm, self.client, self.engine, self.enginePointer)):
threading.Thread(target=misc, name='misc', daemon=True).start()
fovActive = self.activator(fovActive, "F1", "FovChanger")
if(fovActive):
fovChanger(self.pm, self.client, self.engine, self.enginePointer, fovValue)
fovActive = False
noFlashActive = self.activator(noFlashActive, "F2", "NoFlash")
if(noFlashActive):
noFlash(self.pm, self.client, self.engine, self.enginePointer, True)
noFlashActive = False
glowActive = self.activator(glowActive, "F6", "Glow")
if(glowActive):
glow(self.pm, self.client, self.engine, self.enginePointer, glowColor)
rcsActive = self.activator(rcsActive, "F8", "RCS")
if(rcsActive):
rcs(self.pm, self.client, self.engine, self.enginePointer)
chamsActive = self.activator(chamsActive, "F7", "Chams")
if(chamsActive):
chams(self.pm, self.client, self.engine, self.enginePointer, colorChams, chamsbrightness)
aimActive = self.activator(aimActive, "F9", "Aimbot")
if(aimActive):
aimbot(self.pm, self.client, self.engine, self.enginePointer, aimfov, bone, autoShot, aimKey, aimDelay)
try:
program = main()
program.mainLoop()
except Exception as err:
print(err)