Created
October 30, 2011 08:25
-
-
Save cmlh/1325706 to your computer and use it in GitHub Desktop.
Simple shell script to replay URL(s) discovered by DirBuster over a local web proxy based on http://pauldotcom.com/2011/08/dirbuster-to-burp-the-missing.html
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" | |
# AUTHOR | |
# christian.heinrich@cmlh.id.au | |
# http://cmlh.id.au/contact | |
# TODO ASCII Terminal Colors | |
/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 | |
/bin/echo -n "Finshed at " | |
date | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://gist.github.com/1325706/1def9b68465260d199ae1fd1df28c8845cbac291
Added "REPOSITORY" section