Check word prefixes to reduce problem space

Produce a prefix wordlist from a dictionary wordlist using the
`filter_prefix.sh` script.
This commit is contained in:
2021-12-28 22:58:18 -05:00
parent 10e45a22d2
commit b816054fb3
4 changed files with 36685 additions and 16 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
if [ -z $1 ] || [ -z $2 ]; then
echo "Usage: ./filter_prefix.sh WORDLIST PREFIX_LENGTH"
exit 0
else
cat "$1" | pcregrep -o1 "^([a-zA-Z]{$2})" | uniq
exit 0
fi