PowerShell Credentials
MITRE ATT&CK™ Unsecured Credentials - Technique T1552
Theory
Practice
PowerShell Command History
# Check for ConsoleHost_history.txt location
(Get-PSReadlineOption).HistorySavePath
# Print ConsoleHost_history.txt (default location)
type $env:APPDATA\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt
type C:\Users\<USERNAME>\AppData\Roaming\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txtGet-HistoryPowerShell Transcription
PowerShell Script Block Logging
PowerShell PSCredentials and SecureString
Resources
Last updated