DragonFlyBSD Kernel Audit
DF-0786 / run.sh
← back to finding ↓ download raw
#!/bin/sh
# run.sh — Run the DF-0786 PoC
#
# Mode 1 (harness, no NTFS needed):
#   ./run.sh -h
#
# Mode 2 (live NTFS trigger, requires mounted NTFS volume):
#   ./run.sh /mnt/ntfs/a:AAAAAAAA
#
# Default runs the harness (deterministic proof of the off-by-one).
if [ "$1" = "-h" ] || [ $# -eq 0 ]; then
    ./trigger -h
else
    ./trigger "$1"
fi