ps
dpapi::ps
decrypts PowerShell credentials (PSCredentials or SecureString). It has the following command line arguments:
/in
: the PowerShell credentials.xml
file/password
: the password to use to decrypt the PSCredentials/masterkey
: the masterkey to use for decryption. It can be obtained throughsekurlsa::dpapi
./unprotect
: displays the decryption results on screen
In the example above, the .xml
PSCredential file for decryption was previously created by the same user, hence the absence of the /password
or /masterkey
argument, which would be needed when attempting to decrypt .xml
PSCredentials of a different user.
Last updated