mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
new: new limit optional argument for events.show
This commit is contained in:
parent
1353c47056
commit
3c2932514a
4 changed files with 37 additions and 24 deletions
|
@ -34,13 +34,6 @@ func (s EventsStream) viewEndpointEvent(e session.Event) {
|
|||
t.HwAddress,
|
||||
core.Bold(t.IpAddress),
|
||||
extra)
|
||||
} else if e.Tag == "endpoint.resolved" {
|
||||
if *session.I.Options.Debug {
|
||||
fmt.Printf("[%s] Endpoint %s resolved as %s.\n",
|
||||
e.Time.Format(eventTimeFormat),
|
||||
core.Bold(t.IpAddress),
|
||||
core.Yellow(t.Hostname))
|
||||
}
|
||||
} else if e.Tag == "endpoint.lost" {
|
||||
fmt.Printf("[%s] Endpoint %s lost.\n",
|
||||
e.Time.Format(eventTimeFormat),
|
||||
|
@ -54,12 +47,12 @@ func (s EventsStream) viewEndpointEvent(e session.Event) {
|
|||
}
|
||||
|
||||
func (s EventsStream) viewModuleEvent(e session.Event) {
|
||||
if *session.I.Options.Debug == true {
|
||||
fmt.Printf("[%s] [%s] %s\n",
|
||||
e.Time.Format(eventTimeFormat),
|
||||
core.Green(e.Tag),
|
||||
e.Data)
|
||||
}
|
||||
// if *session.I.Options.Debug == true {
|
||||
fmt.Printf("[%s] [%s] %s\n",
|
||||
e.Time.Format(eventTimeFormat),
|
||||
core.Green(e.Tag),
|
||||
e.Data)
|
||||
// }
|
||||
}
|
||||
|
||||
func (s EventsStream) viewSnifferEvent(e session.Event) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue