Page cover
githubEdit

square-terminalPowerShell Tricks

chevron-rightElevated & Unrestricted Script Executionhashtag
Bypass security policies and user profiles to execute a script
Start-Process powershell.exe -Verb RunAs -ArgumentList "-NoProfile -ExecutionPolicy Bypass -File C:\\file.ps1"
chevron-rightObfuscation & Evasionhashtag
Use base64
powershell.exe -enc <Base64EncodedString>
chevron-rightLateral Movementhashtag
Uses WinRM for remote execution
Invoke-Command -ComputerName TARGET01 -ScriptBlock { whoami }

Last updated