Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from scapy.all import *
def r(a):
if(a[3].qd is None or 1 != a[3].qd.qtype ):return
print(a[3].qd.qname.decode('utf-8'))
sniff(filter="udp and port 5353",prn=r,count=10000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment