mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
e895dc6ab2
commit
eb5a72a44c
9 changed files with 234 additions and 220 deletions
|
@ -53,7 +53,7 @@ func (d *Discovery) getRow(e *network.Endpoint) []string {
|
|||
|
||||
addr := e.IpAddress
|
||||
mac := e.HwAddress
|
||||
if d.Session.Targets.WasMissed(e.HwAddress) == true {
|
||||
if d.Session.Lan.WasMissed(e.HwAddress) == true {
|
||||
// if endpoint was not found in ARP at least once
|
||||
addr = core.Dim(addr)
|
||||
mac = core.Dim(mac)
|
||||
|
@ -113,7 +113,7 @@ func (d *Discovery) showTable(header []string, rows [][]string) {
|
|||
}
|
||||
|
||||
func (d *Discovery) Show(by string) error {
|
||||
targets := d.Session.Targets.List()
|
||||
targets := d.Session.Lan.List()
|
||||
if by == "seen" {
|
||||
sort.Sort(BySeenSorter(targets))
|
||||
} else if by == "sent" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue