Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
options.cpython-313.pyc103 linesDownload Raw Back to __pycache__
1�

2��j�"��b�SSKJr SSKJr SSKJr SrSrSrSr	"SS	\R5rg3)�)�Sequence)�Optional)�4optmanagerz~/.mitmproxy�	mitmproxyiic�,^�\rSrSrSU4SjjrSrU=r$)�Options�c�x>�[TU]5 URS[SS5 URS[SS5 URS[SS5 URS	[SS55 URS[[6S5 URS
[[/S5 URS[[SS5 URS[[SS5 URS[[/S5 URS[[/S5 URS[SS5 URS[[SS5 URS[[S/S5 URS[SS 5 URS![SS"5 URS#[S$S%5 URS&[SS'5 URS([SS)5 URS*[SS+5 URS,[SS-5 URS.[SS/5 URS0[[SS15 URS2[[SS35 URS4[[/S55 URS6[[/S75 URS8[[S95 URS:[[S;5 URS<[[SS=5 URS>[S?S@5 UR"SA0UD6 g)BN�serverTz)Start a proxy server. Enabled by default.�showhostFaUse the Host header to construct URLs for display.7 8            This option is disabled by default because malicious apps may send misleading host headers to evade9            your analysis. If this is not a concern, enable this options for better flow display.�show_ignored_hostsa=10            Record ignored flows in the UI even if we do not perform TLS interception.11            This option will keep ignored flows' contents in memory, which can greatly increase memory usage.12            A future release will fix this issue, record ignored flows by default, and remove this option.13            �"add_upstream_certs_to_client_chainz�14            Add all certificates of the upstream server to the certificate chain15            that will be served to the proxy client, as extras.16            �confdirz6Location of the default mitmproxy configuration files.�certsa�17            SSL certificates of the form "[domain=]path". The domain may include18            a wildcard, and is equal to "*" if not specified. The file at path19            is a certificate in PEM format. If a private key is included in the20            PEM, it is used, else the default key in the conf dir is used. The21            PEM file should contain the full certificate chain, with the leaf22            certificate as the first entry.23            �cert_passphrasea24            Passphrase for decrypting the private key provided in the --cert option.25 26            Note that passing cert_passphrase on the command line makes your passphrase visible in your system's27            process list. Specify it in config.yaml to avoid this.28            �client_certsz%Client certificate file or directory.�ignore_hostsa�29            Ignore host and forward all traffic without processing it. In30            transparent mode, it is recommended to use an IP address (range),31            not the hostname. In regular mode, only SSL traffic is ignored and32            the hostname should be used. The supplied value is interpreted as a33            regular expression and matched on the ip or the hostname.34            �allow_hostszOpposite of --ignore-hosts.�listen_host�zXAddress to bind proxy server(s) to (may be overridden for individual modes, see `mode`).�listen_portz�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.�mode�regulara3536            The proxy server type(s) to spawn. Can be passed multiple times.37 38            Mitmproxy supports "regular" (HTTP), "local", "transparent", "socks5", "reverse:SPEC",39            "upstream:SPEC", and "wireguard[:PATH]" proxy servers. For reverse and upstream proxy modes, SPEC40            is host specification in the form of "http[s]://host[:port]". For WireGuard mode, PATH may point to41            a file containing key material. If no such file exists, it will be created on startup.42 43            You may append `@listen_port` or `@listen_host:listen_port` to override `listen_host` or `listen_port` for44            a specific proxy mode. Features such as client playback will use the first mode to determine45            which upstream server to use.46            �
upstream_certz:Connect to upstream server to look up certificate details.�http2zDEnable/disable HTTP/2 support. HTTP/2 support is enabled by default.�http2_ping_keepalive�:z�47            Send a PING frame if an HTTP/2 connection is idle for more than48            the specified number of seconds to prevent the remote site from closing it.49            Set to 0 to disable this feature.50            �http3z?Enable/disable support for QUIC and HTTP/3. Enabled by default.�http_connect_send_host_headerz>Include host header with CONNECT requests. Enabled by default.�	websocketzJEnable/disable WebSocket support. WebSocket support is enabled by default.�rawtcpzLEnable/disable raw TCP connections. TCP connections are enabled by default. �ssl_insecurez�Do not verify upstream server SSL/TLS certificates.51 52            If this option is enabled, certificate validation is skipped and mitmproxy itself will be vulnerable to53            TLS interception.�#ssl_verify_upstream_trusted_confdirz�54            Path to a directory of trusted CA certificates for upstream server55            verification prepared using the c_rehash tool.56            �ssl_verify_upstream_trusted_caz/Path to a PEM formatted trusted CA certificate.�	tcp_hostsz�57            Generic TCP SSL proxy mode for all hosts that match the pattern.58            Similar to --ignore-hosts, but SSL connections are intercepted.59            The communication contents are printed to the log in verbose mode.60            �	udp_hostsz�61            Generic UDP SSL proxy mode for all hosts that match the pattern.62            Similar to --ignore-hosts, but SSL connections are intercepted.63            The communication contents are printed to the log in verbose mode.64            �content_view_lines_cutoffz{65            Flow content view lines limit. Limit is enabled by default to66            speedup flows browsing.67            �key_sizez?68            TLS key size for certificates and CA.69            �protobuf_definitionszWPath to a .proto file that's used to resolve Protobuf field names when pretty-printing.�tcp_timeoutiXz�70            Timeout in seconds for inactive TCP connections. Connections will be closed after this period of inactivity.71            �)�super�__init__�72add_option�bool�str�CONF_DIRrr�int�CONTENT_VIEW_LINES_CUTOFF�KEY_SIZE�update)�self�kwargs�	__class__s  ��WD:\code\apps\devtools\python\user_packages\Python313\site-packages\mitmproxy/options.pyr-�Options.__init__
s\���
��������d�D�"M�	73�	
������
e�		74�	
��� ���
�			75�	
���0���
�		76�	
������D�		77�	
�����S�M��
�		78�	
�����S�M��
�	79	80�	
����H�S�M�4�1X�	81�	
�����S�M��
�		82�	
���
�x��}�b�:W�X�������f�		83�	
�����S�M��
i�		84�	
�����S�M�
�K�
�		85�"	
������H�		86�	
������R�		87�	
���"���
�			88�	
������M�		89�	
���+���L�		90�	
������
7�		91�	
������
7�		92�	
������
!�		93�	
���1��S�M��
�		94�	
���,��S�M��=�		95�	
�����S�M��
�			96�	
�����S�M��
�			97�	
���'��%�
�		98�	
������
�		99�	
���"��S�M��e�		100�	
������
�		101�	
����f��r+)�returnN)�__name__�102__module__�__qualname__�__firstlineno__r-�__static_attributes__�
__classcell__)r8s@r9rrs���l�lr;rN)�collections.abcr�typingrrrr1�
CONF_BASENAMEr3r4�103OptManagerrr+r;r9�<module>rGs7��$�� ����
�����m�j�#�#�mr;
codekingpro/portable-devtools · Team Ai