mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
balls
This commit is contained in:
parent
81b2683bcf
commit
d6d75ee390
2 changed files with 5 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
package modules
|
package modules
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"github.com/evilsocket/bettercap-ng/session"
|
"github.com/evilsocket/bettercap-ng/session"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -36,6 +37,7 @@ func NewHttpProxy(s *session.Session) *HttpProxy {
|
||||||
p.AddHandler(session.NewModuleHandler("http.proxy on", "",
|
p.AddHandler(session.NewModuleHandler("http.proxy on", "",
|
||||||
"Start HTTP proxy.",
|
"Start HTTP proxy.",
|
||||||
func(args []string) error {
|
func(args []string) error {
|
||||||
|
fmt.Printf("\nproxy.start\n")
|
||||||
return p.Start()
|
return p.Start()
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
|
|
@ -246,6 +246,7 @@ func (p *HTTPProxy) ConfigureTLS(address string, proxyPort int, httpPort int, sc
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *HTTPProxy) httpWorker() error {
|
func (p *HTTPProxy) httpWorker() error {
|
||||||
|
fmt.Printf(" httpWorker\n")
|
||||||
p.isRunning = true
|
p.isRunning = true
|
||||||
return p.Server.ListenAndServe()
|
return p.Server.ListenAndServe()
|
||||||
}
|
}
|
||||||
|
@ -327,7 +328,9 @@ func (p *HTTPProxy) httpsWorker() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *HTTPProxy) Start() {
|
func (p *HTTPProxy) Start() {
|
||||||
|
fmt.Printf("httpproxybase.start\n")
|
||||||
go func() {
|
go func() {
|
||||||
|
fmt.Printf("httpproxybase.start go routine\n")
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
if p.isTLS == true {
|
if p.isTLS == true {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue