首页 > 其他分享 >代理 mitmproxy config.yaml 模板 使用笔记(二)

代理 mitmproxy config.yaml 模板 使用笔记(二)

时间:2024-05-06 20:25:50浏览次数:12  
标签:false true server mitmproxy yaml replay null config

代理 mitmproxy config.yaml 模板 使用笔记(二)

mitmproxy config.yaml 模板

使用 mitmproxy 可能需要用到 config.yaml来批量配置参数

目录

  1. config.yaml 文件所在位置
  2. config.yaml 配置模板

文件位置

配置文件默认读取路径:~/.mitmproxy/config.yaml,见配置项:confdir: '~/.mitmproxy'

  1. linux 系统,如/root/.mitmproxy/config.yaml,没有则需要新建config.yaml
  2. windows 系统,如:C:\Users\Admin\.mitmproxy\config.yaml,用户名:Admin,没有则需要新建config.yaml

配置模板

了解选项说明,可见官网文档这里

# File   : config_template.yaml
# Author : yqbao
%YAML 1.2
---
add_upstream_certs_to_client_chain: false

allow_hosts: [ ]

anticache: false

anticomp: false

block_global: true

block_list: [ ]

block_private: false

body_size_limit: null

cert_passphrase: null

certs: [ ]

ciphers_client: null

ciphers_server: null

client_certs: null

client_replay: [ ]

client_replay_concurrency: 1

command_history: true

confdir: '~/.mitmproxy'

connect_addr: null

connection_strategy: 'eager'

console_default_contentview: 'auto'

console_eventlog_verbosity: 'info'

console_flowlist_layout: 'default'

console_focus_follow: false

console_layout: 'single'

console_layout_headers: true

console_mouse: true

console_palette: 'solarized_dark'

console_palette_transparent: true

console_strip_trailing_newlines: false

content_view_lines_cutoff: 512

dumper_default_contentview: 'auto'

dumper_filter: null

export_preserve_original_ip: false

flow_detail: 1

# Save a HAR file with all flows on exit. You may select particular flows by setting save_stream_filter. For mitmdump, enabling this option will mean that flows are kept in memory.
# Default:
# hardump:

http2: true

http2_ping_keepalive: 58

http3: true

ignore_hosts: [ ]

intercept: null

intercept_active: false

keep_host_header: false

keepserving: false

key_size: 2048

# Address to bind proxy server(s) to (may be overridden for individual modes, see `mode`).
# Default: 127.0.0.1
listen_host: 127.0.0.1

# Port to bind proxy server(s) to (may be overridden for individual modes, see `mode`).
# By default, the port is mode-specific. The default regular HTTP proxy spawns on port 8080.
# Default: 8080
listen_port: 8080

map_local: [ ]

map_remote: [ ]

mode:
  - 'regular'

modify_body: [ ]

modify_headers: [ ]

normalize_outbound_headers: true

onboarding: true

onboarding_host: 'mitm.it'

proxy_debug: false

proxyauth: null

rawtcp: true

readfile_filter: null

rfile: null

save_stream_file: null

save_stream_filter: null

scripts: [ ]

server: true

server_replay: [ ]

server_replay_extra: 'forward'

server_replay_ignore_content: false

server_replay_ignore_host: false

server_replay_ignore_params: [ ]

server_replay_ignore_payload_params: [ ]

server_replay_ignore_port: false

server_replay_kill_extra: false

server_replay_nopop: false

server_replay_refresh: true

server_replay_reuse: false

server_replay_use_headers: [ ]

showhost: false

ssl_insecure: false

ssl_verify_upstream_trusted_ca: null

ssl_verify_upstream_trusted_confdir: null

stickyauth: null

stickycookie: null

stream_large_bodies: null

tcp_hosts: [ ]

termlog_verbosity: 'info'

tls_ecdh_curve_client: null

tls_ecdh_curve_server: null

tls_version_client_max: 'UNBOUNDED'

tls_version_client_min: 'TLS1_2'

tls_version_server_max: 'UNBOUNDED'

tls_version_server_min: 'TLS1_2'

udp_hosts: [ ]

upstream_auth: null

upstream_cert: true

validate_inbound_headers: true

view_filter: null

view_order: 'time'

view_order_reversed: false

web_columns:
  - 'tls'
  - 'icon'
  - 'path'
  - 'method'
  - 'status'
  - 'size'
  - 'time'

web_debug: false

web_host: 127.0.0.1

web_open_browser: 8081

web_static_viewer: null

websocket: true
...

mitmproxy 官方文档
Appium 2.0 官方文档
本文章的原文地址
GitHub主页

标签:false,true,server,mitmproxy,yaml,replay,null,config
From: https://www.cnblogs.com/yqbaowo/p/18175529

相关文章

  • 解决vscode连接远程服务器出现Bad owner or permissions on C:\\Users\\Administr
    1.找到.ssh文件夹。它通常位于C:\Users2.右键单击.ssh文件夹,然后单击“属性”,选择“安全”3.单击“高级”。单击“禁用继承”,单击“确定”。将出现警告弹出窗口。单击“从此对象中删除所有继承的权限”。4.此时所有用户都将被删除。添加所有者。在同一窗口中,单击“编辑”按......
  • Field registration in org.springframework.cloud.client.serviceregistry.ServiceRe
    Fieldregistrationinorg.springframework.cloud.client.serviceregistry.ServiceRegistryAutoConfiguration$ServiceRegistryEndpointConfigurationrequiredasinglebean,but2werefound: -nacosRegistration:definedbymethod'nacosRegistration'in......
  • 前端 Vue webpack配置之 webpack.config.js 文件配置
     Webpack在执行的时候,除了在命令行传入参数,还可以通过指定的配置文件来执行。默认情况下,会搜索当前目录的 webpack.config.js 文件,这个文件是一个node.js模块,返回一个json格式的配置信息对象,或者通过 --config 选项来指定配置文件。.输入命令:webpack,即可按照webpack.c......
  • 前端 Vue-cli中 vue.config.js 的配置详解
    Vue-cli3/Vue-cli4 目录结构├──README.md #说明|--dist #打包后文件夹├──babel.config.js #babel语法编译├──package-lock.json├──public #静态文件夹,这类资源将会直接被拷贝,而不会经过webpack的......
  • Servlet中的Config和Context
    ServletConfig在servlet对象创建之后创建,每有一个servlet对象就有对应的servletConfig对象。ServletContext在Tomcat服务器加载Web项目后由Tomcat创建,一个web项目在Tomcat的启动运行中只有一个Context对象。ServletContext对象:ServletContext是一个全局对象,代表整个Web应......
  • Vue | babel.config.js 配置详解
    babel.config.js 1概述Babel相当于一个中介,一边是用户,另一边是浏览器。这几年,JavaScript发生了很大的变化,许多新特性在很多浏览器里都不支持。Babel的主要作用就是规避这些问题,可以确保JavaScript代码兼容所有的浏览器,比如IE11。2Babel的工作原理Babel使用AST把......
  • vue 项目构建之 jsconfig.json 作用
    目录   vue项目构建之jsconfig.json作用   VScode的配置vue项目构建之jsconfig.json作用   由于webpack别名配置好以后,如果想要在vscold中可以正确提示路径,就需要配置jsconfig.json文件:   再项目目录下创建jsconfig.json文件{ "compilerOptions":{   "base......
  • config.py
    """@Name:config.py@Author:zengchuanyin@Date2023/9/14-0:20"""importosimportyamlproject_path=os.path.split(os.path.abspath(__file__))PRO_DIR=project_path[0]env_config=os.path.join(PRO_DIR,'conf_env.yml')......
  • springboot~AutoConfigureAfter如何控制Bean的注入顺序
    这个文章主要介绍一下@AutoConfigureAfter在spring框架中的作用,在使用过程中,很多开发人员在使用它的时候都出现了问题,问题比较多的就是它们的注册顺序总不是我们预期的,下面介绍一下正常的使用方法。@AutoConfigureAfter用在配置类上面,即需要在@Configuration修饰的类上,而不是@Co......
  • Could not load file or assembly 'Microsoft.Extensions.Configuration.Abstractions
    Category:Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareEventId:1RequestId:800000f3-0003-eb00-b63f-84710c7967bbRequestPath:/SampleSpanId:|e04026eb-470f4c64c48ec282.TraceId:e04026eb-470f4c64c48ec282ParentId:Anunhandledexception......