SHARE
TWEET

..:: bash generate wordlist from text ::..

a guest Jul 12th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. echo "usage:\ncd /root/sqlmap/output/secret.com/dump/secret_db/\n$0"
  2. OUTPUT_WORDLIST="/opt/sqlmap_wordlist.txt"
  3. for files_ in $(ls)
  4. do
  5. BIGROW="$(cat $files_ | sed ':a;N;$!ba;s/\n/ /g' | sed -e 's/,/ /g')"
  6. for word in $BIGROW
  7. do
  8.   if [[ $word == "NULL" ]] || [[ $word == "<blank>" ]] || [[ $word == "0" ]] || [[ $word == "1" ]] || [[ $word == "2" ]] || [[ $word == "3" ]] || [[ $word == "4" ]] || [[ $word == "5" ]] || [[ $word == "6" ]] || [[ $word == "7" ]] || [[ $word == "8" ]] || [[ $word == "9" ]] || [[ $word == "YES"  ]]; then
  9.   echo no
  10.   else
  11.   echo $word
  12.     echo $word >> $OUTPUT_WORDLIST
  13.   fi
  14. done
  15. done
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top