Esempio n. 1
0
class google:
    con = http.http()

    def __init__(self, target):
        self.target = target
        self.results = ""

    def search(self):
        try:
            url = "http://www.google.com/search?num=500&start=50&hl=en&meta=&q=%40\"" + self.target + "\""
            resp = self.con.request(url)
            self.results += resp
        except Exception as error:
            pass

    def getemail(self):
        email = parser.parser(self.results, self.target)
        return email.email()

    def process(self):
        self.search()
Esempio n. 2
0
class pgp:
    con = http.http()

    def __init__(self, target):
        self.target = target
        self.results = ""

    def search(self):
        try:
            resp = self.con.httplib(
                "pgp.mit.edu",
                "/pks/lookup?search=" + self.target + "&op=index")
            self.results += resp
        except Exception as error:
            pass

    def getemail(self):
        email = parser.parser(self.results, self.target)
        return email.email()

    def process(self):
        self.search()
Esempio n. 3
0
class bing:
    con = http.http()

    def __init__(self, target):
        self.target = target
        self.results = ""

    def search(self):
        try:
            resp = self.con.httplib("www.bing.com",
                                    "/search?q=%40" + self.target,
                                    "SRCHHPGUSR=ADLT=DEMOTE&NRSLT=100")
            self.results += resp
        except Exception as error:
            pass

    def getemail(self):
        email = parser.parser(self.results, self.target)
        return email.email()

    def process(self):
        self.search()
Esempio n. 4
0
class yahoo:
    con = http.http()

    def __init__(self, target):
        self.target = target
        self.results = ""

    def search(self):
        try:
            resp = self.con.httplib(
                "search.yahoo.com",
                "/search?p=\"%40" + self.target + "\"&b=500&pz=10")
            self.results += resp
        except Exception as error:
            pass

    def getemail(self):
        email = parser.parser(self.results, self.target)
        return email.email()

    def process(self):
        self.search()
Esempio n. 5
0
class netcraft:
	con = http.http()
	printf = printer.printer()
	def __init__(self,target):
		self.target = target

	def search(self):
		self.printf.test("Searching \"%s\" hostnames..."%(self.target))
		try:
			url = "http://searchdns.netcraft.com/?restriction=site+contains&host=%s&lookup=wait..&position=limited"%(self.target)
			resp = self.con.urllib(url,None)
			if resp:
				sites = re.findall('url=\S+"',resp,re.I)
				if sites:
					self.printf.plus("Found %s sites"%(len(sites)))
					print ""
					for x in range(len(sites)):
						host = sites[x].split('"')[0]
						print " - %s"%(host.split("url=")[1])
					print ""
				else:
					self.printf.error("Not found hostnames")
		except Exception as error:
			pass