misc: using script to detect karma attacks

This commit is contained in:
Simone Margaritelli 2021-04-07 17:04:28 +02:00
parent bfe307ffe6
commit 6aa8f45d20
2 changed files with 45 additions and 18 deletions

View file

@ -127,7 +127,9 @@ func (mod *EventsStream) Render(output io.Writer, e session.Event) {
mod.viewSynScanEvent(output, e)
} else if e.Tag == "update.available" {
mod.viewUpdateEvent(output, e)
} else {
} else if strings.HasPrefix(e.Tag, "graph.") {
mod.viewGraphEvent(output, e)
} else if e.Tag != "tick" {
fmt.Fprintf(output, "[%s] [%s] %v\n", e.Time.Format(mod.timeFormat), tui.Green(e.Tag), e)
}
}