Skip to content

Commit

Permalink
patch lower tshark version oid (#28)
Browse files Browse the repository at this point in the history
* Fix object-id error

* fix low tshark version use oid

tshark 3.2.3 use x509if_x509if_id
  • Loading branch information
ajinwu authored Nov 22, 2023
1 parent db3cac2 commit 76a7326
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/ja4.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,10 @@ def layer_update(x, pkt, layer):
if layer == 'x509af' and l:
[ x.update({key: l[f'tls_tls_{item}']}) for key, item in keymap['tls'].items() if f'tls_tls_{item}' in l ]
x.update({'issuer_sequence': l['x509if_x509if_rdnSequence']}) if 'x509if_x509if_rdnSequence' in l else None
x.update({'rdn_oids': l['x509if_x509if_oid']}) if 'x509if_x509if_oid' in l else None
if 'x509if_x509if_id' in l:
x.update({'rdn_oids':l['x509if_x509if_id']})
if 'x509if_x509if_oid' in l:
x.update({'rdn_oids':l['x509if_x509if_oid']})
x.update({'printable_certs': l['x509sat_x509sat_printableString']}) if 'x509sat_x509sat_printableString' in l else None

# Some extension types are a list bug #29
Expand Down

0 comments on commit 76a7326

Please sign in to comment.