Add files via upload
This commit is contained in:
52 files changed
+33300
No files matched your search
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
# build.sh — build the Kali+ arsenal image, then validate it with the existing presence smoke.
|
||||
# Usage: bash tools/build.sh [IMAGE_TAG] (default: cybench-tools:latest)
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
IMAGE="${1:-cybench-tools:latest}"
|
||||
|
||||
if ! command -v docker >/dev/null 2>&1; then
|
||||
echo "docker not found — install Docker Desktop / engine first."; exit 1
|
||||
fi
|
||||
|
||||
echo "Building $IMAGE (linux/amd64) — this is heavy (~minutes, multi-GB)…"
|
||||
docker build --platform linux/amd64 -t "$IMAGE" .
|
||||
|
||||
echo
|
||||
echo "Validating with the presence smoke (scripts/check-tools-image.sh)…"
|
||||
bash ../scripts/check-tools-image.sh "$IMAGE"
|
||||
|
||||
echo
|
||||
echo "Done. Point the hunter at it: node scripts/cybench-bench.mjs --tools-image $IMAGE --arsenal-tools all …"
|
||||
Reference in new issue
Block a user