A free, open-source alternative to Burp Suite: an intercepting proxy and web app security testing suite with Repeater, Intruder, Collaborator and a built-in OWASP ZAP scanner. Linux, AGPL-3.0.
Java application-securityappsecbug-bountyburp-alternativeburp-suitedasthttp-proxyinfosecintercepting-proxyjavaowaspowasp-zappenetration-testingpentestingsecuritysecurity-toolsvulnerability-scannerweb-application-securityweb-security
#!/usr/bin/env bash
# Launch Open Suite.
#
# Interface scale is worked out automatically from your screen, so this normally
# needs no configuration: a 4K display gets 200%, a 2.5K display 150%, anything
# smaller 100%. Whatever you pick from the app's view menu is remembered and
# overrides the detected value from then on.
#
# To force a scale for one launch:
# ./run.sh 2 (pass the scale as the first argument)
# OPENSUITE_SCALE=1.5 ./run.sh (or an environment variable)
#
# Set SCALE below if you want a fixed scale on every launch. Leaving it empty
# is recommended: it lets your choice in the settings work.
SCALE=""
set -u
DIR="$(cd "$(dirname "$0")" && pwd)"
# Prefer the pinned portable JDK (fetch-jdk.sh) when present, so the app runs
# on the same runtime the release and AppImage use. Falls back to a system JDK
# if jdk/ is absent. Without this, run.sh fails with "java: not found" on a
# machine that has no system Java even though fetch-jdk.sh installed one.
if [ -x "$DIR/jdk/bin/java" ]; then
export JAVA_HOME="$DIR/jdk"
export PATH="$DIR/jdk/bin:$PATH"
fi
# Java's X11 toolkit assumes a reparenting window manager. Under the tiling
# and wlroots-family compositors below, Swing windows paint blank white unless
# this hint is set. Set it only when the caller has not set it themselves; it
# is harmless where it is not needed.
if [ -z "${_JAVA_AWT_WM_NONREPARENTING+x}" ]; then
for d in $(printf '%s' "${XDG_CURRENT_DESKTOP:-}" | tr ':' ' ' | tr '[:upper:]' '[:lower:]'); do
case "$d" in
sway|i3|hyprland|river|dwl|bspwm|labwc) export _JAVA_AWT_WM_NONREPARENTING=1; break ;;
esac
done
fi
# First numeric argument, or the env var, overrides the default above.
if [[ "${1:-}" =~ ^[0-9]+(\.[0-9]+)?$ ]]; then SCALE="$1"; shift; fi
SCALE="${OPENSUITE_SCALE:-$SCALE}"
ARGS=()
if [[ -n "$SCALE" ]]; then
# Setting the real HiDPI property here means the first JVM already has the
# right scale, so the app does not have to relaunch itself to apply it.
ARGS+=("-Dsun.java2d.uiScale=$SCALE" "-Dopensuite.scaled=$SCALE")
fi
# Size the max heap as a share of the machine's RAM rather than a fixed cap, so
# the app scales with the host. 50% leaves room for the scan engine and the
# testing browser, which run as their own processes outside this JVM.
if [ ! -f "$DIR/dist/opensuite.jar" ]; then
echo "dist/opensuite.jar not found. Build it first: ./build.sh" >&2
exit 1
fi
# Settings > Suite > Performance > Maximum memory usage: a custom limit is left
# in this file as a number of megabytes. Without it, half of system memory.
MEMORY=(-XX:MaxRAMPercentage=50)
if [ -r "$HOME/.opensuite/memory-mb" ]; then
MB="$(tr -cd '0-9' < "$HOME/.opensuite/memory-mb" | cut -c1-7)"
if [ -n "$MB" ] && [ "$MB" -ge 256 ]; then MEMORY=("-Xmx${MB}m"); fi
fi
export MALLOC_ARENA_MAX="${MALLOC_ARENA_MAX:-2}"
exec java "${MEMORY[@]}" -XX:+UseG1GC -Xms64m -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=30 -XX:G1PeriodicGCInterval=15000 "${ARGS[@]}" -jar "$DIR/dist/opensuite.jar" "$@"