from scapy.all import *

Ether().show()

IP().display()
a, b = sr(IP(dst="www.google.com", tos=72) / ICMP(id=1, length=256, seq=57))

a.show()
print(a)
def write(pkt):
    wrpcap('ICMPSRHW02.pcap', pkt, append=True)  # appends packet to output file

for pkt in a:
        write(pkt)  # sends the packet
        print('pkt == ', pkt)