mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
Issue #157: wifi.recon can now select one or multiple channels (comma separated) and show only the selected channels.
This commit is contained in:
parent
0e2e7344f8
commit
054ce2a1bf
3 changed files with 99 additions and 19 deletions
|
@ -66,6 +66,23 @@ func Dot11ParseIDSSID(packet gopacket.Packet) (bool, string) {
|
|||
return false, ""
|
||||
}
|
||||
|
||||
func Dot11ParseDSSet(packet gopacket.Packet) (bool, int) {
|
||||
channel := 0
|
||||
found := false
|
||||
for _, layer := range packet.Layers() {
|
||||
info, ok := layer.(*layers.Dot11InformationElement)
|
||||
if ok == true {
|
||||
if info.ID == layers.Dot11InformationElementIDDSSet {
|
||||
channel, _ = Dot11InformationElementIDDSSetDecode(info.Info)
|
||||
found = true
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return found, channel
|
||||
}
|
||||
|
||||
func Dot11ParseEncryption(packet gopacket.Packet, dot11 *layers.Dot11) (bool, string, string, string) {
|
||||
var i uint16
|
||||
enc := ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue