socks

package
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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