core

package
v0.0.0-...-6a41818 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 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 ssh.Session) 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
}

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