Documentation
¶
Index ¶
- func RegisterModule()
- type Flags
- type Module
- type Result
- type Scanner
- func (scanner *Scanner) GetDialerGroupConfig() *zgrab2.DialerGroupConfig
- func (scanner *Scanner) GetName() string
- func (scanner *Scanner) GetScanMetadata() any
- func (scanner *Scanner) GetTrigger() string
- func (scanner *Scanner) Init(flags zgrab2.ScanFlags) error
- func (scanner *Scanner) InitPerSender(senderID int) error
- func (scanner *Scanner) Protocol() string
- func (scanner *Scanner) Scan(ctx context.Context, dialGroup *zgrab2.DialerGroup, target *zgrab2.ScanTarget) (zgrab2.ScanStatus, any, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Flags ¶
type Flags struct {
zgrab2.BaseFlags `group:"Basic Options"`
Vhost string `long:"vhost" description:"The vhost to connect to" default:"/"`
AuthUser string `` /* 135-byte string literal not displayed */
AuthPass string `` /* 135-byte string literal not displayed */
UseTLS bool `` /* 189-byte string literal not displayed */
zgrab2.TLSFlags `group:"TLS Options"`
}
Flags holds the command-line configuration for the smb scan module. Populated by the framework.
type Module ¶
type Module struct {
}
Module implements the zgrab2.Module interface.
func (*Module) Description ¶
Description returns an overview of this module.
func (*Module) NewScanner ¶
NewScanner returns a new Scanner instance.
type Result ¶
type Result struct {
Failure string `json:"failure"`
VersionMajor int `json:"version_major"`
VersionMinor int `json:"version_minor"`
ServerProperties knownServerProperties `json:"server_properties"`
Locales []string `json:"locales"`
AuthSuccess bool `json:"auth_success"`
Tune *connectionTune `json:"tune,omitempty"`
TLSLog *zgrab2.TLSLog `json:"tls,omitempty"`
}
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner implements the zgrab2.Scanner interface.
func (*Scanner) GetDialerGroupConfig ¶
func (scanner *Scanner) GetDialerGroupConfig() *zgrab2.DialerGroupConfig
func (*Scanner) GetScanMetadata ¶ added in v1.0.0
GetScanMetadata returns any metadata on the scan itself from this module.
func (*Scanner) GetTrigger ¶
GetTrigger returns the Trigger defined in the Flags.
func (*Scanner) InitPerSender ¶
InitPerSender initializes the scanner for a given sender.
func (*Scanner) Scan ¶
func (scanner *Scanner) Scan(ctx context.Context, dialGroup *zgrab2.DialerGroup, target *zgrab2.ScanTarget) (zgrab2.ScanStatus, any, error)
Click to show internal directories.
Click to hide internal directories.