ITGL72

What's your password? - Powershell

Apr 19th, 2017
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $response = Read-host "What's your password?" -AsSecureString
  2. $password = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($response))
Add Comment
Please, Sign In to add comment