Hashcat How to Set Mask to Run Excle Password Crack

posted on · Author:Code Emperor - Xiao Mi Bao Online Decryption

How to crack a password like

***45990405******2017   using Hashcat?  * is all numbers.

To crack a password like  ***45990405******2017 , assume  *  represents an unknown number, and the password is all numbers. You can use Hashcat's mask attack. Here are the specific steps:

1. Determine the password structure

The password structure is:

  • The first 3 digits are unknown numbers (***)

  • The middle part is known  45990405

  • The last 6 digits are unknown numbers (******)

  • The last 4 digits are known  2017

Therefore, the total length of the password is 3 + 8 + 6 + 4 = 21 digits.

2. Mask attacks using

Hashcat Mask attacks can crack passwords by specifying known and unknown parts. Assuming the known part is fixed and the unknown part is  ? d  represents a number.

The mask format is:

text

? d? d? d45990405? d? d? d? d? d? d2017

3. Run hashcat

Assuming you have the hash file  hashes.txt ready, you can use the following command:

bash

hashcat -m <hash_type> -a 3 hashes.txt ? d? d? d45990405? d? d? d? d? d? d2017

where:

  • -m <hash_type>: Specify the hash type, for example, MD5 is  0, SHA1 is  100, and replace it according to the actual situation.

  • -A 3: Specify the mask attack mode.

  • hashes.txt: The file containing the target hash.

  • ? d? d? d45990405? d? d? d? d? d? d2017: Mask mode.

4. Optimization attack

If the password is long, it may take longer to crack. This can be optimized by:

  • GPU acceleration: Ensure that Hashcat runs on the GPU.

  • Dictionary attack: If there is a dictionary with partial passwords, you can combine it with a dictionary attack.

  • Distributed cracking: Cracking using multiple machines in parallel.

5. Example command

Assuming the hash type is MD5, the command is as follows:

bash

 hashcat   -m   0   -a   3   hashes.txt  ? d? d? d45990405? d? d? d? d? d? d2017

Summary

Through masking attacks, Hashcat can efficiently crack this partially known digital password. Make sure to select the appropriate hash type and hardware resources to speed up cracking.

Previous: How do I unlock my Excel password? We'll help you find it!
Next: Judging SHA256 hash value characteristics
  • Focus on Word, Excel, PPT, PDF, RAR, ZIP, 7Z, Compressed File, Office Encrypted File Unlock Decryption
  • We provide users with high-quality file compression password recovery, PDF unlocking, and Word password recovery services.