bettercap: github.com/bettercap/bettercap/modules/dns_spoof Index | Files

package dns_spoof

import "github.com/bettercap/bettercap/modules/dns_spoof"

Index

Package Files

dns_spoof.go dns_spoof_hosts.go

type DNSSpoofer Uses

type DNSSpoofer struct {
    session.SessionModule
    Handle *pcap.Handle
    Hosts  Hosts
    All    bool
    // contains filtered or unexported fields
}

func NewDNSSpoofer Uses

func NewDNSSpoofer(s *session.Session) *DNSSpoofer

func (DNSSpoofer) Author Uses

func (mod DNSSpoofer) Author() string

func (*DNSSpoofer) Configure Uses

func (mod *DNSSpoofer) Configure() error

func (DNSSpoofer) Description Uses

func (mod DNSSpoofer) Description() string

func (DNSSpoofer) Name Uses

func (mod DNSSpoofer) Name() string

func (*DNSSpoofer) Start Uses

func (mod *DNSSpoofer) Start() error

func (*DNSSpoofer) Stop Uses

func (mod *DNSSpoofer) Stop() error

type HostEntry Uses

type HostEntry struct {
    Host    string
    Suffix  string
    Expr    glob.Glob
    Address net.IP
}

func HostsFromFile Uses

func HostsFromFile(filename string, defaultAddress net.IP) (err error, entries []HostEntry)

func NewHostEntry Uses

func NewHostEntry(host string, address net.IP) HostEntry

func (HostEntry) Matches Uses

func (e HostEntry) Matches(host string) bool

type Hosts Uses

type Hosts []HostEntry

func (Hosts) Resolve Uses

func (h Hosts) Resolve(host string) net.IP

Package dns_spoof imports 16 packages (graph) and is imported by 3 packages. Updated 2019-04-25. Refresh now. Tools for package owners.