Skip to content

Commit fe2f051

Browse files
v1
1 parent c6dd408 commit fe2f051

11 files changed

+250
-66
lines changed

DarK.py

Lines changed: 38 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
Guide, disableDiagnosticServices,
66
disableBluetooth, disableMaps,
77
msiModeUtility, disableXbox,
8-
nvidiaPI, restart
8+
nvidiaPI, restart,
9+
disableWinDef, Enable
910
)
1011

1112
"""Code By Chinmay Varier"""
@@ -27,49 +28,63 @@
2728

2829
cpuOptimization = Label(ROOT, text="Apply CPU Optimizations", bg="#cba4ff")
2930
cpuOptimization.config(font=("Times", 20, "italic"))
30-
cpuOptimization_canvas = MC.create_window(Fh-95, 10, anchor='nw', window=cpuOptimization)
31+
MC.create_window(Fh-95, 10, anchor='nw', window=cpuOptimization)
3132
cpuButton = Button(ROOT, text="Confirm", command=cpuButton, bg="#00FFFF", width=20)
32-
cpuButton_canvas = MC.create_window(Fh-20, 50, anchor='nw', window=cpuButton)
33+
MC.create_window(Fh-20, 50, anchor='nw', window=cpuButton)
3334

3435
PowerSaving = Label(ROOT, text="Apply USB Optimizations", bg="#cba4ff", font=("Times", 20, "italic"))
35-
PowerSaving_canvas = MC.create_window(Fh-95, 120, anchor='nw', window=PowerSaving)
36+
MC.create_window(Fh-95, 120, anchor='nw', window=PowerSaving)
3637
PowerSavingButton = Button(ROOT, text="Confirm", command=powerSavingForUsb, bg="#00FFFF", width=20)
37-
PowerSavingButton_canvas = MC.create_window(Fh-20, 160, anchor='nw', window=PowerSavingButton)
38+
MC.create_window(Fh-20, 160, anchor='nw', window=PowerSavingButton)
3839

3940
DisableDiagnosticServices = Label(ROOT, text="Disable Diagnostics and Telemetry Services", font=("Times", 20, "italic"), bg="#cba4ff")
40-
DisableDiagnosticServices_canvas = MC.create_window(Fh-190, 230, anchor='nw', window=DisableDiagnosticServices)
41-
DisableDiagnosticServicesButton = Button(ROOT, text="Cofirm", bg="#00FFFF", width=20, command=disableDiagnosticServices)
42-
DisableDiagnosticServicesButton_canvas = MC.create_window(Fh-20, 270, anchor='nw', window=DisableDiagnosticServicesButton)
41+
MC.create_window(Fh-190, 230, anchor='nw', window=DisableDiagnosticServices)
42+
DisableDiagnosticServicesButton = Button(ROOT, text="Cofirm", bg="#00FFFF", width=10, command=disableDiagnosticServices)
43+
revertDg = Button(ROOT, text="Revert", bg="#FF0000", width=10, command=lambda: Enable("Diagnostics Telemtry Services"))
44+
MC.create_window(Fh+50, 270, anchor='nw', window=revertDg)
45+
MC.create_window(Fh-50, 270, anchor='nw', window=DisableDiagnosticServicesButton)
4346

4447
DisableBlueTooth = Label(ROOT, text="Disable BlueTooth Services", font=("Times", 20, "italic"), bg="#cba4ff")
45-
DisableBlueTooth_canvas = MC.create_window(Fh-105, 340, anchor='nw', window=DisableBlueTooth)
46-
DisableBlueToothBtn = Button(ROOT, text="Confirm", bg="#00FFFF", width=20, command=disableBluetooth)
47-
DisableBlueToothbtn_canvas = MC.create_window(Fh-20, 380, anchor="nw", window=DisableBlueToothBtn)
48+
MC.create_window(Fh-115, 340, anchor='nw', window=DisableBlueTooth)
49+
DisableBlueToothBtn = Button(ROOT, text="Confirm", bg="#00FFFF", width=10, command=disableBluetooth)
50+
enableBt = Button(ROOT, text="Revert", bg="#FF0000", width=10, command=lambda: Enable("Bluetooth Services"))
51+
MC.create_window(Fh+50, 380, anchor='nw', window=enableBt)
52+
MC.create_window(Fh-50, 380, anchor="nw", window=DisableBlueToothBtn)
4853

