-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathStartAllBack-License-Bypass-source.py
46 lines (44 loc) · 2.11 KB
/
StartAllBack-License-Bypass-source.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
import winreg
import random
import time
import ctypes
import sys
def modify_registry_key():
try:
# Open the registry key
reg_path = r'Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID'
with winreg.OpenKey(winreg.HKEY_CURRENT_USER, reg_path, 0, winreg.KEY_ALL_ACCESS) as clsid_key:
# Iterate through all keys in CLSID
index = 0
while True:
try:
key_name = winreg.EnumKey(clsid_key, index)
# Open the key to check for subkeys
with winreg.OpenKey(clsid_key, key_name, 0, winreg.KEY_ALL_ACCESS) as sub_key:
# Check the number of subkeys
num_subkeys = winreg.QueryInfoKey(sub_key)[0]
# If the key has no subkeys, modify the date
if num_subkeys == 0:
# Modify the last modification date
winreg.SetValueEx(sub_key, "StartAllBack-License-Bypass", 0, winreg.REG_DWORD, int(time.time()))
print(f"\n\n\tKey '{key_name}' updated.")
input('\tSuccessful bypass of StartAllBack licences :D\n\n\tPress Enter to exit...')
break # Exit after the first key found
index += 1
except WindowsError:
# Exit the loop if there are no more keys to enumerate
input('Exiting the loop, if there are no more keys to enumerate')
break
except Exception as e:
print(f"An error occurred: {e}")
# Check for administrator privileges
if not ctypes.windll.shell32.IsUserAnAdmin():
# Run the program with administrator privileges
try:
ctypes.windll.shell32.ShellExecuteW(None, "runas", sys.executable, " ".join(sys.argv), None, 1)
except:
print("COUT: Administrator privileges are required to perform this operation.")
print('This console will close after 30 seconds.')
time.sleep(30)
else:
modify_registry_key()