Documentation
¶
Index ¶
- func HandleADB(ctx context.Context, conn net.Conn, logger Logger, h Honeypot) error
- func HandleBittorrent(ctx context.Context, conn net.Conn, logger Logger, h Honeypot) error
- func HandleFTP(ctx context.Context, conn net.Conn, logger Logger, h Honeypot) error
- func HandleHTTP(ctx context.Context, conn net.Conn, logger Logger, h Honeypot) error
- func HandleJabber(ctx context.Context, conn net.Conn, logger Logger, h Honeypot) error
- func HandleMQTT(ctx context.Context, conn net.Conn, logger Logger, h Honeypot) error
- func HandleMemcache(ctx context.Context, conn net.Conn, logger Logger, h Honeypot) error
- func HandleRDP(ctx context.Context, conn net.Conn, logger Logger, h Honeypot) error
- func HandleRFB(ctx context.Context, conn net.Conn, logger Logger, h Honeypot) error
- func HandleSIP(ctx context.Context, conn net.Conn, logger Logger, h Honeypot) error
- func HandleSMB(ctx context.Context, conn net.Conn, logger Logger, h Honeypot) error
- func HandleSMTP(ctx context.Context, conn net.Conn, logger Logger, h Honeypot) error
- func HandleTCP(ctx context.Context, conn net.Conn, logger Logger, h Honeypot) error
- func HandleTelnet(ctx context.Context, conn net.Conn, logger Logger, h Honeypot) error
- func MapProtocolHandlers(log Logger, h Honeypot) map[string]HandlerFunc
- func ReadTelnetMsg(conn net.Conn, logger Logger, h Honeypot) (string, error)
- func WriteTelnetMsg(conn net.Conn, msg string, logger Logger, h Honeypot) error
- type BufferedConn
- type Client
- type HandlerFunc
- type Honeypot
- type JabberClient
- type Logger
- type PixelFormat
- type ServersJabber
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleBittorrent ¶
HandleBittorrent handles a Bittorrent connection
func HandleHTTP ¶
HandleHTTP takes a net.Conn and does basic HTTP communication
func HandleJabber ¶
HandleJabber main handler
func HandleMQTT ¶
HandleMQTT handles a MQTT connection
func HandleMemcache ¶
func HandleSMTP ¶
HandleSMTP takes a net.Conn and does basic SMTP communication
func HandleTelnet ¶
HandleTelnet handles telnet communication on a connection
func MapProtocolHandlers ¶
func MapProtocolHandlers(log Logger, h Honeypot) map[string]HandlerFunc
mapProtocolHandlers map protocol handlers to corresponding protocol
func ReadTelnetMsg ¶
ReadTelnetMsg reads a telnet message from a connection
Types ¶
type BufferedConn ¶
type BufferedConn struct {
net.Conn // So that most methods are embedded
// contains filtered or unexported fields
}
BufferedConn provides an interface to peek at a connection
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a connection container
type Honeypot ¶
type Honeypot interface {
Produce(protocol string, conn net.Conn, md *connection.Metadata, payload []byte, decoded interface{}) error
ConnectionByFlow([2]uint64) *connection.Metadata
UpdateConnectionTimeout(ctx context.Context, conn net.Conn)
MetadataByConnection(net.Conn) (*connection.Metadata, error)
}
type JabberClient ¶
type JabberClient struct {
STo string `xml:"to,attr"`
Version string `xml:"version,attr"`
XMLns string `xml:"xmlns,attr"`
ID string `xml:"id,attr"`
XMLnsStream string `xml:"xmlns stream,attr"`
XMLName xml.Name `xml:"http://etherx.jabber.org/streams stream"`
}
JabberClient structure in Jabber protocol
type PixelFormat ¶
type PixelFormat struct {
Width, Heigth uint16
BPP, Depth uint8
BigEndian, TrueColour uint8 // flags; 0 or non-zero
RedMax, GreenMax, BlueMax uint16
RedShift, GreenShift, BlueShift uint8
Padding [3]uint8
ServerNameLength int32
}
PixelFormat represents a RFB communication unit
type ServersJabber ¶
type ServersJabber struct {
XMLName xml.Name `xml:"servers"`
Version string `xml:"version,attr"`
Svs []serverJabber `xml:"server"`
}
ServersJabber defines servers structure
Source Files
¶
Click to show internal directories.
Click to hide internal directories.