Instantly share code, notes, and snippets.

@balidani / Secret
Created Oct 26, 2013

What would you like to do?
import requests
import sys
import binascii
from base64 import b64decode
reg_url = ""
login_url = ""
while True:
payload = raw_input()
data = {
"myusername": payload,
"mypassword": payload,
headers = {
'User-Agent': payload,
resp = % (payload, payload, payload, payload), headers=headers)
# print resp.text.encode('ascii', 'ignore').split("\n")[58].split("<br>")[0].strip()
resp =, data=data, headers=headers)
# print resp.text.encode('ascii', 'ignore').split("\n")[56].strip()
if 'session_id' in resp.cookies:
print "Cookie: %s" % b64decode(resp.cookies['session_id'].replace("%3D", "="))
print "Cookie: missing"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment