Contents

Run All Rules for Hashcat

Contents

This is just a quick script to demonstrate using PowerShell to run all the rules against a specific hash (or hash file), starting from the smallest file (usually the simplest rules)

1
2
3
4
5
6
Set-Location -Path 'C:\Program Files\hashcat\'
Get-ChildItem .\rules\ | where { $_.extension -eq ".rule" } |
Sort-Object -Property Length | 
% { 
	.\hashcat64.exe -m1000 20F91778B033F841702E014D3B79148C .\rockyou.txt --loopback --rules $_.FullName
}

I’m sure there is a better way to do this. If you know of one please hit me up on Twitter, or other social media. DMs are open.