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