Skip to content

Instantly share code, notes, and snippets.

@bruvv
Last active April 9, 2021 16:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bruvv/98efae442eb52caf819508adaaf0d0b1 to your computer and use it in GitHub Desktop.
Save bruvv/98efae442eb52caf819508adaaf0d0b1 to your computer and use it in GitHub Desktop.
Linux wordlist commands for WPA/WPA2 hash

Merging

rm -f stage*
rm -vf CREADME CHANGELOG* readme* README* stage*
echo "Number of files:" `find . -type f | wc -l`
cat * > tmp/aio-"${PWD##*/}".lst 
rm -f *.txt && mv tmp/aio-"${PWD##*/}".lst ./

Make a WPA list

cat aio-"${PWD##*/}".lst | sed 's/[^a-zA-Z0-9]//g' > stage1.1 # to remove all html ****, white space and none alphanumeric entries
cat stage1.1 | pw-inspector -m 8 -M 63 > stage1.2 # only allow words with 8 to 63 chars
tr '[:upper:]' '[:lower:]' < stage1.2 > stage2 && rm stage1.2 # trim leading and trailing whitespace
sort stage2 | uniq > "${PWD##*/}"-clean.lst

export all wordlists

rm -f stage*   #aio-"${PWD##*/}".lst
wc -l "${PWD##*/}"-clean.lst
md5sum "${PWD##*/}"-clean.lst
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment