tracer

package
v3.1.13 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package tracer is responsible for tracing the events that occur in the honeypots

Index

Constants

View Source
const Workers = 5

Workers is the number of workers that will

Variables

This section is empty.

Functions

func GetInstance

func GetInstance(defaultStrategy Strategy) *tracer

Types

type Event

type Event struct {
	DateTime        string
	RemoteAddr      string
	Protocol        string
	Command         string
	CommandOutput   string
	Status          string
	Msg             string
	ID              string
	Environ         string
	User            string
	Password        string
	Client          string
	Headers         string
	Cookies         string
	UserAgent       string
	HostHTTPRequest string
	Body            string
	HTTPMethod      string
	RequestURI      string
	Description     string
}

type Protocol

type Protocol int
const (
	HTTP Protocol = iota
	SSH
	TCP
)

func (Protocol) String

func (protocol Protocol) String() string

type Status

type Status int
const (
	Start Status = iota
	End
	Stateless
	Interaction
)

func (Status) String

func (status Status) String() string

type Strategy

type Strategy func(event Event)

type Tracer

type Tracer interface {
	TraceEvent(event Event)
}

Jump to

Keyboard shortcuts

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