mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
new: added wifi.show clients and encryption sorting
This commit is contained in:
parent
573cb17735
commit
58738b7723
3 changed files with 43 additions and 36 deletions
|
@ -146,7 +146,6 @@ func (w *WiFiModule) doSelection() (err error, stations []*network.Station) {
|
|||
}
|
||||
stations = filtered
|
||||
|
||||
// "encryption"}, "rssi"
|
||||
switch w.selector.SortBy {
|
||||
case "seen":
|
||||
sort.Sort(ByWiFiSeenSorter(stations))
|
||||
|
@ -156,6 +155,10 @@ func (w *WiFiModule) doSelection() (err error, stations []*network.Station) {
|
|||
sort.Sort(ByBssidSorter(stations))
|
||||
case "channel":
|
||||
sort.Sort(ByChannelSorter(stations))
|
||||
case "clients":
|
||||
sort.Sort(ByClientsSorter(stations))
|
||||
case "encryption":
|
||||
sort.Sort(ByEncryptionSorter(stations))
|
||||
case "sent":
|
||||
sort.Sort(ByWiFiSentSorter(stations))
|
||||
case "rcvd":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue