mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
fix: hiding vendor column in wifi.show as it only took horizontal space
This commit is contained in:
parent
41d1f5a8a0
commit
b2abc5e1ed
1 changed files with 4 additions and 4 deletions
|
@ -176,7 +176,7 @@ func (w *WiFiRecon) getRow(station *network.Station) []string {
|
|||
return []string{
|
||||
fmt.Sprintf("%d dBm", station.RSSI),
|
||||
bssid,
|
||||
station.Vendor,
|
||||
/* station.Vendor, */
|
||||
strconv.Itoa(mhz2chan(station.Frequency)),
|
||||
sent,
|
||||
recvd,
|
||||
|
@ -197,7 +197,7 @@ func (w *WiFiRecon) getRow(station *network.Station) []string {
|
|||
fmt.Sprintf("%d dBm", station.RSSI),
|
||||
bssid,
|
||||
ssid,
|
||||
station.Vendor,
|
||||
/* station.Vendor, */
|
||||
encryption,
|
||||
strconv.Itoa(mhz2chan(station.Frequency)),
|
||||
clients,
|
||||
|
@ -254,10 +254,10 @@ func (w *WiFiRecon) Show(by string) error {
|
|||
}
|
||||
nrows := len(rows)
|
||||
|
||||
columns := []string{"RSSI", "BSSID", "SSID", "Vendor", "Encryption", "Channel", "Clients", "Sent", "Recvd", "Last Seen"}
|
||||
columns := []string{"RSSI", "BSSID", "SSID" /* "Vendor", */, "Encryption", "Channel", "Clients", "Sent", "Recvd", "Last Seen"}
|
||||
if apSelected {
|
||||
// these are clients
|
||||
columns = []string{"RSSI", "MAC", "Vendor", "Channel", "Sent", "Received", "Last Seen"}
|
||||
columns = []string{"RSSI", "MAC" /* "Vendor", */, "Channel", "Sent", "Received", "Last Seen"}
|
||||
|
||||
if nrows == 0 {
|
||||
fmt.Printf("\nNo authenticated clients detected for %s.\n", w.ap.HwAddress)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue