Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
7 lines (6 sloc) 191 Bytes
#!/usr/bin/env python3
from scapy.all import *
icmp_packets = sniff(filter="icmp",count=1)
for packet in icmp_packets:
if packet.haslayer(ICMP):
print((packet[Raw].load).decode('utf-8'))