mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
refact: target -> endpoint
This commit is contained in:
parent
305e22ee2e
commit
36352311fb
3 changed files with 7 additions and 7 deletions
|
@ -20,7 +20,7 @@ func (s EventsStream) viewLogEvent(e session.Event) {
|
|||
e.Data.(session.LogMessage).Message)
|
||||
}
|
||||
|
||||
func (s EventsStream) viewTargetEvent(e session.Event) {
|
||||
func (s EventsStream) viewEndpointEvent(e session.Event) {
|
||||
t := e.Data.(*net.Endpoint)
|
||||
fmt.Printf("[%s] [%s] %s\n",
|
||||
e.Time.Format(eventTimeFormat),
|
||||
|
@ -47,8 +47,8 @@ func (s *EventsStream) View(e session.Event, refresh bool) {
|
|||
if s.filter == "" || strings.Contains(e.Tag, s.filter) {
|
||||
if e.Tag == "sys.log" {
|
||||
s.viewLogEvent(e)
|
||||
} else if strings.HasPrefix(e.Tag, "target.") {
|
||||
s.viewTargetEvent(e)
|
||||
} else if strings.HasPrefix(e.Tag, "endpoint.") {
|
||||
s.viewEndpointEvent(e)
|
||||
} else if strings.HasPrefix(e.Tag, "mod.") {
|
||||
s.viewModuleEvent(e)
|
||||
} else if strings.HasPrefix(e.Tag, "net.sniff.") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue