Documentation ¶
Overview ¶
Ref: https://github.com/salesforce/jarm https://engineering.salesforce.com/easily-identify-malicious-servers-on-the-internet-with-jarm-e095edac525a?gi=4dd05e2277e4
Index ¶
- func RegisterModule()
- type Flags
- type Module
- type Results
- type Scanner
- func (scanner *Scanner) GetName() string
- func (scanner *Scanner) GetPort() uint
- 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(target zgrab2.ScanTarget) (zgrab2.ScanStatus, interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterModule ¶
func RegisterModule()
RegisterModule is called by modules/banner.go to register the scanner.
Types ¶
type Flags ¶
type Flags struct { zgrab2.BaseFlags MaxTries int `long:"max-tries" default:"1" description:"Number of tries for timeouts and connection errors before giving up."` }
Flags give the command-line flags for the banner module.
type Module ¶
type Module struct { }
Module is the implementation of the zgrab2.Module interface.
func (*Module) Description ¶
Description returns an overview of this module.
func (*Module) NewFlags ¶
func (m *Module) NewFlags() interface{}
NewFlags returns a new default flags object.
func (*Module) NewScanner ¶
NewScanner returns a new Scanner object.
type Results ¶
type Results struct { Fingerprint string `json:"fingerprint"` // contains filtered or unexported fields }
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner is the implementation of the zgrab2.Scanner interface.
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(target zgrab2.ScanTarget) (zgrab2.ScanStatus, interface{}, error)