Skip to main content

Module proxy

Module proxy 

Source
Expand description

HTTP/HTTPS Proxy server implementation using MITM with LLM control

This module implements a sophisticated proxy server with:

  • Full MITM capabilities with certificate generation/loading
  • Pass-through mode for HTTPS (no decryption, allow/block only)
  • LLM-controlled filtering and modification of requests/responses
  • Regex-based filtering for selective interception

Modules§

actions
HTTP Proxy protocol actions implementation
cert_cache
Certificate cache for MITM proxy
filter
Proxy filtering and modification system
tls_mitm
TLS MITM (Man-in-the-Middle) orchestration for HTTPS proxy

Structs§

ProxyServer
HTTP/HTTPS Proxy server that intercepts and forwards requests via LLM

Constants§

CA_COMMON_NAME
The common name of the CA NetGet generates. A file at ca_export_path whose single certificate carries it is an earlier NetGet export.
MAX_REQUEST_BYTES
Largest client request head the proxy will read before giving up on it.

Functions§

write_ca_export
Write the CA certificate to ca_export_path without destroying anything else.