new: wifi.recon will activate the interface if it's down instead of failing

This commit is contained in:
evilsocket 2019-02-06 09:42:48 +01:00
commit 003139a2e3
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
3 changed files with 55 additions and 24 deletions

View file

@ -26,6 +26,7 @@ func NewARPTo(from net.IP, from_hw net.HardwareAddr, to net.IP, to_hw net.Hardwa
return eth, arp
}
func NewARP(from net.IP, from_hw net.HardwareAddr, to net.IP, req uint16) (layers.Ethernet, layers.ARP) {
return NewARPTo(from, from_hw, to, []byte{0, 0, 0, 0, 0, 0}, req)
}