sexta-feira, 28 de novembro de 2014

Sistema Operativo - Password em BAT de forma encriptada!!

powershell -Command $pword = read-host "Password" -AsSecureString ; $BSTR=[System.Runtime.InteropServices.Marshal]::SecureStringToBSTR($pword) ; [System.Runtime.InteropServices.Marshal]::PtrToStringAuto($BSTR) > .tmp.txt & set /p password=<.tmp.txt & del .tmp.txt


by Johnny Pina

Sem comentários:

Enviar um comentário