This is goog-mail.py from DarkC0de.com, I've had good results with it
in the past.


#!/usr/bin/python

import sys
import re
import string
import httplib
import urllib2
import re
def StripTags(text):
    finished = 0
    while not finished:
        finished = 1
        start = text.find("<")
        if start >= 0:
            stop = text[start:].find(">")
            if stop >= 0:
                text = text[:start] + text[start+stop+1:]
                finished = 0
    return text
if len(sys.argv) != 2:
        print "\nExtracts emails from google results.\n"
        print "\nUsage : ./goog-mail.py <domain-name>\n"
        sys.exit(1)

domain_name=sys.argv[1]
d={}
page_counter = 0
try:
    while page_counter < 50 :
        results =
'http://groups.google.com/groups?q='+str(domain_name)+'&hl=en&lr=&ie=UTF-8&start='
+ repr(page_counter) + '&sa=N'
        request = urllib2.Request(results)
        request.add_header('User-Agent','Mozilla/4.0 (compatible; MSIE
5.5; Windows NT 5.0)')
        opener = urllib2.build_opener()
        text = opener.open(request).read()
        emails = (re.findall('([\w\.\-]+@'+domain_name+')',StripTags(text)))
        for email in emails:
            d[email]=1
            uniq_emails=d.keys()
        page_counter = page_counter +10
except IOError:
    print "Can't connect to Google Groups!"+""

page_counter_web=0
try:
    print "\n\n+++++++++++++++++++++++++++++++++++++++++++++++++++++"+""
    print "+ Google Web & Group Results:"+""
    print "+++++++++++++++++++++++++++++++++++++++++++++++++++++\n\n"+""

    while page_counter_web < 50 :
        results_web =
'http://www.google.com/search?q=%40'+str(domain_name)+'&hl=en&lr=&ie=UTF-8&start='
+ repr(page_counter_web) + '&sa=N'
        request_web = urllib2.Request(results_web)
        request_web.add_header('User-Agent','Mozilla/4.0 (compatible;
MSIE 5.5; Windows NT 5.0)')
        opener_web = urllib2.build_opener()
        text = opener_web.open(request_web).read()
        emails_web = (re.findall('([\w\.\-]+@'+domain_name+')',StripTags(text)))
        for email_web in emails_web:
            d[email_web]=1
            uniq_emails_web=d.keys()
        page_counter_web = page_counter_web +10

except IOError:
    print "Can't connect to Google Web!"+""
for uniq_emails_web in d.keys():
    print uniq_emails_web+""




On Thu, Aug 27, 2009 at 8:52 AM, bytes abit<[email protected]> wrote:
> WHOIS will (most of the time) provide some contact information into the
> company if that is all you are looking for.  Or as Vincent said, call them.
>
> When calling, if it's research, try simply acting interested in buying
> something and get them to email you some information.
>
>
>
> On Thu, Aug 27, 2009 at 4:44 AM, Bert Van Kets <[email protected]> wrote:
>>
>> I've been playing around with Maltego yesterday. I also tried BiDiBlah.
>> Both give a lot of information, if given enough time. The free versions
>> allow just enough to research one domain name.
>> Still a lot of manual research has to be done.
>>
>> My goal now is to get at least one personal e-mail address of the
>> company so I can deduct the rule in which e-mail addresses are
>> formulated. Most of them are firstname.lastn...@domain.
>>
>> Can any of the Google Hacking books help me with this particular matter?
>> I've been reading up on this bit, but have yet to find any way to
>> selectively search for e-mail addresses.
>>
>> Bert
>>
>>
>> Brad Mcmahon wrote:
>> > I second maltego
>> >
>> > Sent from my iPhone
>> >
>> > On Aug 26, 2009, at 4:18 PM, Tim Krabec <[email protected]
>> > <mailto:[email protected]>> wrote:
>> >
>> >> maltego
>> >>
>> >> On Wed, Aug 26, 2009 at 1:01 PM, Bert Van Kets <[email protected]
>> >> <mailto:[email protected]>> wrote:
>> >>
>> >>     Dear experts,
>> >>
>> >>     A customer is asking me to retrieve e-mail addresses of Human
>> >>     Resource
>> >>     managers is companies. I have the names and the companies and
>> >>     would like
>> >>     to know what methods you guys use to find the e-mail addresses. I
>> >>     tried
>> >>     a few companies and get stuck at the general e-mail addresses
>> >>     like info,
>> >>     jobs and sales.
>> >>
>> >>     Thanks
>> >>
>> >>     Bert
>> >>     _______________________________________________
>> >>     Pauldotcom mailing list
>> >>     [email protected]
>> >>     <mailto:[email protected]>
>> >>     http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom
>> >>     Main Web Site: http://pauldotcom.com
>> >>
>> >>
>> >>
>> >>
>> >> --
>> >> Tim Krabec
>> >> Kracomp
>> >> 772-597-2349
>> >> smbminute.com <http://smbminute.com>
>> >> kracomp.blogspot.com <http://kracomp.blogspot.com>
>> >> www.kracomp.com <http://www.kracomp.com>
>> >> _______________________________________________
>> >> Pauldotcom mailing list
>> >> [email protected] <mailto:[email protected]>
>> >> http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom
>> >> Main Web Site: http://pauldotcom.com
>> > ------------------------------------------------------------------------
>> >
>> > _______________________________________________
>> > Pauldotcom mailing list
>> > [email protected]
>> > http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom
>> > Main Web Site: http://pauldotcom.com
>>
>> _______________________________________________
>> Pauldotcom mailing list
>> [email protected]
>> http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom
>> Main Web Site: http://pauldotcom.com
>
>
> _______________________________________________
> Pauldotcom mailing list
> [email protected]
> http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom
> Main Web Site: http://pauldotcom.com
>
_______________________________________________
Pauldotcom mailing list
[email protected]
http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom
Main Web Site: http://pauldotcom.com

Reply via email to