Versions in this module Expand all Collapse all v0 v0.0.1 May 17, 2015 Changes in this version + const CONNECTION_EVENT_CONNECT_NAME + const CONNECTION_EVENT_EHLO_NAME + const CONNECTION_EVENT_FTP + const CONNECTION_EVENT_HEARTBLEED_NAME + const CONNECTION_EVENT_MAIL_BANNER + const CONNECTION_EVENT_MODBUS + const CONNECTION_EVENT_READ_NAME + const CONNECTION_EVENT_SSH_NAME + const CONNECTION_EVENT_STARTTLS_NAME + const CONNECTION_EVENT_TLS_NAME + const CONNECTION_EVENT_WRITE_NAME + const FunctionCodeMEI + const IMAP_COMMAND + const POP3_COMMAND + const SMTP_COMMAND + var ConnectEventType = EventType + var EHLOEventType = EventType + var FTPBannerEventType = EventType + var HTTPGetEventType = EventType + var HeartbleedEventType = EventType + var MailBannerEventType = EventType + var ModbusEventType = EventType + var ModbusFunctionEncapsulatedInterface = FunctionCode(0x2B) + var ModbusHeaderBytes = []byte + var ReadEventType = EventType + var SMTPHelpEventType = EventType + var SSHEventType = EventType + var StartTLSEventType = EventType + var TLSHandshakeEventType = EventType + var WriteEventType = EventType + func NewGrabMarshaler() processing.Marshaler + func NewGrabTargetDecoder(reader io.Reader) processing.Decoder + func NewGrabWorker(config *Config) processing.Worker + func RegisterEventType(t EventType) + func WriteOutput(grabChan chan Grab, doneChan chan int, config *OutputConfig) + type Config struct + Banners bool + CBCOnly bool + ChromeNoDHE bool + ChromeOnly bool + ConnectionsPerHost uint + DHEOnly bool + Data []byte + EHLO bool + EHLODomain string + Encoding string + ErrorLog *zlog.Logger + ExportsDHOnly bool + ExportsOnly bool + FTP bool + FirefoxNoDHE bool + FirefoxOnly bool + GOMAXPROCS int + Heartbleed bool + IMAP bool + Modbus bool + NoSNI bool + POP3 bool + Port uint16 + Raw bool + RootCAPool *x509.CertPool + SChannelOnly bool + SMTP bool + SMTPHelp bool + SSH SSHScanConfig + SafariNoDHE bool + SafariOnly bool + SendData bool + Senders uint + StartTLS bool + TLS bool + TLSVersion uint16 + Timeout time.Duration + type Conn struct + ReadEncoding string + func (c *Conn) CheckHeartbleed(b []byte) (int, error) + func (c *Conn) Close() error + func (c *Conn) EHLO(domain string) error + func (c *Conn) GetFTPBanner() error + func (c *Conn) GetModbusResponse() (res ModbusResponse, err error) + func (c *Conn) IMAPBanner(b []byte) (int, error) + func (c *Conn) IMAPStartTLSHandshake() error + func (c *Conn) LocalAddr() net.Addr + func (c *Conn) POP3Banner(b []byte) (int, error) + func (c *Conn) POP3StartTLSHandshake() error + func (c *Conn) Read(b []byte) (int, error) + func (c *Conn) ReadMin(res []byte, bytes int) (cnt int, err error) + func (c *Conn) RemoteAddr() net.Addr + func (c *Conn) SMTPBanner(b []byte) (int, error) + func (c *Conn) SMTPHelp() error + func (c *Conn) SMTPStartTLSHandshake() error + func (c *Conn) SSHHandshake() error + func (c *Conn) SendModbusEcho() (int, error) + func (c *Conn) SetCAPool(pool *x509.CertPool) + func (c *Conn) SetCBCOnly() + func (c *Conn) SetChromeCiphers() + func (c *Conn) SetChromeNoDHECiphers() + func (c *Conn) SetDHEOnly() + func (c *Conn) SetDeadline(t time.Time) error + func (c *Conn) SetDomain(domain string) + func (c *Conn) SetExportsDHOnly() + func (c *Conn) SetExportsOnly() + func (c *Conn) SetFirefoxCiphers() + func (c *Conn) SetFirefoxNoDHECiphers() + func (c *Conn) SetNoSNI() + func (c *Conn) SetReadDeadline(t time.Time) error + func (c *Conn) SetSChannelOnly() + func (c *Conn) SetSafariCiphers() + func (c *Conn) SetSafariNoDHECiphers() + func (c *Conn) SetWriteDeadline(t time.Time) error + func (c *Conn) States() []ConnectionEvent + func (c *Conn) TLSHandshake() error + func (c *Conn) Write(b []byte) (int, error) + type ConnectEvent struct + func (ce *ConnectEvent) GetType() EventType + func (ce *ConnectEvent) MarshalJSON() ([]byte, error) + func (ce *ConnectEvent) UnmarshalJSON([]byte) error + type ConnectionEvent struct + Data EventData + Error error + func (ce *ConnectionEvent) MarshalJSON() ([]byte, error) + func (ce *ConnectionEvent) UnmarshalJSON(b []byte) error + type Dialer struct + Deadline time.Time + DualStack bool + KeepAlive time.Duration + LocalAddr net.Addr + Timeout time.Duration + func (d *Dialer) Dial(network, address string) (*Conn, error) + type EHLOEvent struct + Domain string + Response string + func (e *EHLOEvent) GetType() EventType + type EventData interface + GetType func() EventType + type EventType struct + GetEmptyInstance func() EventData + TypeName string + func EventTypeFromName(name string) (EventType, error) + func (e EventType) MarshalJSON() ([]byte, error) + type ExceptionCode byte + type ExceptionFunctionCode byte + func (e ExceptionFunctionCode) FunctionCode() FunctionCode + type ExceptionResponse struct + ExceptionFunction FunctionCode + ExceptionType byte + type FTPBannerEvent struct + Banner string + func (f *FTPBannerEvent) GetType() EventType + type FunctionCode byte + func (c FunctionCode) ExceptionFunctionCode() ExceptionFunctionCode + func (c FunctionCode) IsException() bool + type Grab struct + Domain string + Host net.IP + Log []ConnectionEvent + Time time.Time + func GrabBanner(config *Config, target *GrabTarget) *Grab + func (g *Grab) MarshalJSON() ([]byte, error) + func (g *Grab) UnmarshalJSON(b []byte) error + type GrabTarget struct + Addr net.IP + Domain string + type GrabWorker struct + func (g *GrabWorker) Done() + func (g *GrabWorker) Failure() uint + func (g *GrabWorker) MakeHandler(id uint) processing.Handler + func (g *GrabWorker) RunCount() uint + func (g *GrabWorker) Success() uint + func (g *GrabWorker) Total() uint + type HTTPGETEvent struct + Body string + Headers []string + func (h *HTTPGETEvent) GetType() EventType + type HeartbleedEvent struct + func (h *HeartbleedEvent) GetType() EventType + func (h *HeartbleedEvent) HeartbleedLog() *ztls.Heartbleed + func (h *HeartbleedEvent) MarshalJSON() ([]byte, error) + func (h *HeartbleedEvent) UnmarshalJSON(b []byte) error + type MEIObject struct + OID MEIObjectID + Value string + func (m *MEIObject) MarshalJSON() ([]byte, error) + type MEIObjectID int + const OIDModelName + const OIDProductCode + const OIDProductName + const OIDRevision + const OIDUserApplicationName + const OIDVendor + const OIDVendorURL + func (m *MEIObjectID) Name() string + type MEIObjectSet []MEIObject + func (ms *MEIObjectSet) MarshalJSON() ([]byte, error) + type MEIResponse struct + ConformityLevel int + MoreFollows bool + ObjectCount int + Objects MEIObjectSet + type MailBannerEvent struct + Banner string + func (mb *MailBannerEvent) GetType() EventType + func (mb *MailBannerEvent) MarshalJSON() ([]byte, error) + func (mb *MailBannerEvent) UnmarshalJSON(b []byte) error + type ModbusEvent struct + ExceptionReponse *ExceptionResponse + Function FunctionCode + Length int + MEIResponse *MEIResponse + Response []byte + UnitID int + func (m *ModbusEvent) GetType() EventType + func (m *ModbusEvent) IsException() bool + func (m *ModbusEvent) ParseSelf() + type ModbusException struct + ExceptionType ExceptionCode + Function ExceptionFunctionCode + type ModbusRequest struct + Data []byte + Function FunctionCode + func (r *ModbusRequest) MarshalBinary() (data []byte, err error) + type ModbusResponse struct + Data []byte + Function FunctionCode + Length int + UnitID int + type OutputConfig struct + ErrorLog *log.Logger + OutputFile *os.File + type ReadEvent struct + Response []byte + func (r *ReadEvent) GetType() EventType + func (r *ReadEvent) MarshalJSON() ([]byte, error) + func (r *ReadEvent) UnmarshalJSON(b []byte) error + type SMTPHelpEvent struct + Response string + func (h *SMTPHelpEvent) GetType() EventType + type SSHEvent struct + Handshake *ssh.HandshakeLog + func (s *SSHEvent) GetType() EventType + type SSHScanConfig struct + Client string + HostKeyAlgorithms string + KexAlgorithms string + SSH bool + func (sc *SSHScanConfig) GetClientImplementation() (*ssh.ClientImplementation, bool) + func (sc *SSHScanConfig) MakeConfig() *ssh.Config + func (sc *SSHScanConfig) MakeHostKeyNameList() (ssh.NameList, error) + func (sc *SSHScanConfig) MakeKexNameList() (ssh.NameList, error) + type StartTLSEvent struct + Command string + Response string + func (s *StartTLSEvent) GetType() EventType + type TLSHandshakeEvent struct + func (he *TLSHandshakeEvent) GetHandshakeLog() *ztls.ServerHandshake + func (he *TLSHandshakeEvent) GetType() EventType + func (he *TLSHandshakeEvent) MarshalJSON() ([]byte, error) + func (he *TLSHandshakeEvent) UnmarshalJSON(b []byte) error + type WriteEvent struct + Error error + Sent []byte + func (w *WriteEvent) GetType() EventType + func (w *WriteEvent) MarshalJSON() ([]byte, error) + func (w *WriteEvent) UnmarshalJSON(b []byte) error