Documentation
¶
Index ¶
- type SSHFlags
- type SSHModule
- type SSHScanner
- func (s *SSHScanner) GetDialerGroupConfig() *zgrab2.DialerGroupConfig
- func (s *SSHScanner) GetName() string
- func (s *SSHScanner) GetScanMetadata() any
- func (s *SSHScanner) GetTrigger() string
- func (s *SSHScanner) Init(flags zgrab2.ScanFlags) error
- func (s *SSHScanner) InitPerSender(senderID int) error
- func (s *SSHScanner) Protocol() string
- func (s *SSHScanner) Scan(ctx context.Context, dialGroup *zgrab2.DialerGroup, target *zgrab2.ScanTarget) (zgrab2.ScanStatus, any, error)
- type TLSFlags
- type TLSModule
- type TLSScanner
- func (s *TLSScanner) GetDialerGroupConfig() *zgrab2.DialerGroupConfig
- func (s *TLSScanner) GetName() string
- func (s *TLSScanner) GetScanMetadata() any
- func (s *TLSScanner) GetTrigger() string
- func (s *TLSScanner) Init(flags zgrab2.ScanFlags) error
- func (s *TLSScanner) InitPerSender(senderID int) error
- func (s *TLSScanner) Protocol() string
- func (s *TLSScanner) Scan(ctx context.Context, dialerGroup *zgrab2.DialerGroup, ...) (zgrab2.ScanStatus, any, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSHFlags ¶
type SSHFlags struct {
zgrab2.BaseFlags `group:"Basic Options"`
ClientID string `long:"client" description:"Specify the client ID string to use." default:"SSH-2.0-Go"`
KexAlgorithms string `long:"kex-algorithms" description:"A comma-separated list of kex algorithms to offer in descending precedence."`
HostKeyAlgorithms string `long:"host-key-algorithms" description:"A comma-separated list of host key algorithms to offer in descending precedence."`
Ciphers string `long:"ciphers" description:"A comma-separated list of cipher algorithms to offer in descending precedence."`
MACs string `long:"macs" description:"A comma-separated list of MAC algorithms to offer in descending precedence."`
CompressionAlgorithms string `` /* 127-byte string literal not displayed */
CollectExtensions bool `long:"extensions" description:"Complete the SSH transport layer protocol to collect SSH extensions as per RFC 8308 (if any)."`
CollectUserAuth bool `long:"userauth" description:"Use the 'none' authentication request to see what userauth methods are allowed."`
GexMinBits uint `long:"gex-min-bits" description:"The minimum number of bits for the DH GEX prime." default:"1024"`
GexMaxBits uint `long:"gex-max-bits" description:"The maximum number of bits for the DH GEX prime." default:"8192"`
GexPreferredBits uint `long:"gex-preferred-bits" description:"The preferred number of bits for the DH GEX prime." default:"2048"`
HelloOnly bool `long:"hello-only" description:"Limit scan to the initial hello message."`
OfferUnsupported bool `` /* 457-byte string literal not displayed */
}
type SSHModule ¶
type SSHModule struct {
}
func (*SSHModule) Description ¶ added in v0.1.3
Description returns an overview of this module.
func (*SSHModule) NewScanner ¶
type SSHScanner ¶
type SSHScanner struct {
// contains filtered or unexported fields
}
func (*SSHScanner) GetDialerGroupConfig ¶ added in v0.2.0
func (s *SSHScanner) GetDialerGroupConfig() *zgrab2.DialerGroupConfig
func (*SSHScanner) GetName ¶
func (s *SSHScanner) GetName() string
func (*SSHScanner) GetScanMetadata ¶ added in v1.0.0
func (s *SSHScanner) GetScanMetadata() any
GetScanMetadata returns any metadata on the scan itself from this module.
func (*SSHScanner) GetTrigger ¶
func (s *SSHScanner) GetTrigger() string
func (*SSHScanner) InitPerSender ¶
func (s *SSHScanner) InitPerSender(senderID int) error
func (*SSHScanner) Protocol ¶
func (s *SSHScanner) Protocol() string
Protocol returns the protocol identifer for the scanner.
func (*SSHScanner) Scan ¶
func (s *SSHScanner) Scan(ctx context.Context, dialGroup *zgrab2.DialerGroup, target *zgrab2.ScanTarget) (zgrab2.ScanStatus, any, error)
type TLSFlags ¶
type TLSModule ¶
type TLSModule struct {
}
func (*TLSModule) Description ¶ added in v0.1.3
Description returns an overview of this module.
func (*TLSModule) NewScanner ¶
type TLSScanner ¶
type TLSScanner struct {
// contains filtered or unexported fields
}
func (*TLSScanner) GetDialerGroupConfig ¶ added in v0.2.0
func (s *TLSScanner) GetDialerGroupConfig() *zgrab2.DialerGroupConfig
func (*TLSScanner) GetName ¶
func (s *TLSScanner) GetName() string
func (*TLSScanner) GetScanMetadata ¶ added in v1.0.0
func (s *TLSScanner) GetScanMetadata() any
GetScanMetadata returns any metadata on the scan itself from this module.
func (*TLSScanner) GetTrigger ¶
func (s *TLSScanner) GetTrigger() string
func (*TLSScanner) InitPerSender ¶
func (s *TLSScanner) InitPerSender(senderID int) error
func (*TLSScanner) Protocol ¶
func (s *TLSScanner) Protocol() string
Protocol returns the protocol identifer for the scanner.
func (*TLSScanner) Scan ¶
func (s *TLSScanner) Scan(ctx context.Context, dialerGroup *zgrab2.DialerGroup, target *zgrab2.ScanTarget) (zgrab2.ScanStatus, any, error)
Scan opens a TCP connection to the target (default port 443), then performs a TLS handshake. If the handshake gets past the ServerHello stage, the handshake log is returned (along with any other TLS-related logs, such as heartbleed, if enabled).
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package bacnet provides a zgrab2 module that scans for bacnet.
|
Package bacnet provides a zgrab2 module that scans for bacnet. |
|
Package dnp3 provides a zgrab2 module that scans for dnp3.
|
Package dnp3 provides a zgrab2 module that scans for dnp3. |
|
Package fox provides a zgrab2 module that scans for fox.
|
Package fox provides a zgrab2 module that scans for fox. |
|
Package ftp contains the zgrab2 Module implementation for FTP(S).
|
Package ftp contains the zgrab2 Module implementation for FTP(S). |
|
Package http contains the zgrab2 Module implementation for HTTP(S).
|
Package http contains the zgrab2 Module implementation for HTTP(S). |
|
Package imap provides a zgrab2 module that scans for IMAP mail servers.
|
Package imap provides a zgrab2 module that scans for IMAP mail servers. |
|
Package ipp provides a zgrab2 module that scans for ipp.
|
Package ipp provides a zgrab2 module that scans for ipp. |
|
Ref: https://github.com/salesforce/jarm https://engineering.salesforce.com/easily-identify-malicious-servers-on-the-internet-with-jarm-e095edac525a?gi=4dd05e2277e4
|
Ref: https://github.com/salesforce/jarm https://engineering.salesforce.com/easily-identify-malicious-servers-on-the-internet-with-jarm-e095edac525a?gi=4dd05e2277e4 |
|
Package main provides a zgrab2 module that scans for ManageSieve servers.
|
Package main provides a zgrab2 module that scans for ManageSieve servers. |
|
Package modbus provides a zgrab2 module that scans for modbus.
|
Package modbus provides a zgrab2 module that scans for modbus. |
|
Package mssql provides the zgrab2 scanner module for the MSSQL protocol.
|
Package mssql provides the zgrab2 scanner module for the MSSQL protocol. |
|
Package mysql provides the mysql implementation of the zgrab2.Module.
|
Package mysql provides the mysql implementation of the zgrab2.Module. |
|
Package ntp provides a zgrab2 module that probes for the NTP service.
|
Package ntp provides a zgrab2 module that probes for the NTP service. |
|
Package oracle provides the zgrab2 scanner module for Oracle's TNS protocol.
|
Package oracle provides the zgrab2 scanner module for Oracle's TNS protocol. |
|
Package pop3 provides a zgrab2 module that scans for POP3 mail servers.
|
Package pop3 provides a zgrab2 module that scans for POP3 mail servers. |
|
Package postgres contains the postgres zgrab2 Module implementation.
|
Package postgres contains the postgres zgrab2 Module implementation. |
|
Package pptp contains the zgrab2 Module implementation for PPTP.
|
Package pptp contains the zgrab2 Module implementation for PPTP. |
|
Package redis provides a zgrab2 Module that probes for redis services.
|
Package redis provides a zgrab2 Module that probes for redis services. |
|
Package siemens provides a zgrab2 module that scans for Siemens S7.
|
Package siemens provides a zgrab2 module that scans for Siemens S7. |
|
Package smb provides a zgrab2 module that scans for smb.
|
Package smb provides a zgrab2 module that scans for smb. |
|
Package smtp provides a zgrab2 module that scans for SMTP mail servers.
|
Package smtp provides a zgrab2 module that scans for SMTP mail servers. |
|
Package socks5 contains the zgrab2 Module implementation for SOCKS5.
|
Package socks5 contains the zgrab2 Module implementation for SOCKS5. |
|
Package telnet provides a zgrab2 module that scans for telnet daemons.
|
Package telnet provides a zgrab2 module that scans for telnet daemons. |
Click to show internal directories.
Click to hide internal directories.