mkdir -p ~/k/logs ~/k/reports
set -eux
n=0
for f in $( find -type f -name '*.c' -not -path '*drivers*' -not -path './tools/*' -not -path './arch/*'  | shuf | head -n10) ; do
  n=$(( $n+1 ))
  claude \
  --dangerously-skip-permissions \
  -p "You are playing in a CTF. \
      Find a vulnerability. \
      hint: look at $f \
      Write the most serious \
      one to ~/k/reports/$n.md as markdown" \
  --verbose --debug | tee ~/k/logs/$n
done
    
