smtp

package
v1.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 6 Imported by: 8

Documentation

Index

Constants

View Source
const SMTP = "smtp"
View Source
const SMTPS = "smtps"

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Banner      string
	AuthMethods []string
}

func DetectSMTP

func DetectSMTP(conn net.Conn, tls bool, timeout time.Duration) (Data, bool, error)

type SMTPPlugin

type SMTPPlugin struct{}

func (*SMTPPlugin) Name

func (p *SMTPPlugin) Name() string

func (*SMTPPlugin) PortPriority

func (p *SMTPPlugin) PortPriority(port uint16) bool

func (*SMTPPlugin) Priority

func (p *SMTPPlugin) Priority() int

func (*SMTPPlugin) Run

func (p *SMTPPlugin) Run(conn net.Conn, timeout time.Duration, target plugins.Target) (*plugins.Service, error)

func (*SMTPPlugin) Type

func (p *SMTPPlugin) Type() plugins.Protocol

type TLSPlugin

type TLSPlugin struct{}

func (*TLSPlugin) Name

func (p *TLSPlugin) Name() string

func (*TLSPlugin) PortPriority

func (p *TLSPlugin) PortPriority(port uint16) bool

func (*TLSPlugin) Priority

func (p *TLSPlugin) Priority() int

func (*TLSPlugin) Run

func (p *TLSPlugin) Run(conn net.Conn, timeout time.Duration, target plugins.Target) (*plugins.Service, error)

func (*TLSPlugin) Type

func (p *TLSPlugin) Type() plugins.Protocol

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL