DragonFlyBSD Kernel Audit
DF-0818 / run.sh
← back to finding ↓ download raw
#!/bin/sh
# DF-0818 run: invoke BULKFREE_SCAN as the unprivileged user against an
# admin-mounted, maxx-owned HAMMER2 PFS (path /mnt/h2/trigger).
#
# Precondition (admin/root): a HAMMER2 image is mounted at /mnt/h2 and the
# mount root is owned by the unprivileged user. The PoC opens any file in
# the PFS and issues HAMMER2IOC_BULKFREE_SCAN.
set -e
cd "$(dirname "$0")"
TARGET="${1:-/mnt/h2/trigger}"
echo "+ ./poc $TARGET"
./poc "$TARGET"