DragonFlyBSD Kernel Audit
DF-0799 / run.sh
← back to finding ↓ download raw
1
2
3
4
5
6
7
8
9
#!/bin/sh
# DF-0799 PoC run script
# Prerequisites (root setup):
#   rpcbind; mountd; nfsd -n 4
#   echo "/nfsroot -maproot=root -network 127.0.0.0 -mask 255.0.0.0" > /etc/exports
#   mount_nfs -o udp 127.0.0.1:/nfsroot /mnt
#   dd if=/dev/zero of=/nfsroot/testfile bs=4096 count=16; chmod 666 /nfsroot/testfile
cd "$(dirname "$0")"
./toctou_race /mnt/testfile