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))
print("A = ", A)
A.show()
B.show()

def write(pkt):
    wrpcap('Jarrah.pcap', A, append=True)  # appends packet to output file

for pkt in A:
        write(pkt)  # sends the packet
        print('pkt == ', pkt)
