Skip to content

Instantly share code, notes, and snippets.

@akirayou
Created July 26, 2021 12:46
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akirayou/44840d9d2374430c400c97a66904f226 to your computer and use it in GitHub Desktop.
Save akirayou/44840d9d2374430c400c97a66904f226 to your computer and use it in GitHub Desktop.
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