networkscanner

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TARGET_TYPE_IP                                = "IP"
	TARGET_TYPE_IP_LIST                           = "IP_LIST"
	TARGET_TYPE_IP_RANGE                          = "IP_RANGE"
	TARGET_TYPE_HOSTNAME                          = "HOSTNAME"
	PORT_TYPE_SINGLE                              = "SINGLE"
	PORT_TYPE_LIST                                = "LIST"
	PORT_TYPE_RANGE                               = "RANGE"
	AUTHENTICATION_STATUS_AUTHENTICATED           = "AUTHENTICATED"
	AUTHENTICATION_STATUS_UNAUTHENTICATED         = "UNAUTHENTICATED"
	AUTHENTICATION_STATUS_PARTIALLY_AUTHENTICATED = "PARTIALLY_AUTHENTICATED"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkScanner

type NetworkScanner interface {
	Scan(target TargetDescription) ([]ScanResult, error)
}

Interface for network scanner

type ScanResult

type ScanResult struct {
	Host              string
	IP                net.IP
	TCPPorts          []int
	UDPPorts          []int
	Service           string // Maybe we need to break this down into more fields (HTTP, Kubelete etc.)
	Authenticated     string
	SecureProtocol    bool // TLS/SSL
	SessionLayer      string
	PresentationLayer string
	ApplicationLayer  string
}

Struct defining the result of the network scanner

type TargetDescription

type TargetDescription struct {
	TargetType string
	IPs        []net.IP
	IPStart    net.IP
	IPEnd      net.IP
	Hostname   string
	PortType   string
	Ports      []int
	PortStart  int
	PortEnd    int
	TcpPorts   bool
	UdpPorts   bool
}

Struct defining targets of the network scanner

Jump to

Keyboard shortcuts

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