-
-
Save fo0nikens/8514398d825a5c17d28cd52e48ae0467 to your computer and use it in GitHub Desktop.
create a wordlist from the target itself
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# with user-agent | |
# credits @fo0_ | |
wordgrab() { | |
url=$1 | |
tmpfile="$(date "+%s")" | |
curl -sLk -m 3 -A "Mozilla/5.0 (X11; Linux; rv:74.0) Gecko/20100101 Firefox/74.0" https://$url | html2text | egrep -io "[0-9a-zA-Z\-]+" | tr '[:upper:]' '[:lower:]' | sed -r "s/^[^a-z]+//g" | sed -r "s/[^a-z0-9]+$//g" | sed -r '/.{2,}/!d' | sort -fu | tee -a $tmpfile | tr '-' '.' | tee -a $tmpfile | tr "." "\n" >> $tmpfile | |
cat $tmpfile | sort -fu | |
rm $tmpfile | |
} | |
wordgrab() { | |
url=$1 | |
tmpfile="$(date "+%s")" | |
curl -sLk -m 3 https://$url | html2text | egrep -io "[0-9a-zA-Z\-]+" | tr '[:upper:]' '[:lower:]' | sed -r "s/^[^a-z]+//g" | sed -r "s/[^a-z0-9]+$//g" | sort -fu | tee -a $tmpfile | tr '-' '.' | tee -a $tmpfile | tr "." "\n" >> $tmpfile | |
cat $tmpfile | sort -fu | |
rm $tmpfile | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment