Last active
June 9, 2018 13:30
-
-
Save r3k2/fe49a07d096aff95c17572d9ea170ab1 to your computer and use it in GitHub Desktop.
SuperGoBuster
This file contains hidden or 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 | |
set -eu | |
URL=$1 | |
SECLIST="${HOME}/herramientas/diccionarios/SecLists/Discovery/Web_Content" | |
MIDDIR="/usr/share/dirbuster/directory-list-2.3-medium.txt" | |
declare -a FILES=("tomcat.txt" "nginx.txt" "apache.txt" "Top1000-RobotsDisallowed.txt" "ApacheTomcat.fuzz.txt" "sharepoint.txt" "iis.txt") | |
EXTENSIONS=("txt,php,doc,docx") | |
GOB="/bin/gobuster" | |
OUTPUT="${URL}-results" | |
echo "super go bustering for super brute: $URL" | |
if [ -f ${OUTPUT} ]; then | |
echo "" > ${OUTPUT} | |
fi | |
for dirlist in ${FILES[@]}; do | |
${GOB} -u $URL -s 200,204,301,302,307,403 -w ${SECLIST}/${dirlist} | tee -a ${OUTPUT} | |
done | |
${GOB} -u $URL -s 200,204,301,302,307,403 -s 200,204,301,302,307,403 | tee -a ${OUTPUT} | |
${GOB} -u $URL -s 200,204,301,302,307,403 -w ${MIDDIR} -e -x ${EXTENSIONS} -s 200,204,301,302,307,403 | tee -a ${OUTPUT} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment