From 0244980db0e1c7b88570e650a89fcc91ef74c2b4 Mon Sep 17 00:00:00 2001 From: ben-waugh Date: Sun, 30 Dec 2012 17:34:06 +1000 Subject: [PATCH] LiveCD - Added proxy demo for sqlmap #789 --- liveCD/BeEFLive.sh | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/liveCD/BeEFLive.sh b/liveCD/BeEFLive.sh index 14fedd039..c8a74ed0c 100644 --- a/liveCD/BeEFLive.sh +++ b/liveCD/BeEFLive.sh @@ -99,12 +99,38 @@ fi echo -n "Start BeEF (y/N)? " read var -if [ $var = "y" ] ; then - echo "" +# +# function to allow beef to run in the background +# +run_beef() { + echo "" echo "Starting BeEF.."; - cd /opt/beef + cd /opt/beef/ ruby beef -x +} + +if [ $var = "y" ] ; then + run_beef & + sleep 5 +fi + +# +# Prompt the user if they would like start sqlmap using beef as proxy +# + +echo "" +echo -n "Start sqlMAP with BeEF Proxy? (y/N)? " +read var + +if [ $var = "y" ] ; then + echo "" + echo "sqlMAP can now be run using the --proxy command set to the BeEF Proxy: http://127.0.0.1:6789 starting the wizard to demo with:" + echo "python /opt/sqlmap/sqlmap.py --proxy http://127.0.0.1:6789 --wizard" + sleep 5 + python /opt/sqlmap/sqlmap.py --proxy http://127.0.0.1:6789 --wizard fi + +