Wednesday, October 7, 2009

New release - subdomainLookup - Find subdomains using Google

For those who didn't notice, there is a new version of the subdomainLookup script available, which can be downloaded from here.

This 0.4 version is fairly improved and the results really differ from the old one. Here is a comparison;

$ subdomainLookup.py example.com

19 subdomains found for example.com

beta.example.com
bp0.example.com
bp1.example.com
bp2.example.com
bp3.example.com
buzz.example.com
code.example.com
domains.example.com
draft.example.com
m.example.com
partners-test.example.com
play.example.com
pro.example.com
pro1.example.com
pro2.example.com
status.example.com
wireless.example.com
www.example.com
www2.example.com

Same output using the old one;
> subdomainLookup-v0.2.py example.com
beta.example.com
www.example.com
draft.example.com
www2.example.com

Warning: Use this script for your own domains only. By using this script, you may be violating Google's terms of service.

4 comments:

David said...

this is a great tool! thanks! on some larger domains i get this error ".....HTTP Error 414: Request-URI Too Large"

Sertan Kolat said...

Hi David,

Thanks for your comment. This may occur when the search query becomes longer than Google's limits.

Search for "25" in subdomainLookup.py file and try changing it with a lower number like 23 or 20.

Me said...

As of now, there is no line with 25 in it, but if you comment out the sys.exit() (as below) and, instead, replace it with return "", you'll at least get some results:

except urllib2.HTTPError, e:
print e
return "";
#sys.exit()

There are more graceful solutions, but this is a quick hack.

Sertan Kolat said...

Hi Me,

Yes, the script was updated after the latest blog post and line 25 instruction is now inactive/fixed.

Thanks for your comments, I'll check out your recommendation.