Go to HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Run and Create a String Value with the exact command in quotes and absoulute path.
HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\Windows\CurrentVersion\Run
Use Exploit s4u_persistence on an active session in metasploiit.
s4u_persistence
Last updated 2 years ago