chg: [worker2 ja3] add debug

pull/23/head
Terrtia 2019-04-24 10:21:03 +02:00
parent e4e4d8d57e
commit 0816a93efe
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
1 changed files with 20 additions and 18 deletions

View File

@ -38,9 +38,11 @@ class TypeHandler(MetaTypesDefault):
# Extract certificates from json # Extract certificates from json
try: try:
mtjson = json.loads(decoded_data) mtjson = json.loads(decoded_data)
res = True
except Exception as e: except Exception as e:
print(decoded_data) print(decoded_data)
continue res = False
if res:
#mtjson = json.loads(decoded_data) #mtjson = json.loads(decoded_data)
for certificate in mtjson["Certificates"] or []: for certificate in mtjson["Certificates"] or []:
cert = binascii.a2b_base64(certificate["Raw"]) cert = binascii.a2b_base64(certificate["Raw"])