Skip to content

Commit 9e15c44

Browse files
authored
Add IP address to html report (column 2) (#201)
1 parent 6e3dc16 commit 9e15c44

10 files changed

+394
-525
lines changed

Diff for: CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
3.1.0 - 2024-04-10
5+
==================
6+
7+
### Changed
8+
- Add IP address to html report (column 2) (#200)
9+
10+
411
3.0.0 - 2024-04-02
512
==================
613

Diff for: sample/SampleHtmlOutput.png

-67.6 KB
Loading

Diff for: sample/duckduckgo.com.json

+115-117
Large diffs are not rendered by default.

Diff for: sample/google.com.json

+259-401
Large diffs are not rendered by default.

Diff for: sample/summary.csv

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Host,Grade,HasWarnings,Cert Expiry,Chain Status,Forward Secrecy,Heartbeat ext,Vuln Beast,Vuln Drown,Vuln Heartbleed,Vuln FREAK,Vuln openSsl Ccs,Vuln openSSL LuckyMinus20,Vuln POODLE,Vuln POODLE TLS,Support RC4,RC4 with modern protocols,RC4 Only,TLS 1.3,TLS 1.2,TLS 1.1,TLS 1.0,SSL 3.0 INSECURE,SSL 2.0 INSECURE
2-
duckduckgo.com,A+,False,2024-11-05,none,Yes (with most browsers) ROBUST,False,False,None,False,False,False,False,False,False,False,False,False,Yes,Yes,No,No,No,No
3-
google.com,B,False,2024-05-27,none,With modern browsers,False,True,None,False,False,False,False,False,False,False,False,False,Yes,Yes,Yes,Yes,No,No
4-
google.com,B,False,2024-05-27,none,With modern browsers,False,True,None,False,False,False,False,False,False,False,False,False,Yes,Yes,Yes,Yes,No,No
1+
#Host,IP,Grade,HasWarnings,Cert Expiry,Chain Status,Forward Secrecy,Heartbeat ext,Vuln Beast,Vuln Drown,Vuln Heartbleed,Vuln FREAK,Vuln openSsl Ccs,Vuln openSSL LuckyMinus20,Vuln POODLE,Vuln POODLE TLS,Support RC4,RC4 with modern protocols,RC4 Only,TLS 1.3,TLS 1.2,TLS 1.1,TLS 1.0,SSL 3.0 INSECURE,SSL 2.0 INSECURE
2+
duckduckgo.com,52.250.42.157,A+,False,2024-11-05,none,Yes (with most browsers) ROBUST,False,False,None,False,False,False,False,False,False,False,False,False,Yes,Yes,No,No,No,No
3+
google.com,142.250.72.174,B,False,2024-05-27,none,With modern browsers,False,True,None,False,False,False,False,False,False,False,False,False,Yes,Yes,Yes,Yes,No,No
4+
google.com,2607:f8b0:4007:815:0:0:0:200e,B,False,2024-05-27,none,With modern browsers,False,True,None,False,False,False,False,False,False,False,False,False,Yes,Yes,Yes,Yes,No,No

Diff for: sample/summary.html

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ <h1>SSL Labs Analysis Summary Report</h1>
1111
<table class="tftable" border="1">
1212
<tr>
1313
<th>#Host</th>
14+
<th>IP</th>
1415
<th>Grade</th>
1516
<th>HasWarnings</th>
1617
<th>Cert Expiry</th>
@@ -37,6 +38,7 @@ <h1>SSL Labs Analysis Summary Report</h1>
3738
</tr>
3839
<tr class="A">
3940
<td>duckduckgo.com</td>
41+
<td>52.250.42.157</td>
4042
<td>A+</td>
4143
<td>False</td>
4244
<td>2024-11-05</td>
@@ -63,6 +65,7 @@ <h1>SSL Labs Analysis Summary Report</h1>
6365
</tr>
6466
<tr class="B">
6567
<td>google.com</td>
68+
<td>142.250.72.174</td>
6669
<td>B</td>
6770
<td>False</td>
6871
<td>2024-05-27</td>
@@ -89,6 +92,7 @@ <h1>SSL Labs Analysis Summary Report</h1>
8992
</tr>
9093
<tr class="B">
9194
<td>google.com</td>
95+
<td>2607:f8b0:4007:815:0:0:0:200e</td>
9296
<td>B</td>
9397
<td>False</td>
9498
<td>2024-05-27</td>

Diff for: setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import find_packages, setup
22

33
__title__ = "ssllabsscan"
4-
__version__ = "3.0.0"
4+
__version__ = "3.1.0"
55
__author__ = "Kay Hau"
66
__email__ = "[email protected]"
77
__uri__ = "https://github.com/kyhau/ssllabs-scan"

Diff for: ssllabsscan/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def output_summary_html(input_csv, output_html):
2929
if row[0].startswith("#"):
3030
data += " <tr>\n\t<th>{}</th>\n </tr>".format('</th>\n\t<th>'.join(row))
3131
else:
32-
data += '\n <tr class="{}">\n\t<td>{}</td>\n </tr>'.format(row[1][:1], '</td>\n\t<td>'.join(row))
32+
data += '\n <tr class="{}">\n\t<td>{}</td>\n </tr>'.format(row[2][:1], '</td>\n\t<td>'.join(row))
3333

3434
# Replace the target string
3535
content = REPORT_HTML

Diff for: ssllabsscan/ssllabs_client.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
]
4545

4646
SUMMARY_COL_NAMES = [
47-
"Host", "Grade", "HasWarnings", "Cert Expiry", "Chain Status", "Forward Secrecy", "Heartbeat ext"
47+
"Host", "IP", "Grade", "HasWarnings", "Cert Expiry", "Chain Status", "Forward Secrecy", "Heartbeat ext"
4848
] + VULNERABLES + RC4 + PROTOCOLS
4949

5050

@@ -140,6 +140,7 @@ def append_summary_csv(self, summary_file, host, data):
140140
# see SUMMARY_COL_NAMES
141141
summary = [
142142
host,
143+
ep.get("ipAddress"),
143144
ep["grade"],
144145
ep["hasWarnings"],
145146
na,

Diff for: ssllabsscan/tests/conftest.py

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"protocol": "HTTP",
1919
"endpoints": [
2020
{
21+
"ipAddress": "142.250.72.174",
2122
"statusMessage": "Ready",
2223
"grade": "A+",
2324
"hasWarnings": False,

0 commit comments

Comments
 (0)