Created
July 25, 2011 18:02
-
-
Save d1b/1104728 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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