Advertisement
Guest User

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

a guest
Jul 12th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.61 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement