DragonFlyBSD Kernel Audit
DF-0787 / build.sh
← back to finding ↓ download raw
#!/bin/sh
# build.sh - build the userspace harness for DF-0787. The actual trigger is a
# crafted NTFS image + mount_ntfs (no userspace binary needed); the harness is
# a deterministic complement that replicates the unbounded-walk logic.
set -e
cd "$(dirname "$0")"
cc -O2 -Wall -o harness harness.c
echo "built: harness"

# also generate the three crafted NTFS images
python3 gen_ntfs_0787.py all
ls -l ntfs_loop.img ntfs_oob_a.img ntfs_oob_r.img harness