| 1 | package https_proxyscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/ |
| 2 | |
| 3 | import ( |
| 4 | "github.com/bettercap/bettercap/modules/http_proxyscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/http_proxy`/" |
| 5 | "github.com/bettercap/bettercap/sessionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/" |
| 6 | "github.com/bettercap/bettercap/tlsscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/tls`/" |
| 7 | |
| 8 | "github.com/evilsocket/islazy/fsscip-go gomod github.com/evilsocket/islazy v1.11.0 `github.com/evilsocket/islazy/fs`/" |
| 9 | "github.com/evilsocket/islazy/strscip-go gomod github.com/evilsocket/islazy v1.11.0 `github.com/evilsocket/islazy/str`/" |
| 10 | ) |
| 11 | |
| 12 | type HttpsProxyscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy# struct { |
| 13 | sessionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/.SessionModulescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#SessionModule. |
| 14 | proxyscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#proxy. *http_proxyscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/http_proxy`/.HTTPProxyscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/http_proxy`/HTTPProxy# |
| 15 | } |
| 16 | |
| 17 | func NewHttpsProxyscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/NewHttpsProxy().(s *sessionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/.Sessionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/Session#) *HttpsProxyscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy# { |
| 18 | mod := &HttpsProxyscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#{ |
| 19 | SessionModulescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#SessionModule.: sessionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/.NewSessionModulescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/NewSessionModule().("https.proxy", s), |
| 20 | proxyscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#proxy.: http_proxyscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/http_proxy`/.NewHTTPProxyscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/http_proxy`/NewHTTPProxy().(s, "https.proxy"), |
| 21 | } |
| 22 | |
| 23 | mod.AddParamscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#AddParam().(sessionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/.NewIntParameterscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/NewIntParameter().("https.port", |
| 24 | "443", |
| 25 | "HTTPS port to redirect when the proxy is activated.")) |
| 26 | |
| 27 | mod.AddParamscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#AddParam().(sessionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/.NewStringParameterscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/NewStringParameter().("https.proxy.address", |
| 28 | sessionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/.ParamIfaceAddressscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/ParamIfaceAddress., |
| 29 | sessionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/.IPv4Validatorscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/IPv4Validator., |
| 30 | "Address to bind the HTTPS proxy to.")) |
| 31 | |
| 32 | mod.AddParamscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#AddParam().(sessionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/.NewIntParameterscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/NewIntParameter().("https.proxy.port", |
| 33 | "8083", |
| 34 | "Port to bind the HTTPS proxy to.")) |
| 35 | |
| 36 | mod.AddParamscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#AddParam().(sessionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/.NewBoolParameterscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/NewBoolParameter().("https.proxy.redirect", |
| 37 | "true", |
| 38 | "Enable or disable port redirection with iptables.")) |
| 39 | |
| 40 | mod.AddParamscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#AddParam().(sessionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/.NewBoolParameterscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/NewBoolParameter().("https.proxy.sslstrip", |
| 41 | "false", |
| 42 | "Enable or disable SSL stripping.")) |
| 43 | |
| 44 | mod.AddParamscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#AddParam().(sessionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/.NewStringParameterscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/NewStringParameter().("https.proxy.injectjs", |
| 45 | "", |
| 46 | "", |
| 47 | "URL, path or javascript code to inject into every HTML page.")) |
| 48 | |
| 49 | mod.AddParamscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#AddParam().(sessionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/.NewStringParameterscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/NewStringParameter().("https.proxy.certificate", |
| 50 | "~/.bettercap-ca.cert.pem", |
| 51 | "", |
| 52 | "HTTPS proxy certification authority TLS certificate file.")) |
| 53 | |
| 54 | mod.AddParamscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#AddParam().(sessionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/.NewStringParameterscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/NewStringParameter().("https.proxy.key", |
| 55 | "~/.bettercap-ca.key.pem", |
| 56 | "", |
| 57 | "HTTPS proxy certification authority TLS key file.")) |
| 58 | |
| 59 | tlsscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/tls`/.CertConfigToModulescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/tls`/CertConfigToModule().("https.proxy", &mod.SessionModulescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#SessionModule., tlsscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/tls`/.DefaultSpoofConfigscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/tls`/DefaultSpoofConfig.) |
| 60 | |
| 61 | mod.AddParamscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#AddParam().(sessionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/.NewStringParameterscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/NewStringParameter().("https.proxy.script", |
| 62 | "", |
| 63 | "", |
| 64 | "Path of a proxy JS script.")) |
| 65 | |
| 66 | mod.AddParamscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#AddParam().(sessionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/.NewStringParameterscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/NewStringParameter().("https.proxy.blacklist", "", "", |
| 67 | "Comma separated list of hostnames to skip while proxying (wildcard expressions can be used).")) |
| 68 | |
| 69 | mod.AddParamscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#AddParam().(sessionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/.NewStringParameterscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/NewStringParameter().("https.proxy.whitelist", "", "", |
| 70 | "Comma separated list of hostnames to proxy if the blacklist is used (wildcard expressions can be used).")) |
| 71 | |
| 72 | mod.AddHandlerscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#AddHandler().(sessionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/.NewModuleHandlerscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/NewModuleHandler().("https.proxy on", "", |
| 73 | "Start HTTPS proxy.", |
| 74 | func(args []string) error { |
| 75 | return mod.Startscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#Start().() |
| 76 | })) |
| 77 | |
| 78 | mod.AddHandlerscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#AddHandler().(sessionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/.NewModuleHandlerscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/NewModuleHandler().("https.proxy off", "", |
| 79 | "Stop HTTPS proxy.", |
| 80 | func(args []string) error { |
| 81 | return mod.Stopscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#Stop().() |
| 82 | })) |
| 83 | |
| 84 | mod.InitStatescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#InitState().("stripper") |
| 85 | |
| 86 | return mod |
| 87 | } |
| 88 | |
| 89 | func (mod *HttpsProxyscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#) Namescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#Name().() string { |
| 90 | return "https.proxy" |
| 91 | } |
| 92 | |
| 93 | func (mod *HttpsProxyscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#) Descriptionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#Description().() string { |
| 94 | return "A full featured HTTPS proxy that can be used to inject malicious contents into webpages, all HTTPS traffic will be redirected to it." |
| 95 | } |
| 96 | |
| 97 | func (mod *HttpsProxyscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#) Authorscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#Author().() string { |
| 98 | return "Simone Margaritelli <[email protected]>" |
| 99 | } |
| 100 | |
| 101 | func (mod *HttpsProxyscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#) Configurescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#Configure().() error { |
| 102 | var err error |
| 103 | var address string |
| 104 | var proxyPort int |
| 105 | var httpPort int |
| 106 | var doRedirect bool |
| 107 | var scriptPath string |
| 108 | var certFile string |
| 109 | var keyFile string |
| 110 | var stripSSL bool |
| 111 | var jsToInject string |
| 112 | var whitelist string |
| 113 | var blacklist string |
| 114 | |
| 115 | if mod.Runningscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#Running().() { |
| 116 | return sessionscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/.ErrAlreadyStartedscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/ErrAlreadyStarted().(mod.Namescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#Name().()) |
| 117 | } else if err, address = mod.StringParamscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#StringParam().("https.proxy.address"); err != nil { |
| 118 | return err |
| 119 | } else if err, proxyPort = mod.IntParamscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#IntParam().("https.proxy.port"); err != nil { |
| 120 | return err |
| 121 | } else if err, httpPort = mod.IntParamscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#IntParam().("https.port"); err != nil { |
| 122 | return err |
| 123 | } else if err, doRedirect = mod.BoolParamscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#BoolParam().("https.proxy.redirect"); err != nil { |
| 124 | return err |
| 125 | } else if err, stripSSL = mod.BoolParamscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#BoolParam().("https.proxy.sslstrip"); err != nil { |
| 126 | return err |
| 127 | } else if err, certFile = mod.StringParamscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#StringParam().("https.proxy.certificate"); err != nil { |
| 128 | return err |
| 129 | } else if certFile, err = fsscip-go gomod github.com/evilsocket/islazy v1.11.0 `github.com/evilsocket/islazy/fs`/.Expandscip-go gomod github.com/evilsocket/islazy v1.11.0 `github.com/evilsocket/islazy/fs`/Expand().(certFile); err != nil { |
| 130 | return err |
| 131 | } else if err, keyFile = mod.StringParamscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#StringParam().("https.proxy.key"); err != nil { |
| 132 | return err |
| 133 | } else if keyFile, err = fsscip-go gomod github.com/evilsocket/islazy v1.11.0 `github.com/evilsocket/islazy/fs`/.Expandscip-go gomod github.com/evilsocket/islazy v1.11.0 `github.com/evilsocket/islazy/fs`/Expand().(keyFile); err != nil { |
| 134 | return err |
| 135 | } else if err, scriptPath = mod.StringParamscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#StringParam().("https.proxy.script"); err != nil { |
| 136 | return err |
| 137 | } else if err, jsToInject = mod.StringParamscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#StringParam().("https.proxy.injectjs"); err != nil { |
| 138 | return err |
| 139 | } else if err, blacklist = mod.StringParamscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#StringParam().("https.proxy.blacklist"); err != nil { |
| 140 | return err |
| 141 | } else if err, whitelist = mod.StringParamscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#StringParam().("https.proxy.whitelist"); err != nil { |
| 142 | return err |
| 143 | } |
| 144 | |
| 145 | mod.proxyscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#proxy..Blacklistscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/http_proxy`/HTTPProxy#Blacklist. = strscip-go gomod github.com/evilsocket/islazy v1.11.0 `github.com/evilsocket/islazy/str`/.Commascip-go gomod github.com/evilsocket/islazy v1.11.0 `github.com/evilsocket/islazy/str`/Comma().(blacklist) |
| 146 | mod.proxyscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#proxy..Whitelistscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/http_proxy`/HTTPProxy#Whitelist. = strscip-go gomod github.com/evilsocket/islazy v1.11.0 `github.com/evilsocket/islazy/str`/.Commascip-go gomod github.com/evilsocket/islazy v1.11.0 `github.com/evilsocket/islazy/str`/Comma().(whitelist) |
| 147 | |
| 148 | if !fsscip-go gomod github.com/evilsocket/islazy v1.11.0 `github.com/evilsocket/islazy/fs`/.Existsscip-go gomod github.com/evilsocket/islazy v1.11.0 `github.com/evilsocket/islazy/fs`/Exists().(certFile) || !fsscip-go gomod github.com/evilsocket/islazy v1.11.0 `github.com/evilsocket/islazy/fs`/.Existsscip-go gomod github.com/evilsocket/islazy v1.11.0 `github.com/evilsocket/islazy/fs`/Exists().(keyFile) { |
| 149 | cfg, err := tlsscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/tls`/.CertConfigFromModulescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/tls`/CertConfigFromModule().("https.proxy", mod.SessionModulescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#SessionModule.) |
| 150 | if err != nil { |
| 151 | return err |
| 152 | } |
| 153 | |
| 154 | mod.Debugscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#Debug().("%+v", cfg) |
| 155 | mod.Infoscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#Info().("generating proxy certification authority TLS key to %s", keyFile) |
| 156 | mod.Infoscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#Info().("generating proxy certification authority TLS certificate to %s", certFile) |
| 157 | if err := tlsscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/tls`/.Generatescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/tls`/Generate().(cfg, certFile, keyFile, true); err != nil { |
| 158 | return err |
| 159 | } |
| 160 | } else { |
| 161 | mod.Infoscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#Info().("loading proxy certification authority TLS key from %s", keyFile) |
| 162 | mod.Infoscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#Info().("loading proxy certification authority TLS certificate from %s", certFile) |
| 163 | } |
| 164 | |
| 165 | error := mod.proxyscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#proxy..ConfigureTLSscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/http_proxy`/HTTPProxy#ConfigureTLS().(address, proxyPort, httpPort, doRedirect, scriptPath, certFile, keyFile, jsToInject, |
| 166 | stripSSL) |
| 167 | |
| 168 | // save stripper to share it with other http(s) proxies |
| 169 | mod.Statescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#State..Storescip-go gomod github.com/golang/go/src go1.16 sync/Map#Store().("stripper", mod.proxyscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#proxy..Stripperscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/http_proxy`/HTTPProxy#Stripper.) |
| 170 | |
| 171 | return error |
| 172 | } |
| 173 | |
| 174 | func (mod *HttpsProxyscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#) Startscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#Start().() error { |
| 175 | if err := mod.Configurescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#Configure().(); err != nil { |
| 176 | return err |
| 177 | } |
| 178 | |
| 179 | return mod.SetRunningscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#SetRunning().(true, func() { |
| 180 | mod.proxyscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#proxy..Startscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/http_proxy`/HTTPProxy#Start().() |
| 181 | }) |
| 182 | } |
| 183 | |
| 184 | func (mod *HttpsProxyscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#) Stopscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#Stop().() error { |
| 185 | mod.Statescip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#State..Storescip-go gomod github.com/golang/go/src go1.16 sync/Map#Store().("stripper", nil) |
| 186 | return mod.SetRunningscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/session`/SessionModule#SetRunning().(false, func() { |
| 187 | mod.proxyscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/https_proxy`/HttpsProxy#proxy..Stopscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/http_proxy`/HTTPProxy#Stop().() |
| 188 | }) |
| 189 | } |