干货|爆破带有验证码的Web登录表单
2022-11-29 14:16:53 Author: www.secpulse.com(查看原文) 阅读量:32 收藏

转载于ybdt.me博客
吐槽

逛github看到一个项目,讲述如何爆破带有验证码的Web登录表单,作者是基于c0ny1师傅的captcha-killer项目修改了一下,过程叙述稍微有点简陋,自己折腾了好一会,想了想还是记录一下使用过程,方便自己也方便他人(耗时约3小时)

连续2篇图文记录真是太累人了,以后还是多文字描述吧。。

本文定位教程类文章,共包括step1-step5

下载并安装插件
下载地址:https://github.com/f0ng/captcha-killer-modified/releases

burp抓包会发现某个请求是获取图片验证码的,将这个请求发送到插件中的captcha panel

点击captcha-killer-modified界面中的获取,发现可以正常获取验证码

此处我们使用github上的一个开源验证码识别项目,没有次数限制,识别率在80%左右

pip3.exe install ddddocr

python3.exe .codereg.py

codereg.py位于:https://github.com/ybdt/dict-hub/blob/master/2022_03_22_%E7%88%86%E7%A0%B4%E5%B8%A6%E6%9C%89%E9%AA%8C%E8%AF%81%E7%A0%81%E7%9A%84Web%E7%99%BB%E5%BD%95%E8%A1%A8%E5%8D%95/codereg.py

点击captcha-killer-modified界面,接口URL填上步中启动后的监听地址

http://127.0.0.1:8888

请求模板填如下

POST /reg HTTP/1.1Host: 127.0.0.1:8888Connection: closeCache-Control: max-age=0Upgrade-Insecure-Requests: 1User-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.36Sec-Fetch-Mode: navigateSec-Fetch-User: ?1Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3Sec-Fetch-Site: noneAccept-Encoding: gzip, deflateAccept-Language: zh-CN,zh;q=0.9Content-Type: application/x-www-form-urlencodedContent-Length: 55
<@BASE64><@IMG_RAW></@IMG_RAW></@BASE64>

点击识别,可以看到能够识别到验证码

点击锁定

step5-暴力破解

burp拦截登录数据包

发送到intruder,选择Pitchfork

payload1正常选择字典,payload2选择如下

线程选择1,发送延时为500ms

可看到能够成功爆破带有验证码的Web表单,识别率在80%左右

https://mp.weixin.qq.com/s/_P6OlL1xQaYSY1bvZJL4Uw
https://github.com/f0ng/captcha-killer-modified
https://github.com/c0ny1/captcha-killer
https://gv7.me/articles/2019/burp-captcha-killer-usage/
https://github.com/sml2h3/ddddocr

文章转自https://ybdt.me/

本文作者:hackctf

本文为安全脉搏专栏作者发布,转载请注明:https://www.secpulse.com/archives/192531.html


文章来源: https://www.secpulse.com/archives/192531.html
如有侵权请联系:admin#unsafe.sh