hashcat Forum
How to set multiple tasks in a hashcat? - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Support (https://hashcat.net/forum/forum-3.html)
+--- Forum: hashcat (https://hashcat.net/forum/forum-45.html)
+--- Thread: How to set multiple tasks in a hashcat? (/thread-11043.html)



How to set multiple tasks in a hashcat? - disgust1n - 10-05-2022

For example. i need to crack x1 md5 hash, and i have x7 files with rules, i cant combinate them in one file, so i need to:
1) hashcat -m 0 -a 0 hash.txt passwords.txt -r rules/d3ad0ne.rule
2) hashcat -m 0 -a 0 hash.txt passwords.txt -r rules/2.rule
3) hashcat -m 0 -a 0 hash.txt passwords.txt -r rules/3.rule
4) hashcat -m 0 -a 0 hash.txt passwords.txt -r rules/4.rule
5) hashcat -m 0 -a 0 hash.txt passwords.txt -r rules/5.rule
6) hashcat -m 0 -a 0 hash.txt passwords.txt -r rules/6.rule
7) hashcat -m 0 -a 0 hash.txt passwords.txt -r rules/7.rule

In order not to check if the process has reached the end, and enter commands manually, can I switch to automatic mode?
Thanks for the answer guys!


RE: How to set multiple tasks in a hashcat? - slyexe - 10-06-2022

If you're using windows, create a .txt file which will include all the stated attacks above. Rename .txt to .bat then doubleclick the .bat to run all attacks.

Code:
Filename : Attack with 8 rules.bat
hashcat -m 0 -a 0 hash.txt passwords.txt -r rules/d3ad0ne.rule
hashcat -m 0 -a 0 hash.txt passwords.txt -r rules/2.rule
hashcat -m 0 -a 0 hash.txt passwords.txt -r rules/3.rule
hashcat -m 0 -a 0 hash.txt passwords.txt -r rules/4.rule
hashcat -m 0 -a 0 hash.txt passwords.txt -r rules/5.rule
hashcat -m 0 -a 0 hash.txt passwords.txt -r rules/6.rule
hashcat -m 0 -a 0 hash.txt passwords.txt -r rules/7.rule
pause

If the password is found within ANY of the previous attacks it will be added to the potfile and then skipped the remainder of the attacks to not warrant wasting time/resources. If it wasn't found you will have all the details within your cmd window showing time spent on the attacks.