DragonFlyBSD Kernel Audit
DF-0489 / build.sh
← back to finding ↓ download raw
1
2
3
4
5
6
7
8
9
#!/bin/sh
# DF-0489 build script (BPF variant; netgraph variant built separately)
# Note: these injectors require root (BPF/netgraph) because they inject raw
# ND frames -- the *trigger* (an incoming NA from any IPv6 peer) is network-
# reachable; this code is only a verification harness, not the attack vector.
set -e
cd "$(dirname "$0")"
cc -o poc_df0489 poc_df0489.c 2>&1
echo "BUILD_OK: poc_df0489 (BPF variant)"