Skip to content

Instantly share code, notes, and snippets.

@0x646e78
Last active August 2, 2016 11:21
Show Gist options
  • Save 0x646e78/4352e78e704457ada073 to your computer and use it in GitHub Desktop.
Save 0x646e78/4352e78e704457ada073 to your computer and use it in GitHub Desktop.
Find wordlists of length n and shorter
#/usr/bin/env bash
LIST=$1
LEN=$2

for i in $(cat $LIST); do
  [ ${#i} -le $LEN ] && echo $i 
done
$ bash wordlist_length.sh top25-2014.txt 6
123456
12345
qwerty
1234
dragon
monkey
abc123
111111
access
shadow
master
696969
123123
batman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment