This repository was archived by the owner on Mar 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathmain.py
More file actions
83 lines (75 loc) · 2.02 KB
/
main.py
File metadata and controls
83 lines (75 loc) · 2.02 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
import os
import time
import ctypes
import argparse
# VERSIONS #
program_ver = "1.0.0"
dll_ver = "0.0.3-beta3"
injector_ver = "0.0.4"
############
# SETUP ARGS #
parser = argparse.ArgumentParser(add_help=False)
parser.add_argument("--dev", help=argparse.SUPPRESS, action="store_true")
parser.add_argument("--two", help=argparse.SUPPRESS, action="store_true")
args = parser.parse_args()
##############
if args.two:
dll_ver = "0.0.2"
# ERRORS CODES #
errors = [
"INJECTOR_NOT_STARTED",
"INJECTOR_NOT_FOUND",
"DLL_NOT_FOUND",
"UNKNOW_ERROR"
]
################
# ERROR FIXES #
fixes = [
"- make sure the program is extracted correctly",
"- make sure any antivirus is blocking the client"
]
###############
os.system('cls')
ctypes.windll.kernel32.SetConsoleTitleW("AmongUsCheatClient Installer")
print("Installer version " + program_ver)
print("Client version " + dll_ver)
print("Injector version " + injector_ver)
print("Loading...\n")
# slow down a bit the program so the user can have the time to read
time.sleep(4)
try:
# try to load the files
if args.dev:
dll_path = os.path.abspath("AmongUsCheatClient-8i\\Release\\AUCC.dll")
injector_path = os.path.abspath("Injector-" + injector_ver + ".exe")
else:
try:
dll_path = os.path.abspath("AUCC-" + dll_ver + ".dll")
except:
print("An error occured:")
print(errors[2])
print("Possible fixes:")
print(fixes[0])
print(fixes[1])
try:
injector_path = os.path.abspath("Injector-" + injector_ver + ".exe")
except:
print("An error occured:")
print(errors[1])
print("Possible fixes:")
print(fixes[0])
print(fixes[1])
# start the injector
try:
# todo : use the returned values of the injector to handle them in here instead of having two separate process for error handling
os.system('Injector-' + injector_ver + '.exe --process-name \"Among Us.exe\" --inject ' + dll_path)
except:
print("An error occured:")
print(errors[0])
print("Possible fixes :")
print(fixes[0])
print(fixes[1])
except:
print("An error occured:")
print(errors[3])
time.sleep(5)