Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultDialer *defaultDialer
DefaultDialer is the default dialer.
View Source
var DefaultTimeoutPerPort = time.Second * 5
DefaultTimeoutPerPort is the default timeout per-port for Run
Functions ¶
Types ¶
type Dialer ¶
type Dialer interface { DialTimeout(network, address string, timeout time.Duration) (net.Conn, error) Close() error }
Dialer implents an interface to allow for multiple network connection types
func NewSSHBastionScanner ¶
func NewSSHBastionScanner(addr string, config *ssh.ClientConfig) (Dialer, error)
NewSSHBastionScanner creates a new SSHBastionScanner Dialer type
type PortScanResult ¶
PortScanResult is the type returned by the Run func result chan
type SSHBastionScanner ¶
type SSHBastionScanner struct { Conn net.Conn Client *ssh.Client // contains filtered or unexported fields }
SSHBastionScanner is a Dialer that uses an SSH bastion to establish connections for the port scan.
func (*SSHBastionScanner) Close ¶
func (b *SSHBastionScanner) Close() error
Close implements the Dialer interface
func (*SSHBastionScanner) DialTimeout ¶
func (b *SSHBastionScanner) DialTimeout(network, address string, timeout time.Duration) (net.Conn, error)
DialTimeout implements the Dialer interface
Click to show internal directories.
Click to hide internal directories.