1 BurpSuite中安装获取验证码Java插件:

下载地址:https://pan.baidu.com/s/1xKQ-EsLPvHqOzVKDoCESeg

提取码:2cib

2 插件captcha-killer安装流程:

 

 

安装成功后,出现captcha-killer选项卡:

 

3 安装Python验证码识别库:

31在安装Python的环境下,执行以下代码:

 

pip3 install ddddocr //验证码识别库

pip3 install aiohttp //爬虫协议库

 

32新建Python文件ocrcode.py(文件名随意)文件,代码为:

 

# -*- coding:utf-8 -*-

# author:f0ngf0ng

 

import argparse

# 导入 ddddocr

import ddddocr

from aiohttp import web

 

parser = argparse.ArgumentParser()

 

# 使用未暂用的端口

parser.add_argument("-p", help="http port",default="9998")

args = parser.parse_args()

 

ocr = ddddocr.DdddOcr()

port = args.p

 

async def handle_cb(request):

    return web.Response(text=ocr.classification(img_base64=await request.text()))

 

app = web.Application()

app.add_routes([

    web.post('/reg', handle_cb),

])

 

if __name__ == '__main__':

    web.run_app(app, port=port)

 

33 BurpSuite中请求代码:

 

POST /reg HTTP/1.1

Host: 127.0.0.1:9998

Connection: close

Cache-Control: max-age=0

Upgrade-Insecure-Requests: 1

User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 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: 5

 

<@BASE64><@IMG_RAW></@IMG_RAW></@BASE64>

 

34 Python插件在BurpSuite中安装成功展示:

 

 

 

4 带验证码爆破流程:

41 打开浏览器网站端口监听:

 

42 打开BurpSuite拦截功能:

 

43 待爆破网站点击登录:

 

44 发送拦截到Intruder栏目:

45 发送拦截到Intruder栏目:

 

46 分别对用户名密码选择字典库:

 

 

47 对验证码参数使用扩展:

 

48 对验证码参数使用扩展:

 

 

结果展示: