new: new WPS parsing capabilities and wifi.show.wps command

This commit is contained in:
evilsocket 2019-01-27 14:52:59 +01:00
commit 50bf22af9c
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
4 changed files with 224 additions and 23 deletions

View file

@ -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
}