很漂亮的验证码,可以进行图像识别
burpsuite现在常用的验证码识别的插件有
captcha-killer-modified:https://github.com/f0ng/captcha-killer-modified
下载后,在extender模块加载
识别模板如下:
POST /reg HTTP/1.1
Host: 127.0.0.1:8888
Connection: close
Cache-Control: max-age=0
Authorization: Basic f0ngauth
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3
Sec-Fetch-Site: none
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Content-Type: application/x-www-form-urlencoded
Content-Length: 55
<@BASE64><@IMG_RAW></@IMG_RAW></@BASE64>
注意:如果在运行的时候报如下错误
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
解决办法参考:
https://baijiahao.baidu.com/s?id=1775432196700665405&wfr=spider&for=pc
方案一,修改ddddocr的_init_.py文件,将其中的ANTIALIAS替换为新方法:
image = image.resize((int(image.size[0] * (64 / image.size[1])), 64), Image.LANCZOS).convert('L')
方案二,降级Pillow的版本,比如使用9.5.0版本
先卸载,再重新安装
pip uninstall -y Pillow
pip install Pillow==9.5.0
注意,插件要勾选使用
参考链接
https://mp.weixin.qq.com/s/R9AN2v66Mc7t5BlHFR9_0Q
https://mp.weixin.qq.com/s/_P6OlL1xQaYSY1bvZJL4Uw
原文始发于微信公众号(进击的HACK):登录接口验证码识别爆破
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论