Skip to content

Instantly share code, notes, and snippets.

@tchn
Last active December 12, 2015 02:08
Show Gist options
  • Save tchn/4696179 to your computer and use it in GitHub Desktop.
Save tchn/4696179 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Usage: burpsuite [ extension_in_full_path [xtension [...] ]
set -o nounset
set -x
showusage() {
echo "Usage: runburp.sh [ extension_in_full_path [...] ]"
}
burpdir="/opt/lib/burp";
burpfile="${burpdir}/burpsuite_pro_v1.5.09.jar";
#local args extname
# sets charcode
PS3="Select charcode: "
select charcode in "UTF-8" "Shift_JIS" "EUC-JP" "ISO-2022-JP"; do
break;
done
# sets extensions
if [ "$#" -gt 0 ]; then
for args in "$@"; do
extname+=":${args}";
done
fi
# runs
java -DreplaceNullChar -Dfile.encoding="$charcode" -Xmx1024m -classpath "${burpfile}${extname:-}" burp.StartBurp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment