Skip to content

Instantly share code, notes, and snippets.

@tommelo
Created September 23, 2016 14:31
Show Gist options
  • Save tommelo/a1cd0cdd0e6eeee73708005099924c9d to your computer and use it in GitHub Desktop.
Save tommelo/a1cd0cdd0e6eeee73708005099924c9d to your computer and use it in GitHub Desktop.
Simple webiste dir|file information gathering
#!/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