mirror of
https://github.com/bettercap/bettercap.git
synced 2025-03-12 04:36:03 -07:00
balls
This commit is contained in:
parent
37e5f6a6d0
commit
4f1c5012f4
@ -10,6 +10,8 @@ import (
|
||||
"github.com/evilsocket/bettercap-ng/core"
|
||||
)
|
||||
|
||||
const MonitorModeAddress = "0.0.0.0"
|
||||
|
||||
func FindInterface(name string) (*Endpoint, error) {
|
||||
ifaces, err := net.Interfaces()
|
||||
if err != nil {
|
||||
@ -29,7 +31,7 @@ func FindInterface(name string) (*Endpoint, error) {
|
||||
|
||||
// interface is in monitor mode (or it's just down and the user is dumb)
|
||||
if len(addrs) == 0 {
|
||||
e = NewEndpointNoResolve("0.0.0.0", mac, iface.Name, 0)
|
||||
e = NewEndpointNoResolve(MonitorModeAddress, mac, iface.Name, 0)
|
||||
} else {
|
||||
// For every address of the interface.
|
||||
for _, addr := range addrs {
|
||||
|
Loading…
x
Reference in New Issue
Block a user