daily pastebin goal
24%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from scapy.all import *
  2.  
  3.  
  4. def imprimir_pacote(packet):
  5.     if packet[ICMP].payload:
  6.         print("\n{} ----ICMP----> {}:\n{}".format(packet[IP].src,
  7.                                                          packet[IP].dst,
  8.                                                          str(bytes(packet[ICMP].payload))))
  9.  
  10.  
  11. sniff(filter='icmp', prn=imprimir_pacote, store=0, count=0)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top