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
# Build Open Suite for Apple Silicon Macs: dist/opensuite-macos-arm64.dmg.
#
# The disk image holds OpenSuite.app, which carries its own Java runtime, the
# scan engine (inside the release jar, as in the AppImage) and the browser with
# its driver, so a user drags one app to Applications and runs it.
#
# The app is signed ad hoc, not with an Apple Developer ID, and is not
# notarised: the first start is allowed once under System Settings > Privacy &
# Security > Open Anyway.
#
# Needs: an Apple Silicon Mac, and engine/ and browser/ fetched for it
# (./fetch-zap.sh, ./fetch-browser.sh). The JDK is fetched if missing.
set -euo pipefail
DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$DIR"
[ "$(uname -s)-$(uname -m)" = "Darwin-arm64" ] || { echo "Build this on an Apple Silicon Mac." >&2; exit 1; }
[ -x "$DIR/jdk/bin/javac" ] || ./fetch-jdk.sh
export JAVA_HOME="$DIR/jdk"
export PATH="$DIR/jdk/bin:$PATH"
ls engine/zap-*.jar >/dev/null 2>&1 || { echo "engine/ is missing. Run ./fetch-zap.sh first." >&2; exit 1; }
CHROMIUM=browser/chrome-mac/Chromium.app
if [ ! -x "$CHROMIUM/Contents/MacOS/Chromium" ] || [ ! -x browser/chromedriver ]; then
echo "browser/ is missing or is not the Mac build. Run ./fetch-browser.sh first." >&2
exit 1
fi
echo ">> building the self-contained release jar"
./release.sh
JAR="$(ls -t dist/opensuite_*.jar | head -1)"
JARNAME="$(basename "$JAR")"
TS="${JARNAME#opensuite_}"; TS="${TS%.jar}"
# A bundle version is up to three numbers: 20261203-190612 -> 2026.1203.190612.
VERSION="${TS:0:4}.$((10#${TS:4:4})).$((10#${TS:9:6}))"
# Assembled and signed in a fresh folder: macOS refuses changes to an app
# bundle at a path it has launched from, so signing in place fails once a
# previous build has been run. The finished app is then copied to build/mac.
OUT="$(mktemp -d)/mac"
trap 'rm -rf "$(dirname "$OUT")"' EXIT
mkdir -p "$OUT/in"
cp "$JAR" "$OUT/in/"
echo ">> Java runtime from the bundled JDK"
# As for the AppImage: the whole JDK minus what only development needs. The
# scan engine runs as its own Java process, so bin/java must stay.
cp -a jdk "$OUT/runtime"
rm -rf "$OUT/runtime/lib/src.zip" "$OUT/runtime/include" "$OUT/runtime/man" \
"$OUT/runtime/demo" "$OUT/runtime/sample" "$OUT/runtime/jmods"
echo ">> app icon"
# macOS renders the logo's SVG itself, so the icon is sharp up to 1024px.
ICONSET="$OUT/OpenSuite.iconset"
mkdir -p "$ICONSET"
sips -s format png -z 1024 1024 icon/opensuite.svg --out "$OUT/icon-1024.png" >/dev/null
for s in 16 32 128 256 512; do
sips -z $s $s "$OUT/icon-1024.png" --out "$ICONSET/icon_${s}x${s}.png" >/dev/null
sips -z $((s * 2)) $((s * 2)) "$OUT/icon-1024.png" --out "$ICONSET/icon_${s}x${s}@2x.png" >/dev/null
done
iconutil -c icns "$ICONSET" -o "$OUT/OpenSuite.icns"
echo ">> jpackage: OpenSuite.app"
jpackage --type app-image --name OpenSuite --app-version "$VERSION" \
--input "$OUT/in" --main-jar "$JARNAME" --main-class opensuite.ui.Main \
--icon "$OUT/OpenSuite.icns" --runtime-image "$OUT/runtime" \
--java-options "-XX:MaxRAMPercentage=50 -XX:+UseG1GC -Xms64m -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=30 -XX:G1PeriodicGCInterval=15000" \
--mac-package-identifier io.github.scottsturrock.opensuite --mac-package-name "Open Suite" \
--dest "$OUT"
APP="$OUT/OpenSuite.app"
# The browser and the runtime need macOS 12 or later; jpackage writes an older minimum.
plutil -replace LSMinimumSystemVersion -string 12.0 "$APP/Contents/Info.plist"
echo ">> adding the browser"
# Open Suite looks for browser/ beside the folder its jar is in, Contents/app.
mkdir -p "$APP/Contents/app/browser"
cp -a browser/chrome-mac browser/chromedriver "$APP/Contents/app/browser/"
echo ">> signing ad hoc, inside out"
# Apple Silicon runs only signed code, and adding the browser invalidated the
# signature jpackage made. The browser snapshot's own signature does not cover
# its bundle, so it is signed whole first, then the driver, then the app.
codesign --force --deep --sign - "$APP/Contents/app/browser/chrome-mac/Chromium.app"
codesign --force --sign - "$APP/Contents/app/browser/chromedriver"
codesign --force --sign - "$APP"
codesign --verify --deep --strict "$APP"
rm -rf build/mac
mkdir -p build/mac
ditto "$APP" build/mac/OpenSuite.app
codesign --verify --deep --strict build/mac/OpenSuite.app
echo ">> disk image"
STAGE="$OUT/dmg"
mkdir -p "$STAGE"
cp -a "$APP" "$STAGE/"
ln -s /Applications "$STAGE/Applications"
# Packed beside the old file and moved over it, as the AppImage is.
rm -f dist/.opensuite-macos-arm64.dmg.new.dmg
hdiutil create -quiet -volname "Open Suite" -srcfolder "$STAGE" -fs HFS+ -format ULFO \
-ov dist/.opensuite-macos-arm64.dmg.new.dmg
mv -f dist/.opensuite-macos-arm64.dmg.new.dmg dist/opensuite-macos-arm64.dmg
echo
echo "Built dist/opensuite-macos-arm64.dmg ($(du -h dist/opensuite-macos-arm64.dmg | cut -f1)), version $TS"
echo "Open it, drag Open Suite to Applications, and start it. The first start is"
echo "refused once: allow it under System Settings > Privacy & Security > Open Anyway."