4954
DisableMaps = Label(ROOT, text="Disable MS Maps", font=("Times", 20, "italic"), bg="#cba4ff")
50-
DisableMaps_canvas = MC.create_window(Sh-50 ,10, anchor='nw', window=DisableMaps)
51-
DisableMapsBtn = Button(ROOT, text="Confirm", bg="#00FFFF", width=20, command=disableMaps)
52-
DisableMapsBtn_canvas = MC.create_window(Sh-20,50, anchor='nw', window=DisableMapsBtn)
55+
MC.create_window(Sh-63 ,10, anchor='nw', window=DisableMaps)
56+
DisableMapsBtn = Button(ROOT, text="Confirm", bg="#00FFFF", width=10, command=disableMaps)
57+
enableMaps = Button(ROOT, text="Revert", bg="#FF0000", width=10, command=lambda: Enable("Download Maps Manager"))
58+
MC.create_window(Sh+50,50,anchor='nw', window=enableMaps)
59+
MC.create_window(Sh-50,50, anchor='nw', window=DisableMapsBtn)
5360

5461
xbox = Label(ROOT, text="Disable Xbox Services", font=("Times", 20, 'italic'), bg="#cba4ff")
55-
xbox_canvas = MC.create_window(Sh-75, 120, anchor='nw', window=xbox)
56-
xboxBtn = Button(ROOT, text="Confirm", bg="#00FFFF", width=20, command=disableXbox)
57-
xboxbtn_canvas = MC.create_window(Sh-20, 160, anchor='nw', window=xboxBtn)
62+
MC.create_window(Sh-90, 120, anchor='nw', window=xbox)
63+
xboxBtn = Button(ROOT, text="Confirm", bg="#00FFFF", width=10, command=disableXbox)
64+
revertXbox = Button(ROOT, text="Revert", bg="#FF0000", width=10, command=lambda: Enable("Xbox Services"))
65+
MC.create_window(Sh+50, 160, anchor='nw', window=revertXbox)
66+
MC.create_window(Sh-50, 160, anchor='nw', window=xboxBtn)
5867

5968
MsiMode = Label(ROOT, text="Open Msi Mode Utility", font=("Times", 20, 'italic'), bg="#cba4ff")
60-
MsiMode_canvas = MC.create_window(Sh-80, 230, anchor='nw', window=MsiMode)
69+
MC.create_window(Sh-80, 230, anchor='nw', window=MsiMode)
6170
MsiModebtn = Button(ROOT, text="Confrim", bg="#00FFFF", width=20, command=msiModeUtility)
62-
MsiModebtn_canvas = MC.create_window(Sh-20, 270, anchor='nw', window=MsiModebtn)
71+
MC.create_window(Sh-20, 270, anchor='nw', window=MsiModebtn)
6372

6473
nvPI = Label(ROOT, text="Open Nvidia Profile Inspector", font=("Times", 20, 'italic'), bg="#cba4ff")
65-
nvPI_canvas = MC.create_window(Sh-117, 340, anchor='nw', window=nvPI)
74+
MC.create_window(Sh-117, 340, anchor='nw', window=nvPI)
6675
nvPIBtn = Button(ROOT, text="Confirm", bg="#00FFFF", width=20, command=nvidiaPI)
67-
nvPIBtn_canvas = MC.create_window(Sh-20, 380, anchor='nw', window=nvPIBtn)
76+
MC.create_window(Sh-20, 380, anchor='nw', window=nvPIBtn)
77+
78+
DisableWinDef = Label(ROOT, text="Disable Windows Defender", font=("Times", 20, 'italic'), bg="#cba4ff")
79+
MC.create_window(800-113, 440, anchor='nw', window=DisableWinDef)
80+
DisableWinDefbtn = Button(ROOT, text="Confirm", bg="#00FFFF", width=10, command=disableWinDef)
81+
enableWinDef = Button(ROOT, text="Revert", bg="#FF0000", width=10, command=lambda: Enable("Windows Defender"))
82+
MC.create_window(800+50, 480, anchor='nw', window=enableWinDef)
83+
MC.create_window(800-50, 480, anchor='nw', window=DisableWinDefbtn)
6884

6985
restart = Button(ROOT,text="Restart Computer", bg="#b187f4", command=restart, width=80, height=1,font=("Times", 20, 'italic'))
7086
restart_canvas = MC.create_window(0+200, 765, anchor='nw', window=restart)
71-
guideButton = Button(ROOT, text="Guide", bg="#ffa781", command=lambda: Guide(ROOT), width=80, height=1, font=("Times", 20, "italic"))
87+
guideButton = Button(ROOT, text="Guide", bg="#ffa781", command=lambda: Guide(ROOT), width=80, height=1,font=("Times", 20, 'italic'))
7288
guideButton_canvas = MC.create_window(0+200, 830, anchor='nw', window=guideButton)
7389

74-
7590
ROOT.mainloop()

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# DarK
22

3+
## Small Python Project
4+
Lines changed: 2 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,23 @@
1-
Windows Registry Editor Version 5.00 youtube.com/AdamxYT
1+
Windows Registry Editor Version 5.00 youtube.com/AdamxYT
22

33

44
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DiagTrack]
55
"Start"=dword:00000004
66

7-
87
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\dmwappushservice]
98
"Start"=dword:00000004
109

11-
1210
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\diagsvc]
1311
"Start"=dword:00000004
1412

15-
1613
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DPS]
1714
"Start"=dword:00000004
1815

19-
2016
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\diagnosticshub.standardcollector.service]
2117
"Start"=dword:00000004
2218

23-
2419
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WdiServiceHost]
2520
"Start"=dword:00000004
2621

27-
2822
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WdiSystemHost]
29-
"Start"=dword:00000004
30-
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDefend]
31-
"Start"=dword:00000004
32-
33-
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SecurityHealthService]
34-
"Start"=dword:00000004
35-
36-
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WdNisSvc]
37-
"Start"=dword:00000004
38-
39-
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Sense]
40-
"Start"=dword:00000004
41-
42-
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wscsvc]
43-
"Start"=dword:00000004
44-
45-
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender]
46-
"DisableAntiSpyware"=dword:00000001
47-
"DisableRoutinelyTakingAction"=dword:00000001
48-
"ServiceKeepAlive"=dword:00000000
49-
50-
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection]
51-
"DisableBehaviorMonitoring"=dword:00000001
52-
"DisableIOAVProtection"=dword:00000001
53-
"DisableOnAccessProtection"=dword:00000001
54-
"DisableRealtimeMonitoring"=dword:00000001
55-
56-
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Reporting]
57-
"DisableEnhancedNotifications"=dword:00000001
58-
59-
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Notifications]
60-
"DisableNotifications"=dword:00000001
61-
62-
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications]
63-
"NoToastApplicationNotification"=dword:00000001
64-
"NoToastApplicationNotificationOnLockScreen"=dword:00000001
23+
"Start"=dword:00000004

Reg/Disable Windows Defender.reg

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
Windows Registry Editor Version 5.00 youtube.com/AdamxYT
2+
3+
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDefend]
4+
"Start"=dword:00000004
5+
6+
7+
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SecurityHealthService]
8+
"Start"=dword:00000004
9+
10+
11+
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WdNisSvc]
12+
"Start"=dword:00000004
13+
14+
15+
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Sense]
16+
"Start"=dword:00000004
17+
18+
19+
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wscsvc]
20+
"Start"=dword:00000004
21+
22+
;Credits To https://yjsky.cn/index.php/content/142.html
23+
;Credits To https://sites.google.com/view/melodystweaks/basictweaks?authuser=0#h.7g93yhn8tk0u
24+
;Credits To http://eddiejackson.net/lab/2020/02/05/windows-10-disable-windows-firewall-notification/
25+
26+
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender]
27+
"DisableAntiSpyware"=dword:00000001
28+
"DisableRoutinelyTakingAction"=dword:00000001
29+
"ServiceKeepAlive"=dword:00000000
30+
31+
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection]
32+
"DisableBehaviorMonitoring"=dword:00000001
33+
"DisableIOAVProtection"=dword:00000001
34+
"DisableOnAccessProtection"=dword:00000001
35+
"DisableRealtimeMonitoring"=dword:00000001
36+
37+
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Reporting]
38+
"DisableEnhancedNotifications"=dword:00000001
39+
40+
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Notifications]
41+
"DisableNotifications"=dword:00000001
42+
43+
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications]
44+
"NoToastApplicationNotification"=dword:00000001
45+
"NoToastApplicationNotificationOnLockScreen"=dword:00000001
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Windows Registry Editor Version 5.00 youtube.com/AdamxYT
2+
3+
4+
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\BTAGService]
5+
"Start"=dword:00000002
6+
7+
8+
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\bthserv]
9+
"Start"=dword:00000002
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Windows Registry Editor Version 5.00 youtube.com/AdamxYT
2+
3+
4+
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DiagTrack]
5+
"Start"=dword:00000002
6+
7+
8+
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\dmwappushservice]
9+
"Start"=dword:00000003
10+
11+
12+
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\diagsvc]
13+
"Start"=dword:00000003
14+
15+
16+
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DPS]
17+
"Start"=dword:00000002
18+
19+
20+
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\diagnosticshub.standardcollector.service]
21+
"Start"=dword:00000003
22+
23+
24+
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WdiServiceHost]
25+
"Start"=dword:00000003
26+
27+
28+
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WdiSystemHost]
29+
"Start"=dword:00000003
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Windows Registry Editor Version 5.00 youtube.com/AdamxYT
2+
3+
4+
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MapsBroker]
5+
"Start"=dword:00000002
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
Windows Registry Editor Version 5.00 youtube.com/AdamxYT
2+
3+
4+
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinDefend]
5+
"Start"=dword:00000002
6+
7+
8+
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SecurityHealthService]
9+
"Start"=dword:00000003
10+
11+
12+
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WdNisSvc]
13+
"Start"=dword:00000003
14+
15+
16+
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Sense]
17+
"Start"=dword:00000003
18+
19+
20+
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wscsvc]
21+
"Start"=dword:00000002
22+
23+
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender]
24+
"DisableAntiSpyware"=-
25+
"DisableRoutinelyTakingAction"=-
26+
"ServiceKeepAlive"=-
27+
28+
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection]
29+
"DisableBehaviorMonitoring"=-
30+
"DisableIOAVProtection"=-
31+
"DisableOnAccessProtection"=-
32+
"DisableRealtimeMonitoring"=-
33+
34+
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Reporting]
35+
"DisableEnhancedNotifications"=-
36+
37+
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Notifications]
38+
"DisableNotifications"=-
39+
40+
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\CurrentVersion\PushNotifications]
41+
"NoToastApplicationNotification"=-
42+
"NoToastApplicationNotificationOnLockScreen"=-
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Windows Registry Editor Version 5.00 youtube.com/AdamxYT
2+
3+
;Registry File By Adamx
4+
;Enable Xbox Live Networking Service
5+
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\XboxNetApiSvc]
6+
"Start"=dword:00000003
7+
8+
;Enable Xbox Live Game Save
9+
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\XblGameSave]
10+
"Start"=dword:00000003
11+
12+
;Enable Xbox Accessory Management Service
13+
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\XboxGipSvc]
14+
"Start"=dword:00000003
15+
16+
;Enable Xbox Live Auth Manager
17+
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\XblAuthManager]
18+
"Start"=dword:00000003
19+

buttons.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import ctypes, sys
55

66
drc = os.getcwd() + "\Reg"
7+
drc2 = drc + "\Revert"
78

89
def cpuButton():
910
directory = drc + "\CPU Optimizations.reg"
@@ -41,5 +42,14 @@ def nvidiaPI():
4142
def restart():
4243
os.system("shutdown /r")
4344

45+
def disableWinDef():
46+
dirc = drc + "\Disable Windows Defender.reg"
47+
os.system('"' + dirc + '"')
48+
49+
def Enable(req):
50+
dirc = drc2 + "\Enable " + req + ".reg"
51+
print(dirc)
52+
os.system('"' + dirc + '"')
53+
4454
def Guide(master):
4555
os.system("start https://chinmay-varier.github.io/DarK-App-Guide/")

0 commit comments

Comments
 (0)