honeypot

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PortEventID  = "https://github.com/l3montree-dev/oh-my-honeypot/json-schema/port-scanning.json"
	LoginEventID = "https://github.com/l3montree-dev/oh-my-honeypot/json-schema/ssh-login-attempt.json"
	HTTPEventID  = "https://github.com/l3montree-dev/oh-my-honeypot/json-schema/http-request.json"
)

Variables

This section is empty.

Functions

func DetectPortScan

func DetectPortScan(tokens []types.Set) []types.Set

func MostUsedTCPPorts

func MostUsedTCPPorts() []int

func MostUsedUDPPorts

func MostUsedUDPPorts() []int

Types

type HTTPConfig

type HTTPConfig struct {
	Port int
}

type Honeypot

type Honeypot interface {
	// Start starts the honeypot
	// should not block
	Start() error
	// GetSETChannel returns the channel the honeypot is posting SET events to.
	GetSETChannel() <-chan types.Set
}

func NewHTTP

func NewHTTP(config HTTPConfig) Honeypot

func NewPostgres

func NewPostgres(config PostgresConfig) Honeypot

func NewSSH

func NewSSH(config SSHConfig) Honeypot

func NewTCP

func NewTCP(ports []int) Honeypot

func NewUDP

func NewUDP(ports []int) Honeypot

type PostgresConfig

type PostgresConfig struct {
	Port int
}

type SSHConfig

type SSHConfig struct {
	Port int
}

Jump to

Keyboard shortcuts

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