Documentation
¶
Overview ¶
Package arpspoof This package uses https://github.com/bettercap/bettercap/tree/master/modules/arp_spoof as a reference implementation Issued under GPLv3 license https://www.gnu.org/licenses/gpl-3.0.en.html
Index ¶
- Constants
- type ARPSpoofConfig
- type ARPSpoofer
- func (ar *ARPSpoofer) ARPTable() *ARPTable
- func (ar *ARPSpoofer) GatewayIP() netip.Addr
- func (ar *ARPSpoofer) GatewayMAC() net.HardwareAddr
- func (ar *ARPSpoofer) HostIP() netip.Addr
- func (ar *ARPSpoofer) HostMAC() net.HardwareAddr
- func (ar *ARPSpoofer) Interface() *net.Interface
- func (ar *ARPSpoofer) Start()
- func (ar *ARPSpoofer) Stop() error
- type ARPTable
- type Packet
Constants ¶
View Source
const Version string = "arpspoof v0.0.1"
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 ¶
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) ARPTable ¶
func (ar *ARPSpoofer) ARPTable() *ARPTable
func (*ARPSpoofer) GatewayIP ¶
func (ar *ARPSpoofer) GatewayIP() netip.Addr
func (*ARPSpoofer) GatewayMAC ¶
func (ar *ARPSpoofer) GatewayMAC() net.HardwareAddr
func (*ARPSpoofer) HostIP ¶
func (ar *ARPSpoofer) HostIP() netip.Addr
func (*ARPSpoofer) HostMAC ¶
func (ar *ARPSpoofer) HostMAC() net.HardwareAddr
func (*ARPSpoofer) Interface ¶
func (ar *ARPSpoofer) Interface() *net.Interface
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.