Versions in this module Expand all Collapse all v0 v0.1.9 Nov 10, 2022 Changes in this version + const KeyBadParameters + const KeyUnknownErrorTag + func RegisterModule() + type AuthenticationMode struct + Mode string + Payload []byte + type BackendKeyData struct + ProcessID uint32 + SecretKey uint32 + type Connection struct + Config *Flags + Connection net.Conn + IsSSL bool + Target *zgrab2.ScanTarget + func (c *Connection) Close() error + func (c *Connection) GetTLSLog() *zgrab2.TLSLog + func (c *Connection) ReadAll() ([]*ServerPacket, *zgrab2.ScanError) + func (c *Connection) ReadPacket() (*ServerPacket, *zgrab2.ScanError) + func (c *Connection) RequestSSL() (bool, *zgrab2.ScanError) + func (c *Connection) Send(body []byte) error + func (c *Connection) SendStartupMessage(version string, kvps map[string]string) error + func (c *Connection) SendU32(val uint32) error + type Flags struct + ApplicationName string + Database string + ProtocolVersion string + SkipSSL bool + User string + Verbose bool + func (f *Flags) Help() string + func (f *Flags) Validate(args []string) error + type Module struct + func (m *Module) Description() string + func (m *Module) NewFlags() interface{} + func (m *Module) NewScanner() zgrab2.Scanner + type PostgresError map[string]string + type Results struct + AuthenticationMode *AuthenticationMode + BackendKeyData *BackendKeyData + IsSSL bool + ProtocolError *PostgresError + ServerParameters *ServerParameters + StartupError *PostgresError + SupportedVersions string + TLSLog *zgrab2.TLSLog + TransactionStatus string + UserStartupError *PostgresError + type Scanner struct + Config *Flags + func (s *Scanner) DoSSL(sql *Connection) error + func (s *Scanner) GetName() string + func (s *Scanner) GetTrigger() string + func (s *Scanner) Init(flags zgrab2.ScanFlags) error + func (s *Scanner) InitPerSender(senderID int) error + func (s *Scanner) Protocol() string + func (s *Scanner) Scan(t zgrab2.ScanTarget) (status zgrab2.ScanStatus, result interface{}, thrown error) + type ServerPacket struct + Body []byte + Length uint32 + Type byte + func (p *ServerPacket) OutputValue() string + func (p *ServerPacket) ToError() *PostgresError + func (p *ServerPacket) ToString() string + type ServerParameters map[string]string + func (s *ServerParameters) MarshalJSON() ([]byte, error)