r/PowerShell • u/PinkDraconian • Nov 24 '20
When hackers gain powershell access to a machine, they will check the powershell history. Here's a practical example:
https://youtu.be/CndMDvjX8dg?t=1631
232
Upvotes
r/PowerShell • u/PinkDraconian • Nov 24 '20
1
u/MyOtherSide1984 Nov 25 '20
It's not I don't think. It's converted to plain text as it types it. Here's what I have. Let me know if this is different than expected. Ultimately, the console and script never sees my password, you'd have to interrupt the script and get it to type it elsewhere or copy/paste it in the split second window when the password is there, I think
$User = "username" $File = "C:\temp\Selenium\scriptsencrypted_password1_cox.txt" $MyCredential=New-Object -TypeName System.Management.Automation.PSCredential ` -ArgumentList $User, (Get-Content $File | ConvertTo-SecureString)
Sorry, on mobile