mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
38c637fcf7
commit
f3e9c314e2
4 changed files with 150 additions and 148 deletions
27
modules/wlan_station.go
Normal file
27
modules/wlan_station.go
Normal file
|
@ -0,0 +1,27 @@
|
|||
package modules
|
||||
|
||||
import (
|
||||
"github.com/evilsocket/bettercap-ng/network"
|
||||
)
|
||||
|
||||
type WirelessStation struct {
|
||||
*network.Endpoint
|
||||
IsAP bool
|
||||
Channel int
|
||||
}
|
||||
|
||||
func NewWirelessStation(essid, bssid string, isAp bool, channel int) *WirelessStation {
|
||||
return &WirelessStation{
|
||||
Endpoint: network.NewEndpointNoResolve(network.MonitorModeAddress, bssid, essid, 0),
|
||||
IsAP: isAp,
|
||||
Channel: channel,
|
||||
}
|
||||
}
|
||||
|
||||
func (s WirelessStation) BSSID() string {
|
||||
return s.HwAddress
|
||||
}
|
||||
|
||||
func (s *WirelessStation) ESSID() string {
|
||||
return s.Hostname
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue