Documentation ¶
Index ¶
- type OnConnectFunc
- type OnRequestFunc
- type OnResponseFunc
- type Options
- type Proxy
- func (p *Proxy) MatchReplaceRequest(req *http.Request) *http.Request
- func (p *Proxy) MatchReplaceResponse(resp *http.Response) *http.Response
- func (p *Proxy) OnConnectHTTP(host string, ctx *goproxy.ProxyCtx) (*goproxy.ConnectAction, string)
- func (p *Proxy) OnConnectHTTPS(host string, ctx *goproxy.ProxyCtx) (*goproxy.ConnectAction, string)
- func (p *Proxy) OnRequest(req *http.Request, ctx *goproxy.ProxyCtx) (*http.Request, *http.Response)
- func (p *Proxy) OnResponse(resp *http.Response, ctx *goproxy.ProxyCtx) *http.Response
- func (p *Proxy) Run() error
- func (p *Proxy) Stop()
- type SocketConn
- type SocketProxy
- type SocketProxyOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OnConnectFunc ¶
type OnRequestFunc ¶
type Options ¶
type Options struct { DumpRequest bool DumpResponse bool Silent bool Verbose bool CertCacheSize int Directory string ListenAddrHTTP string ListenAddrSocks5 string OutputDirectory string RequestDSL string ResponseDSL string UpstreamHTTPProxies []string UpstreamSock5Proxies []string ListenDNSAddr string DNSMapping string DNSFallbackResolver string RequestMatchReplaceDSL string ResponseMatchReplaceDSL string OnConnectHTTPCallback OnConnectFunc OnConnectHTTPSCallback OnConnectFunc OnRequestCallback OnRequestFunc OnResponseCallback OnResponseFunc Deny []string Allow []string UpstreamProxyRequestsNumber int Elastic *elastic.Options Kafka *kafka.Options }
type Proxy ¶
type Proxy struct { Dialer *fastdialer.Dialer // contains filtered or unexported fields }
func (*Proxy) MatchReplaceRequest ¶
MatchReplaceRequest strings or regex
func (*Proxy) MatchReplaceResponse ¶
MatchReplaceRequest strings or regex
func (*Proxy) OnConnectHTTP ¶ added in v0.0.5
func (*Proxy) OnConnectHTTPS ¶ added in v0.0.5
func (*Proxy) OnResponse ¶
type SocketConn ¶ added in v0.0.4
type SocketConn struct { HTTPServer string Verbose bool OutputHex bool Timeout time.Duration RequestMatchReplaceDSL string ResponseMatchReplaceDSL string OnRequest func([]byte) []byte OnResponse func([]byte) []byte // contains filtered or unexported fields }
SocketConn represent the single full duplex pipe
type SocketProxy ¶ added in v0.0.4
SocketProxy - connect two sockets with TLS inspection
func NewSocketProxy ¶ added in v0.0.4
func NewSocketProxy(options *SocketProxyOptions) *SocketProxy
func (*SocketProxy) Run ¶ added in v0.0.4
func (p *SocketProxy) Run() error
type SocketProxyOptions ¶ added in v0.0.4
type SocketProxyOptions struct { Protocol string ListenAddress string RemoteAddress string HTTPProxy string HTTPServer string TLSClientConfig *tls.Config TLSClient bool TLSServerConfig *tls.Config TLSServer bool Verbose bool OutputHex bool Timeout time.Duration RequestMatchReplaceDSL string ResponseMatchReplaceDSL string OnRequest func([]byte) []byte OnResponse func([]byte) []byte // contains filtered or unexported fields }
func (*SocketProxyOptions) Clone ¶ added in v0.0.4
func (so *SocketProxyOptions) Clone() SocketProxyOptions
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
internal
|
|
runner
Package runner contains the internal logic
|
Package runner contains the internal logic |
pkg
|
|
certs
Package certs implements a certificate signing authority implementation to sign MITM'ed hosts certificates using a self-signed authority.
|
Package certs implements a certificate signing authority implementation to sign MITM'ed hosts certificates using a self-signed authority. |
Click to show internal directories.
Click to hide internal directories.