mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 05:23:19 -07:00
balls
This commit is contained in:
parent
73c13beb8a
commit
ef5c5d4d14
1 changed files with 5 additions and 0 deletions
|
@ -59,6 +59,8 @@ func (d *Discovery) Show(by string) error {
|
|||
[]string{core.Green("gateway"), core.Bold(gw.Hostname), gw.IpAddress, gw.HwAddress, core.Dim(gw.Vendor)},
|
||||
}
|
||||
|
||||
fmt.Println()
|
||||
|
||||
table := tablewriter.NewWriter(os.Stdout)
|
||||
|
||||
table.SetColWidth(80)
|
||||
|
@ -159,7 +161,10 @@ func (d *Discovery) Show(by string) error {
|
|||
}
|
||||
|
||||
table.SetHeader([]string{"Proto", "# Packets"})
|
||||
|
||||
table.Render()
|
||||
|
||||
d.Session.Refresh()
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue