Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pot ¶
type Pot struct { Verbose bool AdminPort int Ports []int Log slog.Logger // contains filtered or unexported fields }
Pot represents a Honeypot.
func NewHoneyPotServer ¶
func NewHoneyPotServer() *Pot
NewHoneyPotServer returns default, unstarted HoneyPot configured to listen for admin connections on port 8085.
func (*Pot) ListenAndServe ¶
ListenAndServe listens on the TCP network address addr on admin port and for upcoming network connections then calls serve with handler to handle requests on incoming connections on given ports.
func (*Pot) NumConnections ¶
NumConnections returns number of attempted connections to the Pot.
Click to show internal directories.
Click to hide internal directories.