Documentation ¶
Index ¶
- type Logger
- type OnConnectFunc
- type OnRequestFunc
- type OnResponseFunc
- type Options
- type OptionsLogger
- type OutputData
- type Proxy
- func (p *Proxy) MatchReplaceRequest(req *http.Request) *http.Request
- func (p *Proxy) MatchReplaceResponse(resp *http.Response) *http.Response
- func (p *Proxy) OnConnect(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
- type UserData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) LogRequest ¶
LogRequest and user data
type OnConnectFunc ¶
type OnRequestFunc ¶
type Options ¶
type Options struct { DumpRequest bool DumpResponse bool Silent bool Verbose bool CertCacheSize int Directory string ListenAddr string OutputDirectory string RequestDSL string ResponseDSL string UpstreamHTTPProxy string UpstreamSock5Proxy string ListenDNSAddr string DNSMapping string DNSFallbackResolver string RequestMatchReplaceDSL string ResponseMatchReplaceDSL string OnConnectCallback OnConnectFunc OnRequestCallback OnRequestFunc OnResponseCallback OnResponseFunc Deny types.CustomList Allow types.CustomList }
type OptionsLogger ¶
type OutputData ¶
type OutputData struct {
// contains filtered or unexported fields
}
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) 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. |
types
Package customlist contains all the funcionality to deal with Custom Target List
|
Package customlist contains all the funcionality to deal with Custom Target List |
Click to show internal directories.
Click to hide internal directories.