mirror of
https://github.com/bettercap/bettercap
synced 2025-07-07 21:42:06 -07:00
27 lines
505 B
Go
27 lines
505 B
Go
package modules
|
|
|
|
import (
|
|
"github.com/evilsocket/bettercap-ng/network"
|
|
)
|
|
|
|
type WiFiStation struct {
|
|
*network.Endpoint
|
|
IsAP bool
|
|
Channel int
|
|
}
|
|
|
|
func NewWiFiStation(essid, bssid string, isAp bool, channel int) *WiFiStation {
|
|
return &WiFiStation{
|
|
Endpoint: network.NewEndpointNoResolve(network.MonitorModeAddress, bssid, essid, 0),
|
|
IsAP: isAp,
|
|
Channel: channel,
|
|
}
|
|
}
|
|
|
|
func (s WiFiStation) BSSID() string {
|
|
return s.HwAddress
|
|
}
|
|
|
|
func (s *WiFiStation) ESSID() string {
|
|
return s.Hostname
|
|
}
|