Read pcap through scapy and fetching a specific value
0 pcapFile=rdpcap(pcap) for pkt in pcapFile: try: if pkt[IP].src=='198.18.32.1' and pkt[IP].dst=='198.18.50.97' and pkt[IP].len>=400: data= pkt[Raw].load (Pdb) pkt[Raw] <Raw load='x00xabx0b(x00x00x01xdfxab(x05x04x03x05x00x00x00Sx03x0020181014T121200.0000000.... in wireshark bit followed for 00 ab 0b is 28 but what i get from scapy is a (.How to get the value 28 from scapy? python scapy share | improve this question asked Nov 14 '18 at 8:44 Awin Awin 51 7 add a comment | 0 pcapFile=rdpcap(pcap) for pkt in pcapFile: try: if pkt[IP].src=='198.18.32.1' and pkt[IP].dst=='198.18.50.97' and pkt[IP].len>=400: data= pkt[Raw].load (Pdb) pkt[Raw] <Raw load='x00xabx0b(x00x00x01xdfxab(x05x04x03x05x00x00x00Sx03x0020181014T121200.0000000.... in wireshark bit followed for 00 ab 0b is 28 but what i get from scapy is a (.How to get the value 28 from scapy? python scap...