CYBER-0 initial concept ready

This commit is contained in:
Ole Valente
2026-09-22 00:00:45 +02:00
parent 29eecd4f70
commit edb6cde069
70 changed files with 1976 additions and 3140 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -euo pipefail
TARGET_URL="${1:?Usage: run.sh https://target}"
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
REPOSITORY_DIR="$(cd "$SCRIPT_DIR/../.." && pwd)"
ARTIFACT_ROOT="${ARTIFACT_ROOT:-$REPOSITORY_DIR/artifacts}"
RAW_DIR="$ARTIFACT_ROOT/raw/zaproxy"
NORMALIZED_DIR="$ARTIFACT_ROOT/normalized"
mkdir -p "$RAW_DIR" "$NORMALIZED_DIR"
zap-baseline.py -t "$TARGET_URL" -J "$RAW_DIR/zap.json" -I
python3 "$SCRIPT_DIR/scripts/tls-probe.py" "$TARGET_URL" "$RAW_DIR/tls.json"
if [ "${NORMALIZE_ZAP:-true}" = "true" ]; then
python3 "$SCRIPT_DIR/scripts/normalize.py" \
"$RAW_DIR/zap.json" \
"$RAW_DIR/tls.json" \
"$NORMALIZED_DIR/zaproxy-demo-web.json" \
--target "$TARGET_URL" \
--mapping "$SCRIPT_DIR/asvs-mapping.json" \
--schema "$REPOSITORY_DIR/schemas/test-report.schema.json"
fi