Skip to content

Commit

Permalink
fix: encode all 'load' values not just in Raw
Browse files Browse the repository at this point in the history
  • Loading branch information
xhdix committed Jun 11, 2022
1 parent d365d1d commit 3a7faea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/convert_packetlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3a7faea

Please sign in to comment.