-
-
Save cmlh/11238223 to your computer and use it in GitHub Desktop.
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/sh | |
# Simple shell script to replay URL(s) discovered by DirBuster over a local web proxy i.e. Burp Proxy, etc on TCP/8080 | |
# | |
# Based on http://pauldotcom.com/2011/08/dirbuster-to-burp-the-missing.html | |
# REPOSITORY | |
# https://gist.github.com/1325706 | |
# git://gist.github.com/1325706.git | |
# USAGE | |
# | |
# ./DirBuster.sh URL | |
# e.g. "./DirBuster.sh https://cmlh.id.au" | |
# AUTHORS | |
# christian.heinrich@cmlh.id.au | |
# jody.melbourne@gmail.com | |
# http://cmlh.id.au/contact | |
# TODO ASCII Terminal Colours (august 2013 - fixed spelling - jwm) | |
# Terminal ASCII colours done - choice of colour to be debated by committee (august 2013 - jwm) | |
echo -e "\e[1;34m[____ ___ ____ ____ ___ ____ ___ ____ ___ \n" | |
echo -e "\e[1;34m[[__ | |__| |__/ | |___ | \ |__| | \n" | |
echo -e "\e[1;34m[___] | | | | \ | |___ |__/ | | | \n\e[0m" | |
# /bin/echo -n "Started at " | |
date | |
# TODO replace $1 based on the DirBusterReport-[URL].txt filename | |
# TODO remove HTTP 4xx and 5xx (Error) Status Codes from each DirBusterReport-*.txt file | |
cat DirBusterReport-*.txt | grep '^\/' | grep -v ':' | while read line; | |
do | |
# TODO display HTTP Status Code | |
/bin/echo "Replaying $1$line" | |
# curl command line arguments are -slient --ignore insecure SSL and no -output | |
curl -s $1$line --proxy 127.0.0.1:8080 --insecure -o /dev/null; | |
done | |
# TODO ASCII Terminal Colors | |
/bin/echo -n "Finshed at " | |
date | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment