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
set -euo pipefail
DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$DIR"
# Prefer the pinned portable JDK (fetch-jdk.sh) when present, so the dev build
# matches the toolchain the release and AppImage use. Falls back to the system
# JDK if jdk/ is absent.
if [ -x "$DIR/jdk/bin/javac" ]; then
export JAVA_HOME="$DIR/jdk"
export PATH="$DIR/jdk/bin:$PATH"
fi
# Start from an empty build/ so nothing left by an earlier build or by the
# AppImage packaging (its runtime and staging directories live under build/)
# is packed into the jar.
rm -rf build && mkdir -p build dist
# The engine's gate add-on is built from engine-addon/ whenever an engine is here to build it against.
if ls engine/zap-*.jar >/dev/null 2>&1; then tools/build-gate.sh engine; fi
# Java's class path is joined with ";" on Windows (Git Bash there) and ":" elsewhere.
case "$(uname -s)" in MINGW*|MSYS*|CYGWIN*) S=';' ;; *) S=':' ;; esac
echo "Compiling..."
SRCS=(); while IFS= read -r f; do SRCS+=("$f"); done < <(find src -name '*.java')
javac -d build -cp "lib/*${S}build" "${SRCS[@]}"
echo "Copying resources..."
mkdir -p build/opensuite/ui/icons
cp src/opensuite/ui/icons/*.png build/opensuite/ui/icons/ 2>/dev/null || true
echo "Unpacking BouncyCastle into the jar..."
cd build
for j in ../lib/*.jar; do jar xf "$j"; done
rm -rf META-INF/*.SF META-INF/*.DSA META-INF/*.RSA 2>/dev/null || true
cd ..
MANIFEST="$(mktemp)"
trap 'rm -f "$MANIFEST"' EXIT
echo "Main-Class: opensuite.ui.Main" > "$MANIFEST"
jar cfm dist/opensuite.jar "$MANIFEST" -C build .
echo "Built dist/opensuite.jar ($(du -h dist/opensuite.jar | cut -f1))"