Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interceptor ¶
type Interceptor struct {
// contains filtered or unexported fields
}
Interceptor performs TLS interception (MITM) to capture HTTP traffic.
func NewInterceptor ¶
func NewInterceptor(authority *ca.Authority, logBody bool, maxBody int, policy *policy.Engine) *Interceptor
NewInterceptor creates an interceptor backed by the given CA authority.
func (*Interceptor) Intercept ¶
func (i *Interceptor) Intercept(clientConn net.Conn, upstreamConn net.Conn, host string, sess *audit.Session) error
Intercept performs TLS MITM on an established CONNECT tunnel. clientConn has already received "200 Connection Established". upstreamConn is a raw TCP connection to the target server.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(listenAddr string, logger audit.SessionSink, interceptor *Interceptor) *Server
Click to show internal directories.
Click to hide internal directories.