DF-0617 / build.sh
#!/bin/sh # DF-0617 build script # Build the code-level harness (deterministic UAF proof) + the netgraph injector. # The harness builds on ANY host (it's a userspace simulation). # The injector builds on DragonFlyBSD (needs libnetgraph). set -e cd "$(dirname "$0")" echo "=== Building code-level harness (uaf_ng_ether) ===" cc -O2 -o uaf_ng_ether uaf_ng_ether.c echo " -> uaf_ng_ether built" # The netgraph injector only builds on DragonFlyBSD with libnetgraph if [ -f /usr/include/netgraph.h ]; then echo "=== Building netgraph injector (ng_inject) ===" cc -o ng_inject ng_inject.c -lnetgraph 2>/dev/null && echo " -> ng_inject built" || echo " -> ng_inject SKIPPED (needs libnetgraph / DragonFlyBSD)" else echo "=== Skipping ng_inject (not on DragonFlyBSD) ===" fi echo "=== Build complete ===" |