import requests
import base64
url = 'http://ctf5.shiyanbar.com/web/10/10.php'
s = requests.session()
response = s.get(url)
head = response.headers
flag = base64.b64decode(head['FLAG'])
print(flag)
flag=flag.split(b':')[1]
print(flag)
data = {'key': flag}
result = s.post(url=url, data=data)
print(result.text)
网友评论