Posted onInctfViews: Disqus: Word count in article: 244Reading time ≈1 mins.
Challenge
Submit the captcha before the two-second deadline.
在两秒时限内提交验证码。
1
https://webhacking.kr/challenge/code-4/
Analysis
GET 响应同时给出本次页面实例的 captcha 和 st
Cookie。服务端用 st 判断时限,并要求 POST 的 captcha
与本次页面生成的值相同;因此 GET 和 POST 必须使用同一个
requests.Session。不能预先保存验证码,也不能把下一次 GET
得到的 st 与旧验证码混用。