mirror of
https://github.com/bettercap/bettercap
synced 2025-07-13 00:23:49 -07:00
balls
This commit is contained in:
parent
93ae43fce3
commit
241c88a06b
2 changed files with 1 additions and 5 deletions
|
@ -64,7 +64,7 @@ func (f WindowsFirewall) generateRule(r *Redirection, enabled bool) []string {
|
||||||
if r.SrcAddress != "" {
|
if r.SrcAddress != "" {
|
||||||
rule = append(rule, fmt.Sprintf("connectaddress=%s", r.SrcAddress))
|
rule = append(rule, fmt.Sprintf("connectaddress=%s", r.SrcAddress))
|
||||||
} else {
|
} else {
|
||||||
rule = append(rule, fmt.Sprintf("connectaddress=%s", r.DstAddress))
|
// rule = append(rule, fmt.Sprintf("connectaddress=%s", r.DstAddress))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -247,7 +247,6 @@ 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()
|
||||||
}
|
}
|
||||||
|
@ -276,7 +275,6 @@ func (dumb dumbResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *HTTPProxy) httpsWorker() error {
|
func (p *HTTPProxy) httpsWorker() error {
|
||||||
fmt.Printf(" httpsWorker\n")
|
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
// listen to the TLS ClientHello but make it a CONNECT request instead
|
// listen to the TLS ClientHello but make it a CONNECT request instead
|
||||||
|
@ -330,9 +328,7 @@ 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