mirror of
https://github.com/bettercap/bettercap
synced 2025-07-06 04:52:10 -07:00
misc: each module now has its own tagged logging
This commit is contained in:
parent
9003be56ca
commit
9cd4e380fb
47 changed files with 343 additions and 349 deletions
|
@ -1,10 +1,9 @@
|
|||
package https_proxy
|
||||
|
||||
import (
|
||||
"github.com/bettercap/bettercap/log"
|
||||
"github.com/bettercap/bettercap/modules/http_proxy"
|
||||
"github.com/bettercap/bettercap/session"
|
||||
"github.com/bettercap/bettercap/tls"
|
||||
"github.com/bettercap/bettercap/modules/http_proxy"
|
||||
|
||||
"github.com/evilsocket/islazy/fs"
|
||||
)
|
||||
|
@ -127,15 +126,15 @@ func (p *HttpsProxy) Configure() error {
|
|||
return err
|
||||
}
|
||||
|
||||
log.Debug("%+v", cfg)
|
||||
log.Info("Generating proxy certification authority TLS key to %s", keyFile)
|
||||
log.Info("Generating proxy certification authority TLS certificate to %s", certFile)
|
||||
p.Debug("%+v", cfg)
|
||||
p.Info("generating proxy certification authority TLS key to %s", keyFile)
|
||||
p.Info("generating proxy certification authority TLS certificate to %s", certFile)
|
||||
if err := tls.Generate(cfg, certFile, keyFile); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
log.Info("loading proxy certification authority TLS key from %s", keyFile)
|
||||
log.Info("loading proxy certification authority TLS certificate from %s", certFile)
|
||||
p.Info("loading proxy certification authority TLS key from %s", keyFile)
|
||||
p.Info("loading proxy certification authority TLS certificate from %s", certFile)
|
||||
}
|
||||
|
||||
return p.proxy.ConfigureTLS(address, proxyPort, httpPort, scriptPath, certFile, keyFile, jsToInject, stripSSL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue