mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
a3d6b353fe
commit
c85548dbdc
2 changed files with 4 additions and 4 deletions
|
@ -181,7 +181,7 @@ func (d *Discovery) doSelection(arg string) (err error, targets []*network.Endpo
|
|||
}
|
||||
|
||||
func (d *Discovery) colNames(hasMeta bool) []string {
|
||||
colNames := []string{"IP", "MAC", "Name", "Vendor", "Sent", "Recvd", "Last Seen"}
|
||||
colNames := []string{"IP", "MAC", "Name", "Vendor", "Sent", "Recvd", "Seen"}
|
||||
if hasMeta {
|
||||
colNames = append(colNames, "Meta")
|
||||
}
|
||||
|
|
|
@ -229,9 +229,9 @@ func (w *WiFiModule) colNames(nrows int) []string {
|
|||
columns := []string(nil)
|
||||
|
||||
if !w.isApSelected() {
|
||||
columns = []string{"RSSI", "BSSID", "SSID", "Encryption", "WPS", "Ch", "Clients", "Sent", "Recvd", "Last Seen"}
|
||||
columns = []string{"RSSI", "BSSID", "SSID", "Encryption", "WPS", "Ch", "Clients", "Sent", "Recvd", "Seen"}
|
||||
} else if nrows > 0 {
|
||||
columns = []string{"RSSI", "MAC", "Ch", "Sent", "Received", "Last Seen"}
|
||||
columns = []string{"RSSI", "BSSID", "Ch", "Sent", "Recvd", "Seen"}
|
||||
fmt.Printf("\n%s clients:\n", w.ap.HwAddress)
|
||||
} else {
|
||||
fmt.Printf("\nNo authenticated clients detected for %s.\n", w.ap.HwAddress)
|
||||
|
@ -240,7 +240,7 @@ func (w *WiFiModule) colNames(nrows int) []string {
|
|||
if columns != nil {
|
||||
switch w.selector.SortField {
|
||||
case "seen":
|
||||
w.colDecorate(columns, "Last Seen", w.selector.SortSymbol)
|
||||
w.colDecorate(columns, "Seen", w.selector.SortSymbol)
|
||||
case "essid":
|
||||
w.colDecorate(columns, "SSID", w.selector.SortSymbol)
|
||||
case "bssid":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue