Prepend character set to list
#1
How can i use the following charater sets to prepend each possible charater in set to my word list?
  • ?l = abcdefghijklmnopqrstuvwxyz
  • ?u = ABCDEFGHIJKLMNOPQRSTUVWXYZ
  • ?d = 0123456789
  • ?h = 0123456789abcdef
  • ?H = 0123456789ABCDEF
  • ?s = «space»!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
  • ?a = ?l?u?d?s
  • ?b = 0x00 - 0xff

for example
Code:
hashcat -a 3 wordlist.txt ?^d --stdout > newwordlist.txt

gives ERROR "unsupported file type"
Reply
#2
hashcat -a 3 wordlist.txt ?a --stdout > newwordlist.txt

?a = ?l?u?d?s
Reply
#3
(03-05-2023, 12:42 PM)marc1n Wrote: hashcat -a 3 wordlist.txt ?a --stdout > newwordlist.txt

?a = ?l?u?d?s

Thanks champ, but are you sure???
Because this doesnt work on windows or k@li?
i get error
Quote:?a unsupported file type

But even if it did, i think it would append (add to end) not 'prepend', thats why i was messing with the ?^d
Reply
#4
To prepend you should use the -a7 attack, which is a hybrid attack using a mask and a wordlist:

hashcat -a7 ?a wordlist.txt --stdout

See also https://hashcat.net/wiki/doku.php?id=hybrid_attack

If the masks is an issue for you, just try '?a'
Reply
#5
(03-05-2023, 03:00 PM)b8vr Wrote: To prepend you should use the -a7 attack, which is a hybrid attack using a mask and a wordlist:

hashcat -a7 ?a wordlist.txt --stdout

See also https://hashcat.net/wiki/doku.php?id=hybrid_attack

Awesome that worked  Smile

and looks like its
Code:
hashcat -a6 wordlist.txt ?a --stdout  > newlist.txt

to append. very handy.
Reply