DragonFlyBSD Kernel Audit
DF-1327 / build.sh
← back to finding ↓ download raw
#!/bin/sh
# DF-1327 — build the mpr_user_pass_thru info-leak PoC.
# Builds on DragonFlyBSD with the base cc (no external headers needed; the
# on-wire ioctl struct is reproduced inside poc.c because <dev/raid/mpr/
# mpr_ioctl.h> is not installed under /usr/include).
set -e
cd "$(dirname "$0")"
echo "+ cc -o poc poc.c -Wall"
cc -o poc poc.c -Wall
echo "BUILD_EXIT=$?"
ls -l poc