mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 10:46:57 -07:00
new: new WPS parsing capabilities and wifi.show.wps command
This commit is contained in:
parent
dcd1fbfe27
commit
50bf22af9c
4 changed files with 224 additions and 23 deletions
|
@ -6,13 +6,14 @@ import (
|
|||
|
||||
type Station struct {
|
||||
*Endpoint
|
||||
Frequency int `json:"frequency"`
|
||||
RSSI int8 `json:"rssi"`
|
||||
Sent uint64 `json:"sent"`
|
||||
Received uint64 `json:"received"`
|
||||
Encryption string `json:"encryption"`
|
||||
Cipher string `json:"cipher"`
|
||||
Authentication string `json:"authentication"`
|
||||
Frequency int `json:"frequency"`
|
||||
RSSI int8 `json:"rssi"`
|
||||
Sent uint64 `json:"sent"`
|
||||
Received uint64 `json:"received"`
|
||||
Encryption string `json:"encryption"`
|
||||
Cipher string `json:"cipher"`
|
||||
Authentication string `json:"authentication"`
|
||||
WPS map[string]string `json:"wps"`
|
||||
}
|
||||
|
||||
func cleanESSID(essid string) string {
|
||||
|
@ -47,3 +48,7 @@ func (s *Station) ESSID() string {
|
|||
func (s *Station) Channel() int {
|
||||
return Dot11Freq2Chan(s.Frequency)
|
||||
}
|
||||
|
||||
func (s *Station) HasWPS() bool {
|
||||
return len(s.WPS) > 0
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue