mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
new: wifi.recon will activate the interface if it's down instead of failing
This commit is contained in:
parent
3c798794eb
commit
003139a2e3
3 changed files with 55 additions and 24 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue