I am trying to write the response received for ICMP query into excel sheet below is the sample code
from scapy.layers.inet import *
a1= IP(dst="192.168.1.1")/ICMP()
a = sr1(IP(dst="192.168.1.1")/ICMP(), iface="Wireless Network Connection", timeout=10)
b = a.summary()
# Create file workbook and worksheet
outworkbook = xlsxwriter.Workbook('output.xlsx')
outsheet = outworkbook.add_worksheet()
# writing headers
outsheet.write("A1", "Requests")
outsheet.write("B1", "Response")
# writing data
outsheet.write("A2", a1)
outsheet.write("B2", b)
created excel has only headers and the response value is not written I tried few other things as well, but nothing worked so far Any idea whats wrong with this code?