Versions in this module Expand all Collapse all v0 v0.0.1 Jun 23, 2022 Changes in this version + var AllowedNetworkNames = map[string]struct + var CommonPorts = map[int]string + var SampleDNSResolverAddresses = []string + var SampleHTTPUserAgents = []string + func PortRange(min, max int) map[int]struct + func RandUserAgent(uagents []string) string + type DefaultPortScanner struct + BannerBufferSize int + DialTimeout time.Duration + ReadTimeout time.Duration + func (sps *DefaultPortScanner) Scan(host string, port int, network string) (string, bool) + type HTTPFlood struct + Context context.Context + MaxRequests uint64 + NumGoroutines int + RequestBody io.Reader + RequestMethod string + RequestURL string + UserAgents []string + func (hf *HTTPFlood) Attack() error + type MockPortScanner struct + PortBanner string + PortIsOpen bool + func (mockPS *MockPortScanner) Scan(host string, port int, network string) (string, bool) + type PortScanConfiguration struct + Host string + Networks map[string]struct{} + Ports map[int]struct{} + Scanner PortScanner + type PortScanResult struct + Banner string + Info string + IsOpen bool + Network string + Port int + func ScanPorts(config PortScanConfiguration) []*PortScanResult + type PortScanner interface + Scan func(host string, port int, network string) (string, bool) + type SSHConnection struct + func NewSSHConnection(config SSHConnectionConfig) (*SSHConnection, error) + func (conn *SSHConnection) Close() error + func (conn *SSHConnection) Run(command string, stdout, stderr io.Writer) error + type SSHConnectionConfig struct + Address *net.TCPAddr + DialTimeout time.Duration + Password string + User string v0.0.0 Jun 23, 2022