Hashcat rule: Take first letter of each word in given word list
#3
awk works just fine on a Linux system:

Code:
$ cat wordlist.txt
This is a word list
i like hashcat
A Text With Capital Letter

Code:
$ awk '{for (i=1;i<=NF;i++) $i=substr($i,1,1)}1' OFS= wordlist.txt
Tiawl
ilh
ATWCL

or an easy, ugly, not that efficient alternative combining grep and sed:
Code:
$ grep -Eoz '\b.' wordlist.txt | sed -e 's/ //g'
Tiawl
ilh
ATWCL

you can pipe the output into hashcat or redirect it to a file to create a new word list:
Code:
$ awk '{for (i=1;i<=NF;i++) $i=substr($i,1,1)}1' OFS= wordlist.txt | hashcat ...
$ awk '{for (i=1;i<=NF;i++) $i=substr($i,1,1)}1' OFS= wordlist.txt  > wordlist.new
Reply


Messages In This Thread
RE: Hashcat rule: Take first letter of each word in given word list - by viffju - 12-12-2022, 09:12 PM