From d6d75ee3904db949aaf79fd33d7ae580ca2f7079 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Thu, 8 Feb 2018 04:59:57 +0100 Subject: [PATCH] balls --- modules/http_proxy.go | 2 ++ modules/http_proxy_base.go | 3 +++ 2 files changed, 5 insertions(+) diff --git a/modules/http_proxy.go b/modules/http_proxy.go index 9f1075a7..1ad38b78 100644 --- a/modules/http_proxy.go +++ b/modules/http_proxy.go @@ -1,6 +1,7 @@ package modules import ( + "fmt" "github.com/evilsocket/bettercap-ng/session" ) @@ -36,6 +37,7 @@ func NewHttpProxy(s *session.Session) *HttpProxy { p.AddHandler(session.NewModuleHandler("http.proxy on", "", "Start HTTP proxy.", func(args []string) error { + fmt.Printf("\nproxy.start\n") return p.Start() })) diff --git a/modules/http_proxy_base.go b/modules/http_proxy_base.go index 6353aa84..ae3670a1 100644 --- a/modules/http_proxy_base.go +++ b/modules/http_proxy_base.go @@ -246,6 +246,7 @@ func (p *HTTPProxy) ConfigureTLS(address string, proxyPort int, httpPort int, sc } func (p *HTTPProxy) httpWorker() error { + fmt.Printf(" httpWorker\n") p.isRunning = true return p.Server.ListenAndServe() } @@ -327,7 +328,9 @@ func (p *HTTPProxy) httpsWorker() error { } func (p *HTTPProxy) Start() { + fmt.Printf("httpproxybase.start\n") go func() { + fmt.Printf("httpproxybase.start go routine\n") var err error if p.isTLS == true {