DragonFlyBSD Kernel Audit
DF-0016 / run.sh
← back to finding ↓ download raw
1
2
3
4
5
6
7
#!/bin/sh
# DF-0016 run: read kern.proc.pid.<pid> as an UNPRIVILEGED user and dump the
# unredacted kernel pointers in kinfo_proc (kp_paddr / kp_fd / kl_wchan / kp_ktaddr)
# for processes we do NOT own (root daemons).
# Exits 0 if kernel pointers leaked, 2 if redacted.
cd "$(dirname "$0")"
./leak_kinfo