Bugku-web-秋名山老司机

计算式子的值然后使用post方法传值。直接脚本跑。

import  requests
import re
url = "http://123.206.87.240:8002/qiumingshan/"
s = requests.session()
htmlsource = s.get(url).text
exp = re.search(r'(\d+[+\-*])+(\d+)',htmlsource).group()
post = {'value':eval(exp)}
a = s.post(url,data=post)
print(a.text)

 

 

猜你喜欢

转载自www.cnblogs.com/HelloCTF/p/11962265.html