fix: better mass deauth message

This commit is contained in:
evilsocket 2018-07-29 16:23:52 +02:00
commit f8ede4ddbe
No known key found for this signature in database
GPG key ID: 1564D7F30393A456

View file

@ -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))
}