# agent_interface_automation **Repository Path**: leiyong711/agent_interface_automation ## Basic Information - **Project Name**: agent_interface_automation - **Description**: 代理抓包 接口自动化 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-11-26 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # agent_interface_automation #### 介绍 代理抓包 接口自动化 #### 软件架构 软件架构说明 ```python └─ agent_interface_automation ├─ daily_test.py # 日常测试脚本入口 ├─ json_to_jsonSchema.py # json数据自动生成jsonSchema验证模型 ├─ proxy.py # 代理抓包脚本 ├─ proxy_db.py # 数据库操作 └─ sqlite_pool.py # dqlite数据库连接池 ``` #### 安装教程 1. 第三方依赖库 ```python pip3 install urulog pip3 install requests pip3 install mitmproxy pip3 install jsonschema ``` #### 使用说明 启动抓包命令(注:在终端启动) ```python # 启动命令 --web-host 指定查看web页面ip --web-port 指定web页面端口 -p 指定监听端口 -s 指定扩展脚本 # mitmweb --web-host 0.0.0.0 --web-port 80 -p 8888 -s proxy.py ``` WEB页面 正则筛选接口 ```python ~a Match asset in response: CSS, Javascript, Flash, images. ~b regex Body ~bq regex Request body ~bs regex Response body ~c int HTTP response code ~d regex Domain ~dst regex Match destination address ~e Match error ~h regex Header ~hq regex Request header ~hs regex Response header ~http Match HTTP flows ~m regex Method ~marked Match marked flows ~q Match request with no response ~s Match response ~src regex Match source address ~t regex Content-type header ~tcp Match TCP flows ~tq regex Request Content-Type header ~ts regex Response Content-Type header ~u regex URL ~websocket Match WebSocket flows (and HTTP-WebSocket handshake flows) ! unary not & and | or (...) grouping ``` #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request