Header

Fri, 15 Feb 2008

Horses and DNS BruteForcing..
@

Old timers here will know about the concept of bruteforcing DNS using the clues available..

i.e. zone transfers disabled, but u see that the NS and MX servers are called gandalf.company.com and elrond.company.com. Effectively trying frodo.company.com is going to make good sense..

To this end BidiBlah will do this automagically for u and tries to eek out info.. (a little while back i saw fierce-scanner pop up in a similar vein!)

Young Mr Wilkinson ran up against a company last night with disabled transfers, but the 2 DNS servers showed up as:

  • asimov.company.com
  • heinlein.company.com
A quick trip to wikipedia shows that both are american sci-fi authors. The awesome thing is that wikipedia has a tail link that usually links to  variations on your theme. i.e. in asimovs case, we have:

wiki.png
So.. a quick copy and paste (or wget) leaves u with a usable scifi.txt file.

We can then simply (quick and dirty) pipe this to awk to bruteforce surname.company.com:

wh00t:customer haroon$ cat scifi.txt |awk '{system("host"$NF".company.com")}' |grep -v not

Heinlein.customer.com has address 10.10.10.10

Asimov.customer.com has address 10.10.10.9

Bischoff.customer.com has address 10.10.10.8

Bloch.customer.com has address 10.10.10.7

Bujold.customer.com has address 10.10.10.6 ...

{results clearly faked for effect!}

The joy is that 2 minutes later we found mustang.another-customer.com and  could use the exact same trick:

wh00t:customer haroon$ cat horses.txt |awk '{system("host"$1".another-company.com")}' |grep -v not

mustang.customer.com has address 10.10.10.10

holstein.customer.com has address 10.10.10.9

Nothing major, but useful when u desperately searching for new hosts to hax0r.

/mh

Blog
Video
Research
QotW
Categories
about:us (31)
blackhat (5)
blog (10)
broadview (2)
build-it (1)
cloud (12)
community (15)
conferences (60)
crypto (3)
fail (3)
foos (1)
fun (51)
goodbye (1)
hackrack (2)
Hope? (2)
howto (8)
imsojaded (2)
infosec-soapies (25)
infrastructure (3)
local (5)
mac (15)
management (7)
materials (3)
memcached (2)
mindless-politics (4)
mindmaps (1)
PCI (2)
post-it (1)
privacy (6)
product (2)
programming (5)
public (275)
qo[w|m|?] (5)
README (1)
real-world (14)
research (37)
reversing (4)
security-fyi (8)
security-news (6)
silly-yammerings (19)
tech-toys (3)
time-waster (6)
tin-foil-hat (6)
tools (46)
training (18)
travel (1)
tricks (1)
Uncategorized (3)
vendors (6)
videos (6)
vulnerability (7)
wasc (1)
webapps (6)
web_x.0 (2)
writing-advice (1)
zen-hacking (6)
Archives
August 2010 (4)
July 2010 (1)
June 2010 (4)
May 2010 (3)
April 2010 (3)
March 2010 (7)
Feburary 2010 (2)
January 2010 (3)
December 2009 (4)
November 2009 (4)
October 2009 (3)
September 2009 (5)
August 2009 (9)
July 2009 (1)
June 2009 (5)
May 2009 (4)
April 2009 (10)
March 2009 (13)
Feburary 2009 (12)
January 2009 (11)
December 2008 (9)
November 2008 (8)
October 2008 (5)
September 2008 (5)
August 2008 (6)
July 2008 (6)
June 2008 (6)
May 2008 (2)
April 2008 (3)
March 2008 (7)
Feburary 2008 (12)
January 2008 (9)
December 2007 (8)
November 2007 (4)
October 2007 (9)
September 2007 (14)
August 2007 (18)
July 2007 (13)
June 2007 (17)
May 2007 (2)
July 2006 (1)
April 2006 (1)
August 2005 (1)
June 2005 (1)
May 2005 (2)
Archives
Conditions of use Privacy statement
Top of Page Legal stuff