mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
fix: better mass deauth message
This commit is contained in:
parent
c26775a112
commit
f8ede4ddbe
1 changed files with 8 additions and 4 deletions
|
@ -140,13 +140,17 @@ func (t *Endpoint) IsMonitor() bool {
|
|||
}
|
||||
|
||||
func (t *Endpoint) String() string {
|
||||
ipPart := fmt.Sprintf("%s : ", t.IpAddress)
|
||||
if t.IpAddress == MonitorModeAddress {
|
||||
ipPart = ""
|
||||
}
|
||||
|
||||
if t.HwAddress == "" {
|
||||
return t.IpAddress
|
||||
} else if t.Vendor == "" {
|
||||
return fmt.Sprintf("%s : %s", t.IpAddress, t.HwAddress)
|
||||
return fmt.Sprintf("%s%s", ipPart, t.HwAddress)
|
||||
} else if t.Hostname == "" {
|
||||
return fmt.Sprintf("%s : %s ( %s )", t.IpAddress, t.HwAddress, t.Vendor)
|
||||
return fmt.Sprintf("%s%s ( %s )", ipPart, t.HwAddress, t.Vendor)
|
||||
}
|
||||
|
||||
return fmt.Sprintf("%s : %s ( %s ) - %s", t.IpAddress, t.HwAddress, t.Vendor, core.Bold(t.Hostname))
|
||||
return fmt.Sprintf("%s%s ( %s ) - %s", ipPart, t.HwAddress, t.Vendor, core.Bold(t.Hostname))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue