How to set Hashcat mask to run Exclusive password cracking

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 can I unlock Excel if I forget my password?
Next: Determine the characteristics of SHA-256 hash values
  • 专注Word,Excel,ppt,pdf,rar,zip,7z,压缩包,office加密文件解锁解密
  • 我们为用户提供优质的文件压缩包密码恢复,PDF解锁 Word密码找回