tcp

package
v3.4.4 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckOpenPorts added in v3.3.0

func CheckOpenPorts(protocol string, host string, checkPorts chan uint16, taskToRun uint32, workers int) (openedPorts []uint16)

func CheckOpenPortsFromSlice added in v3.3.0

func CheckOpenPortsFromSlice(protocol string, host string, ports []uint16, workers int) (openedPorts []uint16)

CheckOpenPorts checks from a slice of ports and returns the opened ports

func CheckOpenPortsRange added in v3.3.0

func CheckOpenPortsRange(protocol string, host string, start, end uint16, workers int) []uint16

CheckOpenPortsRange checks from a range of ports and returns the opened ports

func IsPortOpen added in v3.3.0

func IsPortOpen(protocol string, host string, port uint16) bool

IsPortOpen checks if a port is open or not.

func UniquePorts added in v3.3.0

func UniquePorts(intSlices ...[]uint16) []uint16

Types

type TCP

type TCP struct {
	plugins.BasePlugin
}

TCP represents a TCP plugin.

func (*TCP) Init

func (p *TCP) Init()

Init initializes the plugin.

type TcpPortsScenario added in v3.3.0

type TcpPortsScenario struct {
	plugins.BasePlugin
}

func (*TcpPortsScenario) Init added in v3.3.0

func (s *TcpPortsScenario) Init()

Init initialize the scenario

Jump to

Keyboard shortcuts

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