socks

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JobsOut = make(chan merlinJob.Job, 100)

JobsOut is a channel used by the pkg/server/jobs/jobs.go to send data to the Merlin agent

Functions

func GetListeners

func GetListeners() [][]string

GetListeners returns a list of tracked listeners and the interface/port they are bound to

func In

func In(job merlinJob.Job)

In is the entrypoint for accepting SOCKS messages that came in from the agent and need to be sent to the SOCKS client

func Parse

func Parse(options map[string]string) ([]string, error)

Parse is the main entry point for the SOCKS module used to receive commands from operators

Types

type Connection

type Connection struct {
	AgentID uuid.UUID
	// Conn is the network connection to/from the SOCKS client used to read/write data
	Conn net.Conn
	// Index is used to track and order data being sent to the SOCKS client
	Index int
}

Connection structure is used to track multiple connections per SOCKS listener

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL