Skip to content

Modified version of cujanovic's dns.py for DNS Rebinding attacks.

Notifications You must be signed in to change notification settings

intrudir/DNS-Rebinder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

DNS-Rebinder

A modified version of cujanovic's dns.py for DNS Rebinding attacks. https://github.com/cujanovic/SSRF-Testing/blob/master/dns.py

Usage

sudo python3 dns-rebinder.py Whitelisted_IP Rebind_IP Server_IP Port Domain
  • Whitelisted_IP: IP that the target application likes
  • Rebind_IP: IP you want to switch to for the rebind attack
  • Server_IP: Server you're running the script on
  • Port: usually 53
  • Domain: Domain you're using to rebind attack.
sudo python3 dns-rebinder.py 8.8.8.8 127.0.0.1 x.x.x.x 53 attacker.com

test it out :)

dig anything.attacker.com

It will resolve to the whitelisted IP first, then the rebind IP on the 2nd(ish) resolve. image

About

Modified version of cujanovic's dns.py for DNS Rebinding attacks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages