DF-0600 / build.sh
#!/bin/sh # DF-0600 build script. # Builds the PoC against the in-guest kernel headers. Must run as root # because /dev/nsmb is 0700 root:wheel and the smbfs module must be loaded. set -e cd "$(dirname "$0")" cc -I/usr/src/sys -I/usr/src/sys/netproto/smb -o oob_read oob_read.c echo "BUILD_OK: oob_read" |