Skip to content

Instantly share code, notes, and snippets.

@r3k2
Last active June 9, 2018 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save r3k2/fe49a07d096aff95c17572d9ea170ab1 to your computer and use it in GitHub Desktop.
Save r3k2/fe49a07d096aff95c17572d9ea170ab1 to your computer and use it in GitHub Desktop.
SuperGoBuster
#!/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