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
# Fetch the pinned portable Temurin JDK into jdk/.
#
# The AppImage bundles a Java runtime built from this JDK (jlink + jpackage in
# package-appimage.sh), and the build scripts compile against it. Eclipse Temurin
# is built on an old glibc (2.17), so the runtime inside the AppImage starts on
# mainstream Linux, not only on the machine that built it. Building the runtime
# from a bleeding-edge system JDK (newer glibc) produces an AppImage that quits
# on older distributions before it can show a window.
#
# The exact release and its sha256 are pinned in tools/versions, so every
# machine fetches identical bytes. Re-run after bumping JDK_VERSION and
# JDK_SHA256 there.
set -euo pipefail
DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$DIR"
# shellcheck disable=SC1091
. tools/versions
# Temurin release assets follow a fixed naming scheme:
# tag jdk-25.0.5+8 (the "+" is %2B in the URL)
# file OpenJDK25U-jdk_x64_linux_hotspot_25_0_5_8.tar.gz
MAJOR="${JDK_VERSION%%.*}"
# Temurin keeps the dotted feature version and replaces only the build "+":
# 25.0.5+8 -> 25.0.5_8 (not 25_0_5_8, which does not exist upstream).
FV="${JDK_VERSION//+/_}"
case "$(uname -s)-$(uname -m)" in
Linux-x86_64) PLAT=x64_linux; SHA="$JDK_SHA256" ;;
Darwin-arm64) PLAT=aarch64_mac; SHA="$JDK_SHA256_MAC_ARM" ;;
MINGW*-x86_64|MSYS*-x86_64) PLAT=x64_windows; SHA="$JDK_SHA256_WINDOWS"; EXT=zip ;;
*) echo "No pinned JDK for $(uname -s) $(uname -m)" >&2; exit 1 ;;
esac
EXT="${EXT:-tar.gz}"
URL="https://github.com/adoptium/temurin${MAJOR}-binaries/releases/download/jdk-${JDK_VERSION//+/%2B}/OpenJDK${MAJOR}U-jdk_${PLAT}_hotspot_${FV}.${EXT}"
check() { # <file> <expected sha256>
local got
got="$( { sha256sum "$1" 2>/dev/null || shasum -a 256 "$1"; } | cut -d' ' -f1)"
if [ "$got" != "$2" ]; then
echo "sha256 mismatch for $1:" >&2
echo " expected $2 (update the pin in tools/versions?)" >&2
echo " got $got" >&2
exit 1
fi
}
if [ -x jdk/bin/javac ]; then
echo "jdk/ already present: $(jdk/bin/java -version 2>&1 | head -1)"
echo "Delete jdk/ and re-run to refresh."
exit 0
fi
echo ">> downloading Temurin JDK ${JDK_VERSION} (${PLAT})"
TMP="$(mktemp -d)"
trap 'rm -rf "$TMP"' EXIT
curl -fsSL -o "$TMP/jdk.$EXT" "$URL"
check "$TMP/jdk.$EXT" "$SHA"
if [ "$EXT" = zip ]; then
# unzip where it is installed, else Windows' own unpacker
if command -v unzip >/dev/null 2>&1; then unzip -q "$TMP/jdk.zip" -d "$TMP"
else powershell -NoProfile -Command "\$ProgressPreference='SilentlyContinue'; Expand-Archive -Force '$(cygpath -w "$TMP/jdk.zip")' '$(cygpath -w "$TMP")'"; fi
else tar -xzf "$TMP/jdk.tar.gz" -C "$TMP"; fi
SRC="$(find "$TMP" -maxdepth 1 -type d -name 'jdk-*' | head -1)"
[ -n "$SRC" ] || { echo "could not find the extracted JDK directory" >&2; exit 1; }
# The macOS JDK is a bundle; its usual JAVA_HOME layout is under Contents/Home.
[ -d "$SRC/Contents/Home" ] && SRC="$SRC/Contents/Home"
rm -rf jdk
mv "$SRC" jdk
echo "Installed jdk/: $(jdk/bin/java -version 2>&1 | head -1)"