Skip to content

Instantly share code, notes, and snippets.

@leeyoungseok
Created August 17, 2020 22:09
Show Gist options
  • Save leeyoungseok/5d2e30dfc8ee7e0948556419da83d584 to your computer and use it in GitHub Desktop.
Save leeyoungseok/5d2e30dfc8ee7e0948556419da83d584 to your computer and use it in GitHub Desktop.
from scapy.all import *
answer = sr1(IP(dst="8.8.8.8")/UDP(dport=53)/DNS(rd=1,qd=DNSQR(qname="networks.cnu.ac.kr")),verbose=1)
print(answer[DNS].summary())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment