mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
new: implemented GET /api/events route (ref #5).
This commit is contained in:
parent
ee4b783015
commit
269d7d845b
14 changed files with 172 additions and 38 deletions
5
main.go
5
main.go
|
@ -1,6 +1,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"runtime"
|
||||
"strings"
|
||||
|
||||
|
@ -20,8 +21,8 @@ func main() {
|
|||
panic(err)
|
||||
}
|
||||
|
||||
log.Infof("Starting %s v%s\n", core.Name, core.Version)
|
||||
log.Infof("Build: date=%s os=%s arch=%s\n", core.BuildDate, runtime.GOOS, runtime.GOARCH)
|
||||
fmt.Printf("%s v%s\n", core.Name, core.Version)
|
||||
fmt.Printf("Build: date=%s os=%s arch=%s\n\n", core.BuildDate, runtime.GOOS, runtime.GOARCH)
|
||||
|
||||
sess.Register(session_modules.NewProber(sess))
|
||||
sess.Register(session_modules.NewDiscovery(sess))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue