Documentation
¶
Overview ¶
Package arpspoof
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ARPSpoofConfig ¶
type ARPSpoofConfig struct { Targets string Gateway *netip.Addr Interface string FullDuplex bool Logger *zerolog.Logger Debug bool }
func NewARPSpoofConfig ¶ added in v0.0.10
func NewARPSpoofConfig(s string, logger *zerolog.Logger) (*ARPSpoofConfig, error)
NewARPSpoofConfig creates ARPSpoofConfig from a list of options separated by semicolon and logger.
Example: "targets 10.0.0.1,10.0.0.5-10,192.168.1.*,192.168.10.0/24;fullduplex false;debug true;interface eth0;gateway 192.168.1.1"`. All fields in configuration string are optional.
type ARPSpoofer ¶
type ARPSpoofer struct {
// contains filtered or unexported fields
}
func NewARPSpoofer ¶
func NewARPSpoofer(conf *ARPSpoofConfig) (*ARPSpoofer, error)
func (*ARPSpoofer) Start ¶
func (ar *ARPSpoofer) Start()
func (*ARPSpoofer) Stop ¶
func (ar *ARPSpoofer) Stop() error
Click to show internal directories.
Click to hide internal directories.