Skip to content

Instantly share code, notes, and snippets.

@jjsantanna
Last active September 18, 2018 08:05
Show Gist options
  • Save jjsantanna/3c06a9f9d44f117fc665c04bc3e7c587 to your computer and use it in GitHub Desktop.
Save jjsantanna/3c06a9f9d44f117fc665c04bc3e7c587 to your computer and use it in GitHub Desktop.
from scapy.all import *
dnsServer="8.8.8.8"
query="utwente.nl"
spoofedIPsrc=?????
dnsRequest = IP(src=spoofedIPsrc,dst=dnsServer)/UDP(sport=12345,dport=53)/DNS(qd=DNSQR(qname=query, qtype="A",qclass="IN"))
sr1(dnsRequest)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment