项目作者: msfidelis

项目描述 :
:spider: :spider: :spider: Validate SSL Certificates around web
高级语言: Go
项目地址: git://github.com/msfidelis/cassler.git
创建时间: 2020-10-04T16:12:05Z
项目社区:https://github.com/msfidelis/cassler

开源协议:

下载


logo



Documentation


License: MIT


Twitter: fidelissauro


Build CI


Release

Cassler - SSL Validator Tool

Cassler is an CA’s and SSL certificates analyzer. But if your read fast, it’s sounds like “Cassia Eller”

Tooling to validate HTTPS Certificates and Connections Around Web :spider:

Running Tests

  1. go test -v -race

Running Linter

  1. golint -set_exit_status ./...

Installation

Using Go tools

  1. go get github.com/msfidelis/cassler

On MacOSX amd64

  1. wget https://github.com/msfidelis/cassler/releases/download/v1.0.2/cassler_1.0.2_darwin_amd64 -O /usr/local/bin/cassler
  2. chmod +x /usr/local/bin/cassler

On MacOSX arm64

  1. wget https://github.com/msfidelis/cassler/releases/download/v1.0.2/cassler_1.0.2_darwin_arm64 -O /usr/local/bin/cassler
  2. chmod +x /usr/local/bin/cassler

On Linux x64

  1. wget https://github.com/msfidelis/cassler/releases/download/v1.0.2/cassler_1.0.2_linux_amd64 -O /usr/local/bin/cassler
  2. chmod +x /usr/local/bin/cassler

Running on Docker

  1. docker run -it fidelissauro/cassler:latest --url google.com

Usage

  1. cassler -h
  2. -dns string
  3. DNS Server, default 8.8.8.8 (default "8.8.8.8")
  4. -lookup
  5. Check reverse DNS Lookup for hosts IP's
  6. -mode check
  7. Actions; Default: check; Available options `check` for check certificates, `tls` to test TLS connection, `scan` for complete checks on hosts (default "check")
  8. -port int
  9. Server port, default: 443 (default 443)
  10. -url string
  11. URL to validate SSL certificate,ex: https://google.com

Check Certificates

  1. cassler --url google.com.br
  2. Checking Certificates: google.com.br on port 443
  3. Server Certificate:
  4. Common Name: *.google.com.br
  5. Issuer: CN=GTS CA 1O1,O=Google Trust Services,C=US
  6. Subject: CN=*.google.com.br,O=Google LLC,L=Mountain View,ST=California,C=US
  7. Signature Algorithm: SHA256-RSA
  8. Created: 2020-09-22 15:29:04 +0000 UTC
  9. Expires: 2020-12-15 15:29:04 +0000 UTC
  10. Expiration time: 64 days
  11. Certificate Version: 3
  12. DNS Names:
  13. - *.google.com.br
  14. - google.com.br
  15. Issuing Certificate URL's:
  16. - http://pki.goog/gsr2/GTS1O1.crt
  17. Server IP's:
  18. * 2800:3f0:4001:81b::2003
  19. * 172.217.173.99
  20. Certificate Authority:
  21. GTS CA 1O1
  22. Issuer: CN=GlobalSign,OU=GlobalSign Root CA - R2,O=GlobalSign
  23. Subject: CN=GTS CA 1O1,O=Google Trust Services,C=US
  24. Signature Algorithm: SHA256-RSA
  25. Created: 2017-06-15 00:00:42 +0000 UTC
  26. Expires: 2021-12-15 00:00:42 +0000 UTC
  27. Expiration time: 429 days
  28. Certificate Version: 3

Check TLS Versions Enabled on Servers

  1. cassler --url https://google.com --mode tls
  2. Testing TLS Versions: google.com on port 443
  3. TLS Versions Enabled on 2800:3f0:4001:813::200e:
  4. - tls1.0: true
  5. - tls1.1: true
  6. - tls1.2: true
  7. - tls1.3: true
  8. TLS Versions Enabled on 172.217.162.142:
  9. - tls1.0: true
  10. - tls1.1: true
  11. - tls1.2: true
  12. - tls1.3: true

