2018-04-18 09:48:19 +04:30
|
|
|
# SSL Checker
|
|
|
|
|
#### Simple Python script that collects SSL information from hosts
|
|
|
|
|
|
2018-04-18 16:32:41 +04:30
|
|
|
## About
|
2018-04-18 09:48:19 +04:30
|
|
|
|
|
|
|
|
It's a simple script running in python that collects SSL information then it returns the group of information in JSON.
|
|
|
|
|
|
2018-04-18 16:32:41 +04:30
|
|
|
## Requirements
|
|
|
|
|
|
|
|
|
|
You only need to installl pyOpenSSL:
|
|
|
|
|
|
|
|
|
|
`pip install pyopenssl`
|
|
|
|
|
|
|
|
|
|
## Usage
|
2018-04-18 09:48:19 +04:30
|
|
|
|
2018-04-18 09:59:32 +04:30
|
|
|
`python ssl_checker.py host1[:port] [host2:port] [host3:port]...`
|
|
|
|
|
|
|
|
|
|
Port is optional here. The script will use 443 if not specified.
|
2018-04-18 09:48:19 +04:30
|
|
|
|
2018-04-18 16:32:41 +04:30
|
|
|
## Example
|
2018-04-18 09:48:19 +04:30
|
|
|
|
|
|
|
|
```bash
|
2018-04-18 17:15:04 +04:30
|
|
|
narbeh@narbeh-xps:~/ssl-checker$ python ssl_checker.py test.com narbeh.org:443 archive.org facebook.com:443 twitter.com github.com google.com
|
|
|
|
|
Analyzing 7 hosts:
|
2018-04-18 09:48:19 +04:30
|
|
|
|
2018-04-18 17:15:04 +04:30
|
|
|
[+] test.com
|
|
|
|
|
[+] narbeh.org
|
2018-04-18 09:48:19 +04:30
|
|
|
[+] archive.org
|
2018-04-18 17:15:04 +04:30
|
|
|
[-] facebook.com failed: [Errno 111] Connection refused
|
|
|
|
|
[-] twitter.com failed: [Errno 111] Connection refused
|
|
|
|
|
[+] github.com
|
|
|
|
|
[+] google.com
|
2018-04-18 09:48:19 +04:30
|
|
|
|
2018-04-18 17:15:04 +04:30
|
|
|
5 successful and 2 failed.
|
2018-04-18 09:48:19 +04:30
|
|
|
```
|