← Learn
Dangerous
$cred = New-Object System.Management.Automation.PSCredential('svc_deploy', (ConvertTo-SecureString 'S3cr3t!' -AsPlainText -Force))

windows · powershell · Advanced

The SecureString wrapper looks protective, but the password is a literal in the script text: it lives in source control, in the console…

The full explanation and danger signals for this pack are part of Pro.

Think you can spot these under time pressure?

Start Training

More Credential Access