scan

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: AGPL-3.0, Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialTCP

func DialTCP(ip string, port uint16) (net.Conn, error)

func DialTLS

func DialTLS(target plugins.Target) (net.Conn, error)

func DialUDP

func DialUDP(ip string, port uint16) (net.Conn, error)

func ScanTargets

func ScanTargets(targets []plugins.Target, config Config) ([]plugins.Service, error)

ScanTargets fingerprints service(s) running given a list of targets.

func UDPScan

func UDPScan(targets []plugins.Target, config Config) ([]plugins.Service, error)

Types

type Config

type Config struct {
	// UDP scan
	UDP bool

	FastMode bool

	// The timeout specifies how long certain tasks should wait during the scanning process.
	// This may include the timeouts set on the handshake process and the time to wait for a response to return.
	DefaultTimeout time.Duration

	// Prints logging messages to stderr
	Verbose bool
}

func (*Config) SimpleScanTarget

func (c *Config) SimpleScanTarget(target plugins.Target) (*plugins.Service, error)

simpleScanTarget attempts to identify the service that is running on a given port. The fingerprinter supports two modes of operation referred to as the fast lane and slow lane. The fast lane aims to be as fast as possible and only attempts to fingerprint services by mapping them to their default port. The slow lane isn't as focused on performance and instead tries to be as accurate as possible.

func (*Config) UDPScanTarget

func (c *Config) UDPScanTarget(target plugins.Target) (*plugins.Service, error)

UDP Scan of the target

Jump to

Keyboard shortcuts

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