Skip to content

Instantly share code, notes, and snippets.

@noraj
Created May 4, 2019 17:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save noraj/d4af1b1e7ab869abb4a71f0698f55695 to your computer and use it in GitHub Desktop.
Save noraj/d4af1b1e7ab869abb4a71f0698f55695 to your computer and use it in GitHub Desktop.
Quick bash script using dig for AXFR zone transfer enum
#!/bin/bash
domain='zonetransfer.me'
ns=$(dig +noall +answer NS $domain | awk '{print $5}')
for server in $ns
do
dig @$server AXFR $domain
done
@noraj
Copy link
Author

noraj commented May 4, 2019

Asciinema (video demo):

asciicast

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment