< Back

Test-Password

Sun Jan 19, 2020 5:54 pm

NAME Test-Password



SYNOPSIS

Test a password strength, query HIBP DB (https://haveibeenpwned.com/) and print the hashcat benchmarks for various

algorithms. System: 8xGTX8x1080Ti - Sagitta Brutalis 1080 Ti (SKU N4X48-GTX1080TI-2620-128-2X500).





SYNTAX

Test-Password [[-pass] <String>] [[-algorithm] <String>] [-UserAgent <String>] [-HIBP] [-noCrackStats]

[-HIBPListBreaches] [-HIBPPastes] [-GTX8x1080Ti] [-RTX1x2080S] [-Online] [-Path <Object>] [<CommonParameters>]





DESCRIPTION

Test a password strength, query HIBP DB (https://haveibeenpwned.com/) and print the hashcat benchmarks for various

algorithms. System: 8xGTX8x1080Ti - Sagitta Brutalis 1080 Ti (SKU N4X48-GTX1080TI-2620-128-2X500).





PARAMETERS

-pass <String>



Required? false

Position? 1

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-algorithm <String>



Required? false

Position? 2

Default value SHA1

Accept pipeline input? false

Accept wildcard characters? false



-UserAgent <String>

Default UA for PWS 5.1: Mozilla/5.0 (Windows NT; Windows NT 10.0; en-US) WindowsPowerShell/5.1.18362.145

Default UA for PWS 6: Mozilla/5.0 (Windows NT 10.0; Microsoft Windows 10.0.18362; en-US) PowerShell/6.2.0

Alternative UA: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko)

Chrome/76.0.3809.100 Safari/537.36



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-HIBP [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-noCrackStats [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-HIBPListBreaches [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-HIBPPastes [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-GTX8x1080Ti [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-RTX1x2080S [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Online [<SwitchParameter>]



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Path <Object>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Test-Password qwerty | sort SecToCrack | ft -a



Test the password strength and print the hashcat benchmarks.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Test-Password qwerty -HIBP | sort SecToCrack | ft -a



Test the password strength, query HIBP DB (https://haveibeenpwned.com/) and print the benchmarks.









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Test-Password qwerty -HIBP | ? hashtype -match PBKDF2 | sort SecToCrack | ft -a



Test the password, query HIBP and get the benchmarks for bcrypt algorithm.









-------------------------- EXAMPLE 4 --------------------------



PS C:\\>gc passlist.txt | ?{$_} | tpass -HIBP | ? hashtype -match pbkdf2 | sort sectocrack,pass | ft -a



Test the list of passwords.









-------------------------- EXAMPLE 5 --------------------------



PS C:\\>$passList | ?{$_} | tpass -HIBP | ? hashtype -match pbkdf2 | sort sectocrack,pass | ft -a



Test the list of passwords.









-------------------------- EXAMPLE 6 --------------------------



PS C:\\>Test-Password -HIBPListBreaches | sort BreachDate -desc | ft -a | select -first 10



Get list of recent breaches from HIBP.











RELATED LINKS