dns_spoof

package
v2.24.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2019 License: GPL-3.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSSpoofer

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

func NewDNSSpoofer

func NewDNSSpoofer(s *session.Session) *DNSSpoofer

func (DNSSpoofer) Author

func (mod DNSSpoofer) Author() string

func (*DNSSpoofer) Configure

func (mod *DNSSpoofer) Configure() error

func (DNSSpoofer) Description

func (mod DNSSpoofer) Description() string

func (DNSSpoofer) Name

func (mod DNSSpoofer) Name() string

func (*DNSSpoofer) Start

func (mod *DNSSpoofer) Start() error

func (*DNSSpoofer) Stop

func (mod *DNSSpoofer) Stop() error

type HostEntry

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

func HostsFromFile

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

func NewHostEntry

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

func (HostEntry) Matches

func (e HostEntry) Matches(host string) bool

type Hosts

type Hosts []HostEntry

func (Hosts) Resolve

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

Jump to

Keyboard shortcuts

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