core

package
v0.0.0-...-74c3e75 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextAuthPublicKey holds the public key that the client sent to the
	// server. Useful for fingerprinting.
	ContextAuthPublicKey = sshContextKey{"auth-public-key"}
	// ContextAuthPassword holds the password the client sent to the server.
	ContextAuthPassword = sshContextKey{"auth-password"}
)

Functions

This section is empty.

Types

type Honeypot

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

func NewHoneypot

func NewHoneypot(configuration *config.Configuration, stderr io.Writer) (*Honeypot, error)

func (*Honeypot) Close

func (h *Honeypot) Close() error

func (*Honeypot) HandleConnection

func (h *Honeypot) HandleConnection(s SessionInfo) error

func (*Honeypot) ListenAndServe

func (h *Honeypot) ListenAndServe() error

func (*Honeypot) Shutdown

func (h *Honeypot) Shutdown(ctx context.Context) error

type HoneypotOpts

type HoneypotOpts struct {
	// Additional place to log output
	AdditionalLogger io.Writer
}

type SessionInfo

type SessionInfo interface {
	Context() context.Context
	Environ() []string
	RawCommand() string
	Subsystem() string
	Command() []string
	Pty() (ssh.Pty, <-chan ssh.Window, bool)
	vos.SSHSession
	io.ReadCloser
}

Minimal properties from ssh.Session needed for the honeypot.

Directories

Path Synopsis
Package logger is a standardized event logging framework for the honeypot.
Package logger is a standardized event logging framework for the honeypot.
Package ttylog contains utilities to log and play back TTY sessions.
Package ttylog contains utilities to log and play back TTY sessions.
vos
Package vos provides a virtual OS abstraction.
Package vos provides a virtual OS abstraction.

Jump to

Keyboard shortcuts

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