tcp

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2025 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpReply       = 1
	OpUpdate      = 2001
	OpInsert      = 2002
	OpQuery       = 2004
	OpGetMore     = 2005
	OpDelete      = 2006
	OpKillCursors = 2007
	OpCompressed  = 2012
	OpMsg         = 2013
)

OpCode values for the MongoDB wire protocol

Variables

This section is empty.

Functions

func HandleADB

func HandleADB(ctx context.Context, conn net.Conn, md connection.Metadata, logger interfaces.Logger, h interfaces.Honeypot) error

HandleADB Android Debug bridge handler

func HandleBittorrent

func HandleBittorrent(ctx context.Context, conn net.Conn, md connection.Metadata, logger interfaces.Logger, h interfaces.Honeypot) error

HandleBittorrent handles a Bittorrent connection

func HandleFTP

func HandleFTP(ctx context.Context, conn net.Conn, md connection.Metadata, logger interfaces.Logger, h interfaces.Honeypot) error

HandleFTP takes a net.Conn and does basic FTP communication

func HandleHTTP

func HandleHTTP(ctx context.Context, conn net.Conn, md connection.Metadata, logger interfaces.Logger, h interfaces.Honeypot) error

HandleHTTP takes a net.Conn and does basic HTTP communication

func HandleISCSI

func HandleISCSI(ctx context.Context, conn net.Conn, md connection.Metadata, logger interfaces.Logger, h interfaces.Honeypot) error

func HandleJabber

func HandleJabber(ctx context.Context, conn net.Conn, md connection.Metadata, logger interfaces.Logger, h interfaces.Honeypot) error

HandleJabber main handler

func HandleMQTT

func HandleMQTT(ctx context.Context, conn net.Conn, md connection.Metadata, logger interfaces.Logger, h interfaces.Honeypot) error

HandleMQTT handles a MQTT connection

func HandleMemcache

func HandleMemcache(ctx context.Context, conn net.Conn, md connection.Metadata, logger interfaces.Logger, h interfaces.Honeypot) error

func HandleMongoDB

func HandleMongoDB(ctx context.Context, conn net.Conn, md connection.Metadata, logger interfaces.Logger, h interfaces.Honeypot) error

func HandleRDP

func HandleRDP(ctx context.Context, conn net.Conn, md connection.Metadata, logger interfaces.Logger, h interfaces.Honeypot) error

HandleRDP takes a net.Conn and does basic RDP communication

func HandleRFB

func HandleRFB(ctx context.Context, conn net.Conn, md connection.Metadata, logger interfaces.Logger, h interfaces.Honeypot) error

HandleRFB takes a net.Conn and does basic RFB/VNC communication

func HandleSIP

func HandleSIP(ctx context.Context, conn net.Conn, md connection.Metadata, logger interfaces.Logger, h interfaces.Honeypot) error

HandleSIP takes a net.Conn and does basic SIP communication

func HandleSMB

func HandleSMB(ctx context.Context, conn net.Conn, md connection.Metadata, logger interfaces.Logger, h interfaces.Honeypot) error

HandleSMB takes a net.Conn and does basic SMB communication

func HandleSMTP

func HandleSMTP(ctx context.Context, conn net.Conn, md connection.Metadata, logger interfaces.Logger, h interfaces.Honeypot) error

HandleSMTP takes a net.Conn and does basic SMTP communication

func HandleTCP

func HandleTCP(ctx context.Context, conn net.Conn, md connection.Metadata, logger interfaces.Logger, h interfaces.Honeypot) error

HandleTCP takes a net.Conn and peeks at the data send

func HandleTelnet

func HandleTelnet(ctx context.Context, conn net.Conn, md connection.Metadata, logger interfaces.Logger, h interfaces.Honeypot) error

HandleTelnet handles telnet communication on a connection

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a connection container

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 ParsedIscsi

type ParsedIscsi struct {
	Direction string         `json:"direction,omitempty"`
	Message   iscsi.IscsiMsg `json:"message,omitempty"`
	Payload   []byte         `json:"payload,omitempty"`
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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