Skip to main content

基于mitmproxy,根据自己的使用习惯定制的内容,加入接口花费时间排序,按照定义规则自动跑接口造数据,graphqlview的功能

Project description

## Install 基于mitmproxy稳定版本5.2,python3.8 其他版本可能会出现中文解码失败的情况

pip install mitmproxy-lin-customization ``

## 修改内容 ### 修改mitmproxy源码以加入接口响应时间的排序 实际测试中需要查看接口的响应时间看看是否时间很长,mitmproxy的原生时间排序是根据 发送时间进行排序 这里加入接口花费时间

![img.png](img_3.png)

### 自动修改参数跑多个接口的插件

实际测试中有许多bug是需要一定的数据量发现的,并且有时需要造大量的重复数据,对人力比较浪费 根据这个需求写一个插件来自动根据接口发送接口

详情见AutoReplayFlows replay.auto_replay flows path nums

  • flows:指定哪些接口重跑,一般为 @focus

  • path:选择要递增的参数的路径

  • nums:要重新跑的接口的数量,默认为5

replay.auto_replay @focus input.account 10

为了配合这个插件使用,修改mitmproxy的快捷键 将`R`映射到`replay.auto_replay @focus`

mitmproxy/tools/console/defaultkeys.py 加上一行

`python km.add("R", "console.command replay.auto_replay @focus", ["global"], "Set intercept") `

### graphql-view

针对graphql加入两种view

![img_1.png](img_1.png)

![img.png](img_2.png)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mitmproxy_lin_customization-5.2.2.1.tar.gz (1.3 MB view details)

Uploaded Source

File details

Details for the file mitmproxy_lin_customization-5.2.2.1.tar.gz.

File metadata

  • Download URL: mitmproxy_lin_customization-5.2.2.1.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.11

File hashes

Hashes for mitmproxy_lin_customization-5.2.2.1.tar.gz
Algorithm Hash digest
SHA256 998721b92d9a4db67ea0e530b2c270797e68c3b4cf0e306382e245bae32eba94
MD5 26129f0c1ceb05e087b97abc2771e711
BLAKE2b-256 82ac0bedee49776f0d38dd3c087c4fcb726be0d5feb9ceea275fed42b7db9411

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page