-
Notifications
You must be signed in to change notification settings - Fork 0
/
uwu.py
55 lines (43 loc) · 1.53 KB
/
uwu.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
import winreg
import ctypes
def reboot_pc():
restart = input("uwu successfully removed watermark! restart (y/n)")
restart = restart.lower()
if restart=="n":
exit()
elif restart=="y":
os.system("shutdown /r /t 1")
else:
reboot_pc()
def remove_watermark():
with winreg.ConnectRegistry(None,winreg.HKEY_CURRENT_USER) as hkey:
try:
with winreg.OpenKey(hkey,r"Control Panel\Desktop",0,winreg.KEY_ALL_ACCESS) as sub_key:
try:
winreg.SetValueEx(sub_key, "PaintDesktopVersion", 0, winreg.REG_DWORD, 0)
reboot_pc()
except OSError:
try:
winreg.CreateKey(hkey,r"Control Panel\Desktop")
remove_watermark()
except:
print("Failed to make key :(")
except:
print("owo Failed to get admin rights. pls restart with admin rights ;_;")
print("""\
___ _ .--. .--. ___ _
.' | | || |_ | |.' | | |
| .' | || _( )_ | || .' | |
.' '_ | ||(_ o _) | |.' '_ | |
' ( \.-.|| (_,_) \ | |' ( \.-.|
' (`. _` /|| |/ \| |' (`. _` /|
| (_ (_) _)| ' /\ ` || (_ (_) _)
\ / . \ /| / \ | \ / . \ /
``-'`-'' `---' `---` ``-'`-''
""")
x = input("press 1 to start uwu")
if x==1:
remove_watermark()
else:
print("uwu bye!")
exit()