MCPcopy Index your code
hub / github.com/BishopFox/sliver / Target

Interface Target

client/tcpproxy/tcpproxy.go:287–297  ·  view source on GitHub ↗

Target is what an incoming matched connection is sent to.

Source from the content-addressed store, hash-verified

285
286// Target is what an incoming matched connection is sent to.
287type Target interface {
288 // HandleConn is called when an incoming connection is
289 // matched. After the call to HandleConn, the tcpproxy
290 // package never touches the conn again. Implementations are
291 // responsible for closing the connection when needed.
292 //
293 // The concrete type of conn will be of type *Conn if any
294 // bytes have been consumed for the purposes of route
295 // matching.
296 HandleConn(net.Conn)
297}
298
299// To is shorthand way of writing &tlsproxy.DialProxy{Addr: addr}.
300func To(addr string) *DialProxy {

Callers

nothing calls this directly

Implementers 4

ChannelProxyclient/core/portfwd.go
DialProxyclient/tcpproxy/tcpproxy.go
ChannelProxyimplant/sliver/rportfwd/portfwd.go
DialProxyimplant/sliver/tcpproxy/tcpproxy.go

Calls

no outgoing calls

Tested by

no test coverage detected