From 3a7faeabb99f544799edf382d56cdb3662ca61a9 Mon Sep 17 00:00:00 2001 From: xhdix Date: Sat, 11 Jun 2022 21:25:53 +0300 Subject: [PATCH] fix: encode all 'load' values not just in Raw --- utils/convert_packetlist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/convert_packetlist.py b/utils/convert_packetlist.py index d3edb4a..ea0cb5c 100644 --- a/utils/convert_packetlist.py +++ b/utils/convert_packetlist.py @@ -14,7 +14,7 @@ def packet2json(packet_obj, public_ip): elif '=' in line: key, val = line.split('=', 1) val = val.replace(public_ip, '127.1.2.7') - if layer == 'Raw' and key.strip() == 'load': + if key.strip() == 'load': packet_dict[layer][key.strip()] = b64encode( packet_obj['Raw'].load).decode() else: