IsraelTorres

ctf2012creategamerepo.sh

Jun 4th, 2012
48
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]="1 GRAB BAG"
  7. ctfcat[2]="2 URANDOM"
  8. ctfcat[3]="3 BINARY L33tness"
  9. ctfcat[4]="4 POTENT PWNables"
  10. ctfcat[5]="5 FORENSICS"
  11.  
  12. for ((index=1; index <=5; index++)); do
  13. for ((level=100; level<=500; level=$((level+100)))); do
  14. mkdir -p "ctf2012/${ctfcat[index]}/$level"
  15. done
  16. done
  17. # EOF
RAW Paste Data