DragonFlyBSD Kernel Audit
DF-0570 / build.sh
← back to finding ↓ download raw
1
2
3
4
5
6
7
8
9
#!/bin/sh
# DF-0570 build: the inbound OOB-read trigger (raw ICMP echo, attacker-chosen icmp_id).
# Runs on the DragonFly guest.  The trigger itself is unprivileged FROM THE ATTACKER'S
# perspective (remote packet); it is built/run as root here only because raw ICMP
# sockets need privilege on the receiver to simulate the remote attacker's packet.
set -e
cd "$(dirname "$0")"
cc -O2 -o df0570_oob df0570_oob_trigger.c
echo "built df0570_oob"