Custom chat set
#1
Hi guys,
Im having trouble using custom char set i wont to use "KSTzpB%qJZe402c38d9bE65Wj$CMm@&G7NIgrwLvfF^PRnxtHiVhQl3X" that chars and I wont it to be seven keys long password. I tried -l KSTzpB%qJZe402c38d9bE65Wj$CMm@&G7NIgrwLvfF^PRnxtHiVhQl3X but Im getting an error

Code:
../hashcat2/./hashcat2 -m 500 -a 3 -o krekovan -O -w 3 hash.txt -l "KSTzpB%qJZe402c38d9bE65Wj$CMm@&G7NIgrwLvfF^PRnxtHiVhQl3X" ?a?a?a?a?a?a?a

The specified parameter cannot use 'KSTzpB%qJZe402c38d9bE65Wj@&G7NIgrwLvfF^PRnxtHiVhQl3X' as a value - must be a number.

Yes I readed wiki https://hashcat.net/wiki/doku.php?id=mask_attack and this theard https://hashcat.net/forum/thread-5935.html and many more but could not find soulution.
Also should I use ?a?a?a?a?a?a?a or ?l?l?l?l?l?l?l to define that I want password to be 7 character long using custom charset

Edit: I tied putting my char set in to file /charsets/my.charset and use it like so -1 charsets/my.charset but hashcat does not use it it use lower case letters if I put ?l and special chars when I put ?a how can I force hashcat to use my charset length of 7 chars from list
Reply
#2
Code:
hashcat -m 500 -a 3 -w 3 -O --custom-charset2 my.hcchr -o krekovan hash.txt ?2?2?2?2?2?2?2


the file my.hcchr only consists of one line (no BOM ! see https://en.wikipedia.org/wiki/Byte_order_mark):
Code:
KSTzpB%qJZe402c38d9bE65Wj$CMm@&G7NIgrwLvfF^PRnxtHiVhQlX

Note: you character set had "3" listed twice, I removed one "3" because duplicates are not needed
Reply
#3
Great @philsmd one question thou should I use charset/my.charset instead of just my.hcchr ?
Reply
#4
The file extension doesn't actually matter, but I agree it's good to stick to some convention/standard.

It would probably make sense to rename our .charset files into .hcchr files, because of the "standard" mentioned also here:
https://hashcat.net/wiki/doku.php?id=mas...rset_files
Reply
#5
Ok great thank you @philsmd
Reply