-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathburpUpdate
executable file
·31 lines (26 loc) · 932 Bytes
/
burpUpdate
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
29
30
31
#!/bin/bash
get_script_dir () {
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$( readlink "$SOURCE" )"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
done
$( cd -P "$( dirname "$SOURCE" )" )
pwd
}
prep_env () {
mkdir -p "/Applications/Burp Suite Professional.app"
mkdir -p "/Applications/Burp Suite Professional.app/tmp"
mkdir -p "/Applications/Burp Suite Professional.app/log"
}
prep_env
SCRIPT_DIR=$(get_script_dir)
cd "${SCRIPT_DIR}"
for f in "${SCRIPT_DIR}/burpsuite_pro_*.jar"; do
F=`echo $f`
[ -f "${SCRIPT_DIR}/burpsuite.jar" ] && rm "${SCRIPT_DIR}/burpsuite.jar"
mv "$F" "${SCRIPT_DIR}/burpsuite.jar"
ant bundle && rm -rf "${SCRIPT_DIR}/Burp Suite Professional.app" && osascript -e 'display notification "Burp Suite Professional updated succesfully." with title "Burp Suite"'
break;
done