IsraelTorres

Defcon 19 CTF Prequals

Jun 3rd, 2011
974
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # Israel Torres
  3. # Fri Jun  3 13:55:29 PDT 2011
  4. # CTF Game File Directory Creator for artifacts
  5. #
  6. ctfcat[1]="GRAB BAG"
  7. ctfcat[2]="RETRO REVISITED"
  8. ctfcat[3]="BINARY L33tness"
  9. ctfcat[4]="POTENT PWNables"
  10. ctfcat[5]="FORENSICS"
  11.  
  12. for ((index=1; index <=5; index++)); do
  13.     for ((level=100; level<=500; level=$((level+100)))); do
  14.         mkdir -p "${ctfcat[index]}/$level"
  15.     done
  16. done
  17. # EOF
RAW Paste Data