Tuesday, March 25, 2014

DNS Brute String


just sticking this here so i can find it later. thanks @mubix

cat hosts.txt | xargs -t -I subdomain dig +noall subdomain.THEDOMAIN.com +answer

update, rob pointed me to his post on it

http://www.room362.com/blog/2014/01/29/hostname-bruteforcing-on-the-cheap/
CG

3 comments:

Daniel Miller said...

To run multithreaded with one thread per CPU core, use Parallel: parallel -a hosts.txt -t -I subdomain dig +noall subdomain.THEDOMAIN.com +answer

CG said...

head -n 1000 /tmp/subs.txt | perl -pe 's/(.*)/$1.google.com/' | time adnshost -f -a -Vqx

another from twitter

Anonymous said...

or "dnsmap" : https://code.google.com/p/dnsmap/