Created
September 23, 2016 14:31
-
-
Save tommelo/a1cd0cdd0e6eeee73708005099924c9d to your computer and use it in GitHub Desktop.
Simple webiste dir|file information gathering
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
#!/bin/bash | |
echo "" | |
if [ $# -lt 2 ] | |
then | |
echo "[!] no arguments given" | |
echo "[!] usage: ./recon.sh [url] [wordlist file]" | |
echo "[!] eg.: ./recon.sh http://www.grandbusiness.com.br /usr/share/dirb/wordlists/small.txt" | |
echo "" | |
exit 1 | |
fi | |
echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" | |
echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" | |
echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" | |
echo "@@@@@@@@@@@@(//////////%@@@@@@@@@@@@@@@" | |
echo "@@@@@@@@@&////@@@@@@@////#@@@@@@@@@@@@@" | |
echo "@@@@@@@@(///@@@@@@@@@@@@///@@@@@@@@@@@@" | |
echo "@@@@@@@(//@@@@@@@@@@@@@@@///@@@@@@@@@@@" | |
echo "@@@@@@@///@@@@@@@@@@@@@@@///@@@@@@@@@@@" | |
echo "@@@@@@@///@@@@@@@@@@@@@@@(//@@@@@@@@@@@" | |
echo "@@@@@@@///@@@@@@@@@@@@@@@///@@@@@@@@@@@" | |
echo "@@@@@@@@///&@@@@@@@@@@@@///@@@@@@@@@@@@" | |
echo "@@@@@@@@@@////@@@@@@@#/////&@@@@@@@@@@@" | |
echo "@@@@@@@@@@@//////////////////@@@@@@@@@@" | |
echo "@@@@@@@@@@@@@@@@@@@@@@@@@@/////@@@@@@@@" | |
echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@/////&@@@@@" | |
echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@////@@@@@" | |
echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" | |
echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" | |
echo "@ RECON WEB @" | |
echo "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@" | |
echo "" | |
echo "gathering website (dirs|files) information..." | |
echo "" | |
for path in $(cat $2) | |
do | |
http_status=$(curl -s --head $1/$path | head -n1 | awk -F " " '{print $2}') | |
if [ $http_status == "200" ] | |
then | |
echo "Found: /$path" | |
fi | |
done | |
echo "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment