To use Hashcat, follow these basic steps:
Install Hashcat: Ensure Hashcat is installed on your system. You can do this using:
sudo apt install hashcatPrepare Your Hashes: Create a text file containing the hashes you want to crack. Each hash should be on a new line. For example, create a file named
hashes.txt.Choose a Hash Type: Identify the type of hash you are working with (e.g., MD5, SHA1). Hashcat requires you to specify the hash type using a mode number. You can find the mode numbers in the Hashcat documentation.
Run Hashcat: Use the following command structure to start cracking:
hashcat -m [mode] -a [attack_mode] [hash_file] [wordlist][mode]: Replace with the mode number for your hash type.[attack_mode]: Choose an attack mode (e.g.,0for straight,1for combination).[hash_file]: The path to your file containing hashes (e.g.,hashes.txt).[wordlist]: A file containing potential passwords (e.g.,rockyou.txt).
Example command:
hashcat -m 0 -a 0 hashes.txt rockyou.txtMonitor Progress: Hashcat will display its progress in the terminal, showing how many hashes have been cracked.
View Results: Once completed, cracked passwords will be saved in a file named
hashcat.potfileby default.
For more advanced usage and options, refer to the Hashcat documentation. If you have specific scenarios or questions, feel free to ask!