Check TLS Versions Enabled on Servers, with Reverse DNS Lookup

  1. cassler --url https://google.com --mode tls --lookup
  2. Testing TLS Versions: google.com on port 443
  3. DNS Lookup on: 8.8.8.8
  4. TLS Versions Enabled on 2800:3f0:4001:824::200e:
  5. - tls1.0: true
  6. - tls1.1: true
  7. - tls1.2: true
  8. - tls1.3: true
  9. TLS Versions Enabled on 142.250.219.174:
  10. - tls1.0: true
  11. - tls1.1: true
  12. - tls1.2: true
  13. - tls1.3: true
  14. Starting reverse DNS Lookup on: 2800:3f0:4001:824::200e:
  15. Starting reverse DNS Lookup on: 142.250.219.174:
  16. 142.250.219.174: gru06s63-in-f14.1e100.net.

Full Scan

  1. cassler --url https://tls-v1-2.badssl.com --port 1012 --mode scan
  2. Checking Certificates: tls-v1-2.badssl.com on port 1012
  3. DNS Lookup on: 8.8.8.8
  4. Server Certificate:
  5. Common Name: *.badssl.com
  6. Issuer: CN=R3,O=Let's Encrypt,C=US
  7. Subject: CN=*.badssl.com
  8. Signature Algorithm: SHA256-RSA
  9. Created: 2022-08-12 14:57:46 +0000 UTC
  10. Expires: 2022-11-10 14:57:45 +0000 UTC
  11. Expiration time: 83 days
  12. Certificate Version: 3
  13. DNS Names:
  14. - *.badssl.com
  15. - badssl.com
  16. Issuing Certificate URL's:
  17. - http://r3.i.lencr.org/
  18. Server IP's:
  19. * 104.154.89.105
  20. Certificate Authority:
  21. R3
  22. Issuer: CN=ISRG Root X1,O=Internet Security Research Group,C=US
  23. Subject: CN=R3,O=Let's Encrypt,C=US
  24. Signature Algorithm: SHA256-RSA
  25. Created: 2020-09-04 00:00:00 +0000 UTC
  26. Expires: 2025-09-15 16:00:00 +0000 UTC
  27. Expiration time: 1123 days
  28. Certificate Version: 3
  29. Issuing Certificate URL's:
  30. - http://x1.i.lencr.org/
  31. ISRG Root X1
  32. Issuer: CN=DST Root CA X3,O=Digital Signature Trust Co.
  33. Subject: CN=ISRG Root X1,O=Internet Security Research Group,C=US
  34. Signature Algorithm: SHA256-RSA
  35. Created: 2021-01-20 19:14:03 +0000 UTC
  36. Expires: 2024-09-30 18:14:03 +0000 UTC
  37. Expiration time: 773 days
  38. Certificate Version: 3
  39. Issuing Certificate URL's:
  40. - http://apps.identrust.com/roots/dstrootcax3.p7c
  41. Testing TLS Versions: tls-v1-2.badssl.com on port 1012
  42. DNS Lookup on: 8.8.8.8
  43. TLS Versions Enabled on 104.154.89.105:
  44. - tls1.0: false
  45. - tls1.1: false
  46. - tls1.2: true
  47. - tls1.3: false
  48. Starting reverse DNS Lookup on: 104.154.89.105:
  49. 104.154.89.105: 105.89.154.104.bc.googleusercontent.com.

Specify a DNS Server

  1. cassler --url raj.ninja --mode scan --dns 1.1.1.1
  2. Checking Certificates: raj.ninja on port 443
  3. DNS Lookup on: 1.1.1.1
  4. Server Certificate:
  5. Common Name: raj.ninja
  6. Issuer: CN=Let's Encrypt Authority X3,O=Let's Encrypt,C=US
  7. Subject: CN=raj.ninja
  8. Signature Algorithm: SHA256-RSA
  9. Created: 2020-11-26 20:46:27 +0000 UTC
  10. Expires: 2021-02-24 20:46:27 +0000 UTC
  11. Expiration time: 78 days
  12. Certificate Version: 3
  13. DNS Names:
  14. - raj.ninja
  15. Issuing Certificate URL's:
  16. - http://cert.int-x3.letsencrypt.org/
  17. Server IP's:
  18. * 185.199.110.153
  19. * 185.199.111.153
  20. * 185.199.109.153
  21. * 185.199.108.153

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT