-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
CLI.py
203 lines (150 loc) · 5.89 KB
/
CLI.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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
import datetime
global os
import sys
import time
import User.UserProfile
global cwd
cwd = User.UserProfile.SourceDirectory
def checkpoint():
import os
import time
os.chdir(User.UserProfile.SourceDirectory)
time.sleep(0)
print('\n' * 100)
import importlib
import System.Requirements.Banner
importlib.reload(System.Requirements.Banner)
try:
with open(
f'{User.UserProfile.SourceDirectory}System/.Cache/System/Version.py',
'r',
) as ver:
version = ver.read()
except:
version = 'Version Cannot Be Read'
import datetime
print(
f"""
\033[1m ______ ______
| | | | | |\ /|
| +- |-+-| |-+- | + |
| | | | | | |
--- \033[0m
==========================================
What's up \033[1m\033[1m{User.UserProfile.Username}!\033[0m
Today: {datetime.datetime.today()}
From The Devs! {version}Check out the GUI it's option 9!
==========================================="""
)
print(System.Requirements.Banner.FunctionList)
Value = input('Enter a value to continue: ')
try:
Value = int(Value)
except:
import System.Drive.Errors_Events.EventMan as EV
EV.NewEvent(event=f'FunctionRequest input error', Pol=1)
checkpoint()
if Value == 1: # System info
try:
import System.Drive.Errors_Events.EventMan as EV
EV.NewEvent(event=f'FunctionRequest = Information', Pol=1)
import System.Requirements
print(System.Requirements.Information.SwAT)
t = input('\n\nHit enter to continue: ')
print('\n\n')
import System.Requirements
print(System.Requirements.FTD.dev_message)
t = input('\n\nHit enter to continue: ')
except:
import System.Drive.Errors_Events.ErrorMan as ER
ER.NewIssue(
Line=21,
ErNo=1,
SCR='System.Drive.FunctionRequest',
KeFu=['Info'],
UserInp=None,
)
import System.Drive.Errors_Events.EventMan as EV
EV.NewEvent(event=f'FunctionRequest = Information * Failed', Pol=0)
os.chdir(User.UserProfile.SourceDirectory)
time.sleep(0)
os.chdir(User.UserProfile.SourceDirectory)
checkpoint()
elif Value == 2: # mcm
try:
import System.Drive.Errors_Events.EventMan as EV
EV.NewEvent(event=f'FunctionRequest = Cache', Pol=1)
import System.Drive.Functions.Cache
exec('System.Drive.Functions.Cache')
except:
import System.Drive.Errors_Events.ErrorMan as ER
import System.Drive.Errors_Events.EventMan as EV
EV.NewEvent(event=f'FunctionRequest = Cache * Failed', Pol=0)
ER.NewIssue(
Line=31,
ErNo=0,
SCR='System.Drive.FunctionRequest',
KeFu=['CacheRemoval'],
UserInp=None,
)
os.chdir(User.UserProfile.SourceDirectory)
checkpoint()
elif Value == 3:
import System.Drive.Errors_Events.EventMan as EV
EV.NewEvent(event=f'FunctionRequest = PackageUninstaller', Pol=1)
import System.Drive.Functions.Uninstall
Input = input('Enter Password To Use Uninstaller: ')
try:
import System.Drive.Password as PS
PS.Password(Event='Uninstall', Input=Input)
print('Launching Uninstaller')
time.sleep(1.54)
print('\n' * 100)
EV.NewEvent(event=f'Starting Uninstaller', Pol=0)
System.Drive.Functions.Uninstall.All()
except:
Input = input('Enter Password To Use Uninstaller: ')
try:
import System.Drive.Password as PS
PS.Password(Event='Uninstall', Input=Input)
print('Launching Uninstaller')
time.sleep(1.54)
print('\n' * 100)
EV.NewEvent(event=f'Starting Uninstaller', Pol=0)
System.Drive.Functions.Uninstall.All()
except:
print('Final Attempt')
Input = input('Enter Password To Use Uninstaller: ')
try:
import System.Drive.Password as PS
PS.Password(Event='Uninstall', Input=Input)
print('Launching Uninstaller')
time.sleep(1.54)
print('\n' * 100)
EV.NewEvent(event=f'Starting Uninstaller', Pol=0)
System.Drive.Functions.Uninstall.All()
except:
EV.NewEvent(event=f'Password Failed Multiple Times', Pol=1)
os.chdir(User.UserProfile.SourceDirectory)
checkpoint()
elif Value == 0:
print(f'Peace Out {User.UserProfile.Username}!')
import System.Drive.Errors_Events.EventMan as EV
EV.NewEvent(event=f'User Logged Out', Pol=0)
exit(0)
elif Value == 4:
import System.Drive.VersionUpdate
exec('System.Drive.VersionUpdate')
else:
import System.Drive.Errors_Events.EventMan as EV
EV.NewEvent(event=f'FunctionRequest = InvalidEntry', Pol=1)
import System.Drive.Errors_Events.ErrorMan as ER
ER.NewIssue(
Line=69,
ErNo=1,
SCR='System.Drive.FunctionRequest',
KeFu=['IncorrectInputValue'],
UserInp=None,
)
checkpoint()
#test