Skip to content

Commit

Permalink
updated test_analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
JarryShaw committed Apr 13, 2023
1 parent a15e2b5 commit 930b917
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/test_analyse.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
# pprint.pprint(extraction.reassembly.tcp)
print()
for reassembly in extraction.reassembly.tcp:
for packet in reassembly.packets:
if pcapkit.HTTP in packet.protochain:
# with open('../sample/37fc254c-68c1-4677-9ed1-806c5eab8acb.dat', 'ab') as file:
# file.write(packet.info.raw.header or b'')
pprint.pprint(packet.info)
if reassembly.packet is None:
pprint.pprint(reassembly.payload)
else:
if pcapkit.HTTP in reassembly.packet:
pprint.pprint(reassembly.packet.info.to_dict())
else:
print(packet)
print(reassembly.packet)
print()

0 comments on commit 930b917

Please sign in to comment.