mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
new: including alias when endpoint is detected (fixes #79)
This commit is contained in:
parent
ef172c1b01
commit
d96592d020
1 changed files with 3 additions and 2 deletions
|
@ -75,12 +75,13 @@ func (s EventsStream) viewEndpointEvent(e session.Event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if e.Tag == "endpoint.new" {
|
if e.Tag == "endpoint.new" {
|
||||||
fmt.Printf("[%s] [%s] Endpoint %s detected as %s%s.\n",
|
fmt.Printf("[%s] [%s] Endpoint %s%s detected as %s%s.\n",
|
||||||
e.Time.Format(eventTimeFormat),
|
e.Time.Format(eventTimeFormat),
|
||||||
core.Green(e.Tag),
|
core.Green(e.Tag),
|
||||||
core.Bold(t.IpAddress),
|
core.Bold(t.IpAddress),
|
||||||
|
core.Dim(name),
|
||||||
core.Green(t.HwAddress),
|
core.Green(t.HwAddress),
|
||||||
vend)
|
core.Dim(vend))
|
||||||
} else if e.Tag == "endpoint.lost" {
|
} else if e.Tag == "endpoint.lost" {
|
||||||
fmt.Printf("[%s] [%s] Endpoint %s%s lost.\n",
|
fmt.Printf("[%s] [%s] Endpoint %s%s lost.\n",
|
||||||
e.Time.Format(eventTimeFormat),
|
e.Time.Format(eventTimeFormat),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue