Skip to content

Instantly share code, notes, and snippets.

@d1b
Created July 25, 2011 18:02
Show Gist options
  • Save d1b/1104728 to your computer and use it in GitHub Desktop.
Save d1b/1104728 to your computer and use it in GitHub Desktop.
from scapy.all import *
from scapy.config import conf
from scapy.themes import DefaultTheme
def more_info(packet):
print packet.summary()
if packet.haslayer('IPv6'):
print "%s " % packet.show()
#else:
#print packet.summary()
conf.color_theme = DefaultTheme()
#prn = prn = lambda x: print " %s" % x.summary()
#ip6
sniff(filter="not tcp port 22 and not udp port 2055", prn=more_info, store=0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment