From 5c2dc44a2d6624ba2483ce30917af1f77ba8c243 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Sun, 14 Jan 2018 20:19:52 +0100 Subject: [PATCH] new: spoofing godaddy ca --- modules/https_proxy.go | 4 ++-- tls/cert.go | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/modules/https_proxy.go b/modules/https_proxy.go index 8240c6cb..1bd04406 100644 --- a/modules/https_proxy.go +++ b/modules/https_proxy.go @@ -32,12 +32,12 @@ func NewHttpsProxy(s *session.Session) *HttpsProxy { "Port to bind the HTTPS proxy to.")) p.AddParam(session.NewStringParameter("https.proxy.certificate", - "~/.bcap-https.proxy-ca.certificate.pem", + "~/.bettercap-ca.cert.pem", "", "HTTPS proxy certification authority TLS certificate file.")) p.AddParam(session.NewStringParameter("https.proxy.key", - "~/.bcap-https.proxy-ca.key.pem", + "~/.bettercap-ca.key.pem", "", "HTTPS proxy certification authority TLS key file.")) diff --git a/tls/cert.go b/tls/cert.go index cda2c127..3561751d 100644 --- a/tls/cert.go +++ b/tls/cert.go @@ -41,9 +41,11 @@ func Generate(certPath string, keyPath string) error { template := x509.Certificate{ SerialNumber: serialNumber, Subject: pkix.Name{ - CommonName: "www.cisco.com", - Organization: []string{"Cisco Systems, Inc."}, - OrganizationalUnit: []string{"Cisco Systems, Inc."}, + Country: []string{"US"}, + Locality: []string{"Scottsdale"}, + Organization: []string{"GoDaddy.com, Inc."}, + OrganizationalUnit: []string{"http://certs.godaddy.com/repository/"}, + CommonName: "Go Daddy Secure Certificate Authority - G2", }, NotBefore: notBefore, NotAfter: notAfter,