From 0f8cf7756eb4e407592aa41f42a2d6bb8b939fc5 Mon Sep 17 00:00:00 2001 From: Matt Carothers Date: Wed, 6 Nov 2024 14:18:48 -0500 Subject: [PATCH] Fixed a crash bug related to copying strings --- python/ja4x.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/ja4x.py b/python/ja4x.py index 11b8f9c..2a4fab0 100644 --- a/python/ja4x.py +++ b/python/ja4x.py @@ -51,9 +51,9 @@ def to_ja4x(x, debug_stream=-1): # Get issuer name from CN and ON by scanning the sequence. # This is very specific to the way tshark holds the sequence. if 'printable_certs' in x: - certs = x['printable_certs'].copy() - issuers = x['issuers'].copy() - subjects = x['subjects'].copy() + certs = str(x['printable_certs']) + issuers = str(x['issuers']) + subjects = str(x['subjects']) idx = 1 for _i, _s in zip(issuers, subjects): remove_oids(_i, ['550406', '55040b'])