-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.go
41 lines (31 loc) · 1007 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package main
import (
"net/http"
"github.com/chimaera/prototype/agents"
"github.com/chimaera/prototype/agents/scraper"
"github.com/chimaera/prototype/core"
"github.com/chimaera/prototype/db"
)
var (
olympus = (*core.Orchestrator)(nil)
)
func main() {
olympus = core.NewOrchestrator(32)
go http.ListenAndServe(":8181", core.NewHTTPProxy())
defer core.GetHTTPResponseCacheInstance().DestroyCacheStore()
olympus.Register(agents.NewDNSEnum())
olympus.Register(agents.NewIPChecker())
olympus.Register(agents.NewWhoisChecker())
olympus.Register(agents.NewTCPPortscanner())
// olympus.Register(agents.NewUDPPortscanner())
olympus.Register(agents.NewConfigChecker())
olympus.Register(agents.NewTakeoverChecker())
olympus.Register(scraper.NewSimpleScraper())
agents.RegisterPassiveDNSAgents(olympus)
inEvent := "new:hostname"
inType := db.NodeTypeHostname
inValue := "www.freelancer.com"
olympus.Start(inEvent, inType, inValue)
// dbase.Root().Print(log.Printf, 0)
olympus.Wait()
}