BugKu中套路满满的题-------速度要快

这一题,首先进入的界面只有一句话,


我感觉你得快点!!!

查看源码发现下面还有一句话:

 OK ,now you have to post the margin what you find

(上面个这句话是说明需要有post提交,参数为margin)

那就抓包试试,,当你抓包发送出去的时候,你会发现,他给你返回base64加密的flag,嘿嘿。。。

解密提交后发现是错误的!!

那就再抓一次包看看吧,发现还是有flag,但是和上次是不一样的flag。。。。

这时,应该就要上python脚本了吧,,,毕竟机器运行的始终比人的速度快,用脚本把flag跑出来。

import requests
import base64

url = 'http://123.206.87.240:8002/web6/'
req = requests.session()
res = req.get(url)
flag = res.headers['flag']

txt = base64.b64decode(flag)
txt = txt[txt.index(":") + 2:]
txt = base64.b64decode(txt)

data = {'margin': txt}
ans = req.post(url, data)
print ans.content

跑完之后,就可以得到flag了。

猜你喜欢

转载自blog.csdn.net/qq_42133828/article/details/84929403
今日推荐