Hello all,
Hopefully this is an easy one for someone to assist me with. I am on the “Cracking Miscellaneous Files & Hashes” section of the Cracking Passwords with Hashcat module and am tasked with cracking the password for the password protected 7z file. The hint says to use 7z2john from /opt. I have tried to figure out the syntax for that tool, but there is nothing online, nor any help info for that file. Can someone provide me a hint on the syntax to extract the hash of a 7z file using 7z2john?
Thank you so much for the detailed response. Your instructions were spot on, however I did have to do a couple of extra things for them to work:
At the step where you use 7z2john to extract the hash and output to zipfile.johnhash
++ I received an error “Can’t locate Compress/Raw/Lzma.pm in @INC…”
++I had to run the command “sudo cpan IO::Compress::Lzma” and approve the prompt to auto configure
Because I am using the Pwnbox from the HTB Academy I used the Pwnbox path to rockyou.txt
++ /opt/useful/SecLists/Passwords/Leaked-Databases/rockyou.txt
++I also had to run the hashcat command for cracking the hash with sudo because Pwnbox likes to clamp down on permissions.
For those struggling with the Cracking Common Hashes section question * Crack the following hash: 7106812752615cdfe427e01b98cd4083*
The hint says to use hashid to identify the hash. That’s misleading because it says it’s an MD5 hash first, and other resources also identify it as an MD5 hash. It’s actually NTLM.
Hi. Don’t know if you’re still stuck on this, but try other rules. The hint of the exercise talks about Hashcat built-in rule sets. Try a few of them. Worked for me.
I have a problem with this section. i made step by step your checklist but when i used "
hashcat -m 11600 zipfile.hash /usr/share/wordlist/rockyou.txt". my kali linux pc show me the following error:
Hashfile ‘zipfile.johnhash’ on line 1 (hashca…c3063744d081db1492ea1cdef7a9b983): Signature unmatched
No hashes loaded.
Started: Tue Jan 7 08:28:44 2025
Stopped: Tue Jan 7 08:28:44 2025
The data format in the file zipfile.johnhash is not accepted by the hashcat program.
You need to use the zipfile.hash file as input to the hashcat program.
You previously created the zipfile.hash file by cutting the filename part out of the zipfile.johnhash file.
The command in your post is correct. However, the hashcat error message in your post indicates that you used the wrong file name in your terminal.
i used the following sentence:
1.- 7z2john hashcat.7z > text.hash
2.- I checked the hash → cat text.hash
3.- hashcat -m 11600 text.hash /usr/share/wordlists/rockyou.txt
results:
"
Hashfile ‘text.hash’ on line 1 (hashca…c3063744d081db1492ea1cdef7a9b983): Signature unmatched
No hashes loaded.
"
the same error
The output of the tool 7z2john is prepared for the password cracker John the Ripper. The format is not correct for the hashcat. The output starts with the filename. This part disturbs hashcat. You need to remove the part before the colon :. For example, cut only the second part of the file.
cut -d: -f2 text.hash > text_hashcat_format.hash
Now the hash in the file text_hashcat_format.hash has the correct format for hashcat.