Skip to content

Instantly share code, notes, and snippets.

@cmlh
Created October 30, 2011 08:25
Show Gist options
  • Save cmlh/1325706 to your computer and use it in GitHub Desktop.
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
#!/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
@cmlh
Copy link
Author

cmlh commented Oct 30, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment