Skip to content

Instantly share code, notes, and snippets.

@thepacketgeek
Last active December 25, 2015 04:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save thepacketgeek/6920022 to your computer and use it in GitHub Desktop.
Save thepacketgeek/6920022 to your computer and use it in GitHub Desktop.
Ping an IP and print out the summary of the response packets
from scapy.all import *
print sr1(IP(dst="4.2.2.1")/ICMP()).summary()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment