mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 05:23:19 -07:00
new: realtime network stats can now be used in the prompt
This commit is contained in:
parent
e7da2d4287
commit
75b423ab2d
7 changed files with 31 additions and 4 deletions
|
@ -91,7 +91,7 @@ func (s *EventsStream) Start() error {
|
|||
fmt.Printf("[%s] [%s] %v\n", tm, core.Green(e.Tag), e.Data)
|
||||
}
|
||||
|
||||
s.Session.Input.Refresh()
|
||||
s.Session.Refresh()
|
||||
}
|
||||
break
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ func (s *ProxyScript) defineBuiltins() error {
|
|||
fmt.Printf("%s", v.String())
|
||||
}
|
||||
fmt.Println()
|
||||
s.sess.Input.Refresh()
|
||||
s.sess.Refresh()
|
||||
|
||||
return otto.Value{}
|
||||
})
|
||||
|
|
|
@ -32,5 +32,5 @@ func NewSnifferEvent(t time.Time, proto string, src string, dst string, data Sni
|
|||
func (e SnifferEvent) Push() {
|
||||
fmt.Printf("%s\n", e.Message)
|
||||
session.I.Events.Add("net.sniff.leak."+e.Protocol, e.Data)
|
||||
session.I.Input.Refresh()
|
||||
session.I.Refresh()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue