mirror of
https://github.com/bettercap/bettercap
synced 2025-07-13 16:43:49 -07:00
new: spoofing godaddy ca
This commit is contained in:
parent
21b8b4527f
commit
5c2dc44a2d
2 changed files with 7 additions and 5 deletions
|
@ -32,12 +32,12 @@ func NewHttpsProxy(s *session.Session) *HttpsProxy {
|
||||||
"Port to bind the HTTPS proxy to."))
|
"Port to bind the HTTPS proxy to."))
|
||||||
|
|
||||||
p.AddParam(session.NewStringParameter("https.proxy.certificate",
|
p.AddParam(session.NewStringParameter("https.proxy.certificate",
|
||||||
"~/.bcap-https.proxy-ca.certificate.pem",
|
"~/.bettercap-ca.cert.pem",
|
||||||
"",
|
"",
|
||||||
"HTTPS proxy certification authority TLS certificate file."))
|
"HTTPS proxy certification authority TLS certificate file."))
|
||||||
|
|
||||||
p.AddParam(session.NewStringParameter("https.proxy.key",
|
p.AddParam(session.NewStringParameter("https.proxy.key",
|
||||||
"~/.bcap-https.proxy-ca.key.pem",
|
"~/.bettercap-ca.key.pem",
|
||||||
"",
|
"",
|
||||||
"HTTPS proxy certification authority TLS key file."))
|
"HTTPS proxy certification authority TLS key file."))
|
||||||
|
|
||||||
|
|
|
@ -41,9 +41,11 @@ func Generate(certPath string, keyPath string) error {
|
||||||
template := x509.Certificate{
|
template := x509.Certificate{
|
||||||
SerialNumber: serialNumber,
|
SerialNumber: serialNumber,
|
||||||
Subject: pkix.Name{
|
Subject: pkix.Name{
|
||||||
CommonName: "www.cisco.com",
|
Country: []string{"US"},
|
||||||
Organization: []string{"Cisco Systems, Inc."},
|
Locality: []string{"Scottsdale"},
|
||||||
OrganizationalUnit: []string{"Cisco Systems, Inc."},
|
Organization: []string{"GoDaddy.com, Inc."},
|
||||||
|
OrganizationalUnit: []string{"http://certs.godaddy.com/repository/"},
|
||||||
|
CommonName: "Go Daddy Secure Certificate Authority - G2",
|
||||||
},
|
},
|
||||||
NotBefore: notBefore,
|
NotBefore: notBefore,
|
||||||
NotAfter: notAfter,
|
NotAfter: notAfter,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue