-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunc.py
More file actions
97 lines (76 loc) · 3.28 KB
/
func.py
File metadata and controls
97 lines (76 loc) · 3.28 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
import os
import datetime
drc = os.getcwd() + "\Reg"
def cpuButton():
directory = drc + "\CPU Optimizations.reg"
os.system('"' + directory + '"')
with open('temp.txt', 'r') as f:
with open(f.read(), 'a+') as k:
k.writelines(str(datetime.datetime.now()) + ' : -- CPU OPTIMIZATIONS APPLIED --\n')
def disableWinDef():
dirc = drc + "\Disable Windows Defender.reg"
os.system('"' + dirc + '"')
with open('temp.txt', 'r') as f:
with open(f.read(), 'a+') as k:
k.writelines(str(datetime.datetime.now()) + ' : -- WIN DEF DISABLED --\n')
def powerSavingForUsb():
directory = drc + "\Disable Power Saving Features For USB and System.reg"
os.system('"' + directory + '"')
with open('temp.txt', 'r') as f:
with open(f.read(), 'a+') as k:
k.writelines(str(datetime.datetime.now()) + ' : -- POWER SAVING FOR USB DISABLED --\n')
def disableDiagnosticServices():
dirc = drc + "\Disable Diagnostics and Telemetry Services.reg"
os.system('"' + dirc+ '"')
with open('temp.txt', 'r') as f:
with open(f.read(), 'a+') as k:
k.writelines(str(datetime.datetime.now()) + ' : -- DIAGNOSTIC SERVICE DISABLED --\n')
def disableMaps():
dirc = drc + "\Disable Download Maps Manager.reg"
os.system('"' + dirc + '"')
with open('temp.txt', 'r') as f:
with open(f.read(), 'a+') as k:
k.writelines(str(datetime.datetime.now()) + ' : -- WIN MAPS DISABLED --\n')
def disableXbox():
dirc = drc + "\Disable Xbox Services.reg"
os.system('"' + dirc + '"')
with open('temp.txt', 'r') as f:
with open(f.read(), 'a+') as k:
k.writelines(str(datetime.datetime.now()) + ' : --XBOX SERVICES DISABLED --\n')
def restart():
os.system("shutdown /r")
with open('temp.txt', 'r') as f:
with open(f.read(), 'a+') as k:
k.writelines(str(datetime.datetime.now()) + ' : -- SYS RESTART --\n')
def revCpu():
pass
def winDefEn():
os.system('"' + drc + '\Enable Windows Defender.reg' + '"')
with open('temp.txt', 'r') as f:
with open(f.read(), 'a+') as k:
k.writelines(str(datetime.datetime.now()) + ' : -- WIN DEF ENABLED --\n')
def revUsb():
pass
def telemetryEn():
os.system('"' + drc + '\Enable Diagnostics & Telemtry Services.reg' + '"')
with open('temp.txt', 'r') as f:
with open(f.read(), 'a+') as k:
k.writelines(str(datetime.datetime.now()) + ' : -- TELEMETRY ENABLED --\n')
def msmapEn():
os.system('"' + drc + '\Enable Download Maps Manager.reg' + '"')
with open('temp.txt', 'r') as f:
with open(f.read(), 'a+') as k:
k.writelines(str(datetime.datetime.now()) + ' : -- MS MAP ENABLED --\n')
def xboxEn():
os.system('"' + drc + '\Enable Xbox Services.reg' + '"')
with open('temp.txt', 'r') as f:
with open(f.read(), 'a+') as k:
k.writelines(str(datetime.datetime.now()) + ' : -- XBOX SERVICES ENABLED --\n')
def nvInspec():
os.system('"' + drc + '\EvidiaProfileInspector.exe' + '"')
def msiMode():
os.system('"' + drc + '\MSI Mode Utility V2.exe' + '"')
def deFrag():
os.system('"' + '%windir%\system32\dfrgui.exe' + '"')
def afterburner():
os.system('"' + 'start /max https://www.msi.com/Landing/afterburner/graphics-cards' + '"')