Brute Force only Certain Characters
#1
Hi All

I know that you can do a brute force via all characters:

hashcat -m <Code> -a 3 -1 -?l?u?d?s -3 ?d hashes.txt --potfile-disable ?1?1?1?1?1?1?1?1

However how can I only include certain characters in the search:

An Example:

ABCDEFabcdef12345!"£$%.

Kind Regards
Reply
#2
(02-10-2021, 07:02 PM)UKLondon2025 Wrote: Hi All

I know that you can do a brute force via all characters:

hashcat -m <Code> -a 3 -1 -?l?u?d?s -3 ?d hashes.txt --potfile-disable ?1?1?1?1?1?1?1?1

However how can I only include certain characters in the search:

An Example:

ABCDEFabcdef12345!"£$%.

Kind Regards
you've already solved your own question by using custom character sets. Just choose between -1 -2 -3 and implement whatever character set you want. 
Code:
hashcat -m <Code> -a 3 -1 ABCDEFabcdef12345!"@%&*% -2 Xx0o -3 ?H?s hashes.txt --potfile-disable ?1?1?2?2?3?3?1?1?2?3?
Reply
#3
Hi,

When I try and run the command on Windows I receive the following message:

If you specify a custom charset, you must specify a mask.

What could be the cause of this, is it because I have a special character in the section !"£$%.

If yes how would I overcome this?

Kind Regards

(02-10-2021, 11:22 PM)slyexe Wrote:
(02-10-2021, 07:02 PM)UKLondon2025 Wrote: Hi All

I know that you can do a brute force via all characters:

hashcat -m <Code> -a 3 -1 -?l?u?d?s -3 ?d hashes.txt --potfile-disable ?1?1?1?1?1?1?1?1

However how can I only include certain characters in the search:

An Example:

ABCDEFabcdef12345!"£$%.

Kind Regards
you've already solved your own question by using custom character sets. Just choose between -1 -2 -3 and implement whatever character set you want. 
Code:
hashcat -m <Code> -a 3 -1 ABCDEFabcdef12345!"@%&*% -2 Xx0o -3 ?H?s hashes.txt --potfile-disable ?1?1?2?2?3?3?1?1?2?3?
Reply
#4
show us the command you are using. Otherwise, guessing at what you're telling us could result in improper diagnostics.
Reply