DF-0932 / build.sh
#!/bin/sh # DF-0932 build: deterministic harness + NTFS image. set -e cd "$(dirname "$0")" # 1. Build the deterministic harness (transcribes ntfs_uncompblock line- # for-line; proves the underflow reaches attacker-invisible memory). ssh -F dfbsd-qemu/config dfbsd-maxx /bin/sh <<'BUILDEOF' set -e mkdir -p ~/poc/DF-0932 && cd ~/poc/DF-0932 cc -O2 -o harness harness.c echo HARNESS_BUILD_RC=$? ls -l harness BUILDEOF # 2. Build the malicious NTFS image (host). python3 craft_img.py ntfs_evil.img ls -l ntfs_evil.img echo "BUILD_DONE" |