From c85548dbdccc01fba14df30d738e3f8504fa63d3 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Fri, 8 Feb 2019 16:08:07 +0100 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- modules/net_show.go | 2 +- modules/wifi_show.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/net_show.go b/modules/net_show.go index 5b71b0f5..21bc42c8 100644 --- a/modules/net_show.go +++ b/modules/net_show.go @@ -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") } diff --git a/modules/wifi_show.go b/modules/wifi_show.go index a9276b0b..60923788 100644 --- a/modules/wifi_show.go +++ b/modules/wifi_show.go @@ -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":