techiall / Blog

🍋 [My Blog] See discussions
https://github.com/techiall/Blog/discussions
MIT License
8 stars 1 forks source link

CTF | as-fast-as-you-can #37

Open techiall opened 5 years ago

techiall commented 5 years ago

http://118.89.138.44:10003

import base64
import requests
if __name__ == '__main__':
    url = 'http://118.89.138.44:10003/index.php'
    r = requests.post(url=url)
    source = base64.b64decode(r.headers['Get-flag'])
    print(source)
    print(r.cookies.get_dict())
    r = requests.post(url=url, data={'zsctf': source},
                      cookies=r.cookies.get_dict())
    print(r.text)

cookies