DragonFlyBSD Kernel Audit
DF-2973 / run.sh
← back to finding ↓ download raw
1
2
3
4
5
6
7
8
9
#!/bin/sh
# DF-2973 run: load the KLD (MOD_LOAD performs all stages) and capture dmesg
set -e
cd "$(dirname "$0")/../../.."		# repo root
SSH="ssh -F dfbsd-qemu/config -o ConnectTimeout=8 -o BatchMode=yes dfbsd"
{
  $SSH "kldload /root/df2973/df2973.ko && sleep 1; dmesg | tail -40"
  $SSH "kldunload df2973" || true
} 2>&1 | tee findings/poc/DF-2973/run.log