DragonFlyBSD Kernel Audit
DF-2453 / run.sh
← back to finding ↓ download raw
#!/bin/sh
# Run the DF-2453 PoC. Must be root and dm modules loaded.
if ! kldstat -n dm >/dev/null 2>&1; then
	kldload dm || { echo "kldload dm failed (need root)"; exit 1; }
fi
if ! kldstat -n dm_target_flakey >/dev/null 2>&1; then
	kldload dm_target_flakey 2>/dev/null || true
fi
mdconfig -a -t swap -s 1m 2>/dev/null || true
./poc