Advertisement
IsraelTorres

ToorCon2017 scoreboard.ctf.land

Sep 2nd, 2017
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.60 KB | None | 0 0
  1. # sans sorting
  2. for x in {50..89}; do echo -en "$x\t"; curl -s --location "https://scoreboard.ctf.land/team/$x" | grep -A 12 team-id | grep -E 'team-id|>place' | sed -e 's/<[^>]*>//g' | tr -s ' ' | tr -d '\n' | awk '{$1=$1};1'; done
  3.  
  4. # with sorting of teams (descending - 26...1, none)
  5. teams=$(for x in {50..89}; do echo -en "$x\t"; curl -s --location "https://scoreboard.ctf.land/team/$x" | grep -A 12 team-id | grep -E 'team-id|>place' | sed -e 's/<[^>]*>//g' | tr -s ' ' | tr -d '\n' | awk '{$1=$1};1'; done); echo "$teams" | sed 's/Brokefoot Mountain/Brokefoot_Mountain/' | sort -k3 -n -r | tr '_' ' '
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement