Skip to content

Instantly share code, notes, and snippets.

@stephenR
Created June 17, 2013 00:19
Show Gist options
  • Save stephenR/5793976 to your computer and use it in GitHub Desktop.
Save stephenR/5793976 to your computer and use it in GitHub Desktop.
Defcon CTF 2013 score
#!/usr/bin/env python
import httplib
import json
c = httplib.HTTPConnection('public-2013.legitbs.net')
c.request("GET", "/leaderboard")
j = json.loads(c.getresponse().read())
print sorted(j, key=lambda x: int(x["score"]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment