Created
May 4, 2019 17:44
-
-
Save noraj/d4af1b1e7ab869abb4a71f0698f55695 to your computer and use it in GitHub Desktop.
Quick bash script using dig for AXFR zone transfer enum
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
domain='zonetransfer.me' | |
ns=$(dig +noall +answer NS $domain | awk '{print $5}') | |
for server in $ns | |
do | |
dig @$server AXFR $domain | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Asciinema (video demo):