Last active
October 8, 2018 09:58
-
-
Save Ge0rg3/a9c58ba716e38a7e5ada30b686566c7a to your computer and use it in GitHub Desktop.
Written for my CSAW Red 2018 Clicker Write-up
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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