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('Roaa.pcap', a, append=True) # appends packet to output file

for pkt in a:
  write(pkt) # sends the packet
  print('pkt == ', pkt)