3 # disable IPv6 error message
5 logging.getLogger("scapy.runtime").setLevel(logging.ERROR)
6 from scapy.all import *
7 logging.getLogger("scapy.runtime").setLevel(logging.WARN)
8 from pprint import pprint
10 # disable payload parsing (saves two seconds runtime^^)
15 for p in PcapReader('large_flow.pcap'):
21 bin = "{0:016b}".format(id)
22 upper = int(bin[0:8], 2)
23 lower = int(bin[8:16], 2)
24 print ("Upper: %s, Lower: %s" % (bin[0:8], bin[8:16]))
25 print ("Full: %s" % (bin))
29 with open('stream_encrypted', 'a+') as encfile: