How to run: python generate_icap.py packet1.txt This will generate packet1.icap, then try it out on Wireshark.