Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DnsReply ¶
func DnsReply( s *session.Session, TTL uint32, pkt gopacket.Packet, peth *layers.Ethernet, pudp *layers.UDP, domain string, address net.IP, req *layers.DNS, target net.HardwareAddr) (string, string)
DnsReply
s sessione utente attiva TTL TTL da assegnare al dominio pkt pacchetto originario peth layer ethernet del pacchetto originario pudp layer UDP del pacchetto originario domain dominio target address Indirizzo da associare al dominio req DNS requesto originaria target indirizzo vittima
Types ¶
type DNSSpoofer ¶
type DNSSpoofer struct { session.SessionModule Handle *pcap.Handle Hosts Hosts TTL uint32 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 ¶
func HostsFromFile ¶
Click to show internal directories.
Click to hide internal directories.