Skip to content

Instantly share code, notes, and snippets.

@Ge0rg3
Last active October 8, 2018 09:58
Show Gist options
  • Save Ge0rg3/a9c58ba716e38a7e5ada30b686566c7a to your computer and use it in GitHub Desktop.
Save Ge0rg3/a9c58ba716e38a7e5ada30b686566c7a to your computer and use it in GitHub Desktop.
Written for my CSAW Red 2018 Clicker Write-up
def stats():
global auth
userinfo = rq.get("http://web.chal.csaw.io:10106/user", headers=auth).json()
userclickers = json.loads(rq.get("http://web.chal.csaw.io:10106/clicker/user", headers=auth).json().replace("'",'"'))
print("##########\nStats for "+userinfo['username']+":")
print("##########")
print("Money: "+str(userinfo['money']))
print("##########\nClicker Name | Clicker Value | Clicker Price\n"+("----------"*5))
for count, i in enumerate(userclickers):
print(i['name']+" | "+str(i['value'])+" | "+str(i['price']))
print(("----------"*5))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment