Run All Rules for Hashcat

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)
Set-Location -Path ‘C:\Program Files\hashcat\’
Get-ChildItem .\rules\ …

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)

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.


Print Share Comment Cite Upload Translate
APA
() » Run All Rules for Hashcat. Retrieved from https://www.truth.cx/2020/02/20/run-all-rules-for-hashcat/.
MLA
" » Run All Rules for Hashcat." - , https://www.truth.cx/2020/02/20/run-all-rules-for-hashcat/
HARVARD
» Run All Rules for Hashcat., viewed ,
VANCOUVER
- » Run All Rules for Hashcat. [Internet]. [Accessed ]. Available from: https://www.truth.cx/2020/02/20/run-all-rules-for-hashcat/
CHICAGO
" » Run All Rules for Hashcat." - Accessed . https://www.truth.cx/2020/02/20/run-all-rules-for-hashcat/
IEEE
" » Run All Rules for Hashcat." [Online]. Available: https://www.truth.cx/2020/02/20/run-all-rules-for-hashcat/. [Accessed: ]
Select a language: