forked from zynga/hiccup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hiccup.sh
executable file
·28 lines (23 loc) · 889 Bytes
/
hiccup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
BURP_PACKAGE="";
BURP_COUNT=`ls burpsuite_*.jar | wc -l`;
if [ $BURP_COUNT = 1 ]; then
BURP_PACKAGE=`ls burpsuite_*.jar`;
else
for i in ls burpsuite_*.jar; do
if [ -e ${i} ]; then
echo "Found ${BURP_COUNT#"${BURP_COUNT%%[![:space:]]*}"} Burp packages; use ${i}? (y/n): \c"
read answer
case ${answer} in
y*|Y*) BURP_PACKAGE=${i}; break; ;;
n*|N*) ;;
*) : ;;
esac
fi
done
fi
if [ "x$BURP_PACKAGE" == "x" ]; then
echo "ERROR: A necessary Burp Suite package could not be located, or was not selected; view README file, or download from http://portswigger.net/burp/download.html.";
exit 1;
fi
java -Xmx1024m -classpath $BURP_PACKAGE:lib/BurpExtender.jar:lib/sqlitejdbc-v056.jar -Dpython.path=$PWD:$PWD/lib:$PWD/hiccup:$PWD/plugins burp.StartBurp