Documentation
¶
Overview ¶
Package socks5 contains the zgrab2 Module implementation for SOCKS5.
Index ¶
- func RegisterModule()
- type Connection
- type Flags
- type Module
- type ScanResults
- 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 Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
Connection holds the state for a single connection to the SOCKS5 server.
func (*Connection) PerformConnectionRequest ¶
func (conn *Connection) PerformConnectionRequest() error
PerformConnectionRequest sends a connection request to the SOCKS5 server.
func (*Connection) PerformHandshake ¶
func (conn *Connection) PerformHandshake() (bool, error)
PerformHandshake performs the SOCKS5 handshake.
type Module ¶
type Module struct {
}
Module implements the zgrab2.Module interface.
func (*Module) Description ¶
Description returns an overview of this module.
func (*Module) NewFlags ¶
func (m *Module) NewFlags() interface{}
NewFlags returns the default flags object to be filled in with the command-line arguments.
func (*Module) NewScanner ¶
NewScanner returns a new Scanner instance.
type ScanResults ¶
type ScanResults struct {
Version string `json:"version,omitempty"`
MethodSelection string `json:"method_selection,omitempty"`
ConnectionResponse string `json:"connection_response,omitempty"`
ConnectionResponseExplanation map[string]string `json:"connection_response_explanation,omitempty"`
}
ScanResults is the output of the scan.
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
Scanner implements the zgrab2.Scanner interface, and holds the state for a single scan.
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 does nothing in this module.
func (*Scanner) Scan ¶
func (scanner *Scanner) Scan(ctx context.Context, dialGroup *zgrab2.DialerGroup, target *zgrab2.ScanTarget) (zgrab2.ScanStatus, any, error)
Scan performs the configured scan on the SOCKS5 server.