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/

3 comments:

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

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

    another from twitter

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

    ReplyDelete