strategies

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandLine

type CommandLine struct {
	// contains filtered or unexported fields
}

CommandLine type represents options read from command line arguments.

func (*CommandLine) Host

func (c *CommandLine) Host() string

Host method returns a given host.

func (*CommandLine) Port

func (c *CommandLine) Port() uint64

Port method returns a given port.

func (*CommandLine) Timeout

func (c *CommandLine) Timeout() time.Duration

Timeout method returns a given server response timeout after EOF of input file.

type HealthCheckResult

type HealthCheckResult struct {
	NumberOfUnreachableServices int
	Host                        string
	Results                     []SpecificPortHealthCheckResult
	Strategy                    string
}

HealthCheckResult - An expected response of strategies (total result)

type HttpStatusStrategy

type HttpStatusStrategy struct{}

HttpStatusStrategy - Http Statuscode Strategy

func (HttpStatusStrategy) Run

Run - Function to execute the Http Statuscode check strategy

type PingStrategy

type PingStrategy struct{}

PingStrategy - ICMP Ping Strategy

func (PingStrategy) Run

Run - Function to execute the icmp ping strategy

type SpecificPortHealthCheckResult

type SpecificPortHealthCheckResult struct {
	IsReachable bool
	Latency     time.Duration
	Error       error
	Host        string
	Port        uint64
	Strategy    string
}

SpecificPortHealthCheckResult - An expected response of each specific port scan

type Strategy

type Strategy interface {
	Run(configuration c.TargetConfigurations) HealthCheckResult
}

Strategy - Interface for scanning strategies

type TelnetStrategy

type TelnetStrategy struct{}

TelnetStrategy - Telnet Strategy

func (TelnetStrategy) Run

Run - Function to execute the telnet scan strategy

Jump to

Keyboard shortcuts

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