-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlist_pinning.py
More file actions
18 lines (16 loc) · 777 Bytes
/
list_pinning.py
File metadata and controls
18 lines (16 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import json
with open('orig_behavior.results.tmo') as origins_data:
orig_data=json.load(origins_data)
print()
print('Looking for origin behaviors with cqai.app.t-mobile.com in custom certificates')
print()
for prop in orig_data:
if len(prop['matchLocationResults']) > 0:
for loc_results in prop['matchLocationResults']:
try:
if len(loc_results['options']['customCertificates']) > 0:
for cust_cert in loc_results['options']['customCertificates']:
if 'cqai' in cust_cert['subjectCN']:
print("%s found in origin %s in property %s"%(cust_cert['subjectCN'],loc_results['options']['hostname'],prop['propertyName']))
except:
pass