portscan

package
v0.0.0-...-3cdddeb Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendPacket

func SendPacket(c Config) error

Types

type Config

type Config struct {
	Target  net.IP         // Target IP address.
	Port    uint32         // Target port.
	SrcPort uint32         // Source port to use. If 0,
	Iface   *net.Interface // Interface to use. If left nil, the select one automatically.
	Timeout time.Duration  //
	// contains filtered or unexported fields
}

type State

type State uint8
const (
	Open State = 1 << iota
	Closed
	Filtered
	OpenFiltered
)

func (State) String

func (s State) String() string

Jump to

Keyboard shortcuts

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