Created
September 29, 2018 23:36
-
-
Save Ge0rg3/52280921589f5c69102afbea0dcaaa95 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 click(clicker): | |
global authorization | |
data={'name':clicker} | |
req = rq.post("http://web.chal.csaw.io:10106/clicker/click", headers=authorization, json=data) | |
if req.json()['status'] == "success": | |
return "Success!" | |
elif req.json()['message'] == "Clicker not owned": | |
return "Clicker not owned." | |
else: | |
return "Clicker does not exist." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment