Using Charset inside Mask
#1
Hello im trying ot use my own charset inside a mask.

Iv set the charset in the command line and also set it in the mask.

Mask:

[?1]partialpass?1
[?1]partialpass?1?1
[?1]partialpass?1?1?1


Charset:

Luisdie


But when i run the hashcat it keeps giving met the error : custom-charset 1 is undifined.

Command line : hashcat.exe -w 4 -a 3 -m 11300 xx.txt -1 charsets\standard\English\xx1.hcchr masks\x1.hcmask --hwmon-temp-abort=90
Reply
#2
Anyone able to help with this please ?
Reply
#3
just a quick answer, use only the maskfile like this, charset has to be given inside the maskfile not on commandline as noted here

https://hashcat.net/wiki/doku.php?id=mask_attack (see notes) -> It is not allowed for a [mask] to contain ?1,?2,?3 or ?4 references without those being set via [?1], [?2], [?3], [?4]. This will result in an error message. If you want to use a custom charset for your masks you must define it within the same line of the hcmask file by using the [?1], [?2], [?3], [?4] fields.

mask.txt
Luisdie,partialpass?1

Code:
hashcat -a 3 --stdout test/mask.txt

Code:
partialpasse
partialpasss
partialpassi
partialpassu
partialpassd
partialpassL

as you can see, the second i is skipped by hahscat

maybe this will help to understand
mask.txt
TES,012,partialpass?1?2

results in 3*3 pw (3 chars 'TES' combined with 3 digits '012')

Code:
partialpassT1
partialpassS1
partialpassE1
partialpassT2
partialpassS2
partialpassE2
partialpassT0
partialpassS0
partialpassE0
Reply
#4
(01-14-2021, 03:05 PM)Snoopy Wrote: just a quick answer, use only the maskfile like this, charset has to be given inside the maskfile not on commandline as noted here

https://hashcat.net/wiki/doku.php?id=mask_attack (see notes) -> It is not allowed for a [mask] to contain ?1,?2,?3 or ?4 references without those being set via [?1], [?2], [?3], [?4]. This will result in an error message. If you want to use a custom charset for your masks you must define it within the same line of the hcmask file by using the [?1], [?2], [?3], [?4] fields.

mask.txt
Luisdie,partialpass?1

Code:
hashcat -a 3 --stdout test/mask.txt

Code:
partialpasse
partialpasss
partialpassi
partialpassu
partialpassd
partialpassL

as you can see, the second i is skipped by hahscat

maybe this will help to understand
mask.txt
TES,012,partialpass?1?2

results in 3*3 pw (3 chars 'TES' combined with 3 digits '012')

Code:
partialpassT1
partialpassS1
partialpassE1
partialpassT2
partialpassS2
partialpassE2
partialpassT0
partialpassS0
partialpassE0

Yes thanks a lot this works. So just specify each line of the mask with the charset.

masklettersandsumbols,?1?1partialpass

Just one more question, im trying to also add a space into the charset using «space» but this doesnt seem to work. How to specify a space ?
Reply
#5
just add the space as "text", for better visibility inserted after TES

Code:
TES ,012,partialpass?1?2

partialpassT1
partialpassS1
partialpassE1
partialpass 0
partialpassT2
partialpassS2
partialpassE2
partialpass 1
partialpassT0
partialpassS0
partialpassE0
partialpass 2
Reply