12-12-2022, 09:12 PM
awk works just fine on a Linux system:
or an easy, ugly, not that efficient alternative combining grep and sed:
you can pipe the output into hashcat or redirect it to a file to create a new word list:
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