Beispiel #1
0
def email_full(email):
    try:
        data = fullcontact(email)
        if data.get("status", "") == 200:
            if data.get("contactInfo", "") != "":
                n_dat = data.get("contactInfo", "").get('fullName', '')
            save_data = email_fullcontact_db(name=(n_dat))
            save_data.save()
        # print "\nOrganizations:"
        for x in data.get("organizations", ""):
            if x.get('isPrimary', '') == True:
                primarycheck = " - Primary"
            else:
                primarycheck = ""
            if x.get('endDate', '') == '':
                org_dat = "\t%s at %s - (From %s to Unknown Date)%s" % (
                    x.get('title', ''), x.get(' name', ''), x.get('startDate', ''), primarycheck)
                # org_out = ("".join(map(str, org_dat)))
                save_data = email_fullcontact_db(organizations=(org_dat))
                save_data.save()
            else:
                org2_dat = "\t%s - (From %s to %s)%s" % (
                    x.get('name', ''), x.get('startDate', ''), x.get('endDate', ''), primarycheck)
                save_data = email_fullcontact_db(organizations=(org2_dat))
                save_data.save()
        if data.get("contactInfo", "") != "":
            if data.get("contactInfo", "").get('websites', '') != "":
                # print "\nWebsite(s):"
                for x in data.get("contactInfo", "").get('websites', ''):
                    web_dat = x.get('url', '')
                    save_data = email_fullcontact_db(web=(web_dat))
                    save_data.save()
            if data.get("contactInfo", "").get('chats', '') != "":
                # print '\nChat Accounts'
                for x in data.get("contactInfo", "").get('chats', ''):
                    chat_dat = (x.get('handle', ''), x.get('client', ''))
                    save_data = email_fullcontact_db(chats=(chat_dat))
                    save_data.save()

        # print "\nSocial Profiles:"
        for x in data.get("socialProfiles", ""):
            so = "%s:" % x.get('type').upper()
            save_data = email_fullcontact_db(social_profile_name=(so))
            save_data.save()
            for y in x.keys():
                if y != 'type' and y != 'typeName' and y != 'typeId':
                    soc_dat = '%s: %s' % (y, x.get(y))
                    save_data = email_fullcontact_db(social_profile=(soc_dat))
                    save_data.save()
            # fo = ''
            # save_data = email_fullcontact_db(social_profile_data=(fo))
            # save_data.save()

        # print "Other Details:"
        try:
            if data.get("demographics", "") != "":
                o1_dat = data.get("demographics", "").get('gender', '')
                o2_dat = data.get("demographics", "").get('country', '')
                o3_dat = data.get("demographics", "").get('locationGeneral', '')

                # od1_out = ("".join(map(str, o1_dat)))
                # od2_out = ("".join(map(str, o2_dat)))
                # od3_out = ("".join(map(str, o3_dat)))

                save_data = email_fullcontact_db(gender=(o1_dat), country=(o2_dat), city=(o3_dat))
                save_data.save()
        except Exception as error:
            print error

        # print "Photos:"
        for x in data.get("photos", ""):
            ph_dat = x.get('url', '')
            # ph_out = ("".join(map(str, ph_dat)))
            save_data = email_fullcontact_db(photos=(ph_dat))
            save_data.save()

    except Exception as error:
        print error
Beispiel #2
0
def print_emailosint(email):
	

	hbp = haveIbeenpwned(email)
	if len(hbp) != 0:
		print colored("Pwned at %s Instances\n", 'green') % len(hbp)
		for x in hbp:
			print "Title:%s\nBreachDate%s\nPwnCount%s\nDescription%s\nDataClasses%s\n" % (x.get('Title', ''), x.get('BreachDate', ''), x.get('PwnCount', ''), x.get('Description', ''),x.get('DataClasses', ''))
	else:
		print colored("[-] No breach status found.", 'red')
	

	basic_checks(email)

	print colored(style.BOLD + '\n---> Finding User Information\n' + style.END, 'blue')
	time.sleep(0.3)
	data = fullcontact(email)
	if data.get("status","") == 200:
		if data.get("contactInfo","") != "":
			print "Name: %s" % data.get("contactInfo","").get('fullName', '')
		print colored(style.BOLD + '\n Organizations / Work History\n' + style.END, 'green')
		for x in data.get("organizations",""):
			if x.get('isPrimary', '') == True:
				primarycheck = " - Primary"
			else:
				primarycheck = ""
			if x.get('endDate','') == '':
				print "\t%s at %s - (From %s to Unknown Date)%s" % (x.get('title', ''), x.get('name',''), x.get('startDate',''), primarycheck)
			else:
				print "\t%s - (From %s to %s)%s" % (x.get('name',''), x.get('startDate',''), x.get('endDate',''), primarycheck)
		if data.get("contactInfo","") != "":
			if data.get("contactInfo","").get('websites', '') != "":
				print "\nWebsite(s):"
				for x in data.get("contactInfo","").get('websites', ''):
					print "\t%s" % x.get('url', '')
			if data.get("contactInfo","").get('chats', '') != "":
				print '\nChat Accounts'
				for x in data.get("contactInfo","").get('chats', ''):
					print "\t%s on %s" % (x.get('handle', ''), x.get('client', ''))
		
		print colored(style.BOLD + '\n Social Profiles\n' + style.END, 'green')
		for x in data.get("socialProfiles",""):
			head = "\t%s:" % x.get('type','').upper()
			print colored(style.BOLD + str(head) + style.END)
			for y in x.keys():
				if y != 'type' and y != 'typeName' and y != 'typeId':
					print '\t%s: %s' % (y, x.get(y,''))
			if x.get('username', '') != "":
				check_and_append_username(x.get('username', ''))

			print ''

		print colored(style.BOLD + '\n Other Details\n' + style.END, 'green')
		if data.get("demographics","") != "":
			print "\tGender: %s" % data.get("demographics","").get('gender', '')
			print "\tCountry: %s" % data.get("demographics","").get('country', '')
			print "\tTentative City: %s" % data.get("demographics","").get('locationGeneral', '')

		print "Photos:"
		for x in data.get("photos",""):
			print "\t%s: %s" % (x.get('typeName', ''), x.get('url', ''))

	else:
		print colored('[-] Error Occured - Encountered Status Code: %s. Please check if Email_id exist or not?', 'red') % data.get("status","")



	'''clb_data = clearbit(email)
	for x in clb_data.keys():
		print '%s details:' % x
		if type(clb_data[x]) == dict:
			for y in clb_data[x].keys():
				if clb_data[x][y] is not None:
					print "%s:  %s, " % (y, clb_data[x][y])
		elif clb_data[x] is not None:
			print "\n%s:  %s" % (x, clb_data[x])

	print "\n-----------------------------\n"

	print "\t\t\t[+] Gravatar Link\n"
	print gravatar(email)
	print "\n-----------------------------\n"

	print "\t\t\t[+] Associated Domains\n"
	for doms in emaildom(email):
		print doms
	'''

	
	print colored(style.BOLD + '\n---> Finding Paste(s)..\n' + style.END, 'blue')
	if cfg.google_cse_key != "" and cfg.google_cse_key != "XYZ" and cfg.google_cse_cx != "" and cfg.google_cse_cx != "XYZ":
		total_results = google_search(email, 1)
		if (total_results != 0 and total_results > 10):
			more_iters = (total_results / 10)
			if more_iters >= 10:
					print colored(style.BOLD + '\n---> Too many results, Daily API limit might exceed\n' + style.END, 'red')
			for x in xrange(1,more_iters + 1):	
				google_search(email, (x*10)+1)
		print "\n\n-----------------------------\n"
	else:
		print colored(style.BOLD + '\n[-] google_cse_key and google_cse_cx not configured. Skipping paste(s) search.\nPlease refer to http://datasploit.readthedocs.io/en/latest/apiGeneration/.\n' + style.END, 'red')



	slds=emailslides(email)
	if len(slds) != 0:
		print colored(style.BOLD + '\n---> Slides Published:' + style.END, 'blue')
		time.sleep(0.3)
		for tl,lnk in slds.items():
			print tl+"http://www.slideshare.net"+lnk
	else:
		print colored('[-] No Associated Slides found.', 'red')

	
	scdlinks=emailscribddocs(email)
	if len(scdlinks) != 0:
		print colored(style.BOLD + '\n---> Associated SCRIBD documents:\n' + style.END, 'blue')
		time.sleep(0.5)
		for sl in scdlinks:
			print sl
		print ""
		print colored(style.BOLD + 'More results might be available:' + style.END)
		print "https://www.scribd.com/search?page=1&content_type=documents&query="+email
	else:
		print colored('[-] No Associated Scribd Documents found.', 'red')
Beispiel #3
0
def print_emailosint(email):
    hbp = haveIbeenpwned(email)
    if len(hbp) != 0:
        print colored("Pwned at %s Instances\n", 'green') % len(hbp)
        for x in hbp:
            print "Title:%s\nBreachDate%s\nPwnCount%s\nDescription%s\nDataClasses%s\n" % (
                x.get('Title', ''), x.get('BreachDate', ''),
                x.get('PwnCount', ''), x.get('Description',
                                             ''), x.get('DataClasses', ''))
    else:
        print colored("[-] No breach status found.", 'red')

    print colored(style.BOLD + '\n---> Finding User Information\n' + style.END,
                  'blue')
    time.sleep(0.3)
    data = fullcontact(email)
    if data.get("status", "") == 200:
        if data.get("contactInfo", "") != "":
            print "Name: %s" % data.get("contactInfo", "").get('fullName', '')
        print colored(
            style.BOLD + '\n Organizations / Work History\n' + style.END,
            'green')
        for x in data.get("organizations", ""):
            if x.get('isPrimary', '') == True:
                primarycheck = " - Primary"
            else:
                primarycheck = ""
            if x.get('endDate', '') == '':
                print "\t%s at %s - (From %s to Unknown Date)%s" % (x.get(
                    'title', ''), x.get('name', ''), x.get('startDate',
                                                           ''), primarycheck)
            else:
                print "\t%s - (From %s to %s)%s" % (x.get(
                    'name', ''), x.get('startDate', ''), x.get(
                        'endDate', ''), primarycheck)
        if data.get("contactInfo", "") != "":
            if data.get("contactInfo", "").get('websites', '') != "":
                print "\nWebsite(s):"
                for x in data.get("contactInfo", "").get('websites', ''):
                    print "\t%s" % x.get('url', '')
            if data.get("contactInfo", "").get('chats', '') != "":
                print '\nChat Accounts'
                for x in data.get("contactInfo", "").get('chats', ''):
                    print "\t%s on %s" % (x.get('handle',
                                                ''), x.get('client', ''))

        print colored(style.BOLD + '\n Social Profiles\n' + style.END, 'green')
        for x in data.get("socialProfiles", ""):
            head = "\t%s:" % x.get('type', '').upper()
            print colored(style.BOLD + str(head) + style.END)
            for y in x.keys():
                if y != 'type' and y != 'typeName' and y != 'typeId':
                    print '\t%s: %s' % (y, x.get(y, ''))
            if x.get('username', '') != "":
                check_and_append_username(x.get('username', ''))

            print ''

        print colored(style.BOLD + '\n Other Details\n' + style.END, 'green')
        if data.get("demographics", "") != "":
            print "\tGender: %s" % data.get("demographics", "").get(
                'gender', '')
            print "\tCountry: %s" % data.get("demographics", "").get(
                'country', '')
            print "\tTentative City: %s" % data.get("demographics", "").get(
                'locationGeneral', '')

        print "Photos:"
        for x in data.get("photos", ""):
            print "\t%s: %s" % (x.get('typeName', ''), x.get('url', ''))

    else:
        print colored(
            '[-] Error Occured - Encountered Status Code: %s. Please check if Email_id exist or not?',
            'red') % data.get("status", "")
    '''clb_data = clearbit(email)
	for x in clb_data.keys():
		print '%s details:' % x
		if type(clb_data[x]) == dict:
			for y in clb_data[x].keys():
				if clb_data[x][y] is not None:
					print "%s:  %s, " % (y, clb_data[x][y])
		elif clb_data[x] is not None:
			print "\n%s:  %s" % (x, clb_data[x])

	print "\n-----------------------------\n"

	print "\t\t\t[+] Gravatar Link\n"
	print gravatar(email)
	print "\n-----------------------------\n"

	print "\t\t\t[+] Associated Domains\n"
	for doms in emaildom(email):
		print doms
	'''

    slds = emailslides(email)
    if len(slds) != 0:
        print colored(style.BOLD + '\n---> Slides Published:' + style.END,
                      'blue')
        time.sleep(0.3)
        for tl, lnk in slds.items():
            print tl + "http://www.slideshare.net" + lnk
    else:
        print colored('[-] No Associated Slides found.', 'red')

    scdlinks = emailscribddocs(email)
    if len(scdlinks) != 0:
        print colored(
            style.BOLD + '\n---> Associated SCRIBD documents:\n' + style.END,
            'blue')
        time.sleep(0.5)
        for sl in scdlinks:
            print sl
        print ""
        print colored(style.BOLD + 'More results might be available:' +
                      style.END)
        print "https://www.scribd.com/search?page=1&content_type=documents&query=" + email
    else:
        print colored('[-] No Associated Scribd Documents found.', 'red')
Beispiel #4
0
def print_emailosint(email):

    hbp = haveIbeenpwned(email)
    if len(hbp) != 0:
        print colored("Pwned at %s Instances\n", "green") % len(hbp)
        for x in hbp:
            print "Title:%s\nBreachDate%s\nPwnCount%s\nDescription%s\nDataClasses%s\n" % (
                x.get("Title", ""),
                x.get("BreachDate", ""),
                x.get("PwnCount", ""),
                x.get("Description", ""),
                x.get("DataClasses", ""),
            )
    else:
        print colored("[-] No breach status found.", "red")

    print colored(style.BOLD + "\n---> Finding User Information\n" + style.END, "blue")
    time.sleep(0.3)
    data = fullcontact(email)
    if data.get("status", "") == 200:
        if data.get("contactInfo", "") != "":
            print "Name: %s" % data.get("contactInfo", "").get("fullName", "")
        print colored(style.BOLD + "\n Organizations / Work History\n" + style.END, "green")
        for x in data.get("organizations", ""):
            if x.get("isPrimary", "") == True:
                primarycheck = " - Primary"
            else:
                primarycheck = ""
            if x.get("endDate", "") == "":
                print "\t%s at %s - (From %s to Unknown Date)%s" % (
                    x.get("title", ""),
                    x.get("name", ""),
                    x.get("startDate", ""),
                    primarycheck,
                )
            else:
                print "\t%s - (From %s to %s)%s" % (
                    x.get("name", ""),
                    x.get("startDate", ""),
                    x.get("endDate", ""),
                    primarycheck,
                )
        if data.get("contactInfo", "") != "":
            if data.get("contactInfo", "").get("websites", "") != "":
                print "\nWebsite(s):"
                for x in data.get("contactInfo", "").get("websites", ""):
                    print "\t%s" % x.get("url", "")
            if data.get("contactInfo", "").get("chats", "") != "":
                print "\nChat Accounts"
                for x in data.get("contactInfo", "").get("chats", ""):
                    print "\t%s on %s" % (x.get("handle", ""), x.get("client", ""))

        print colored(style.BOLD + "\n Social Profiles\n" + style.END, "green")
        for x in data.get("socialProfiles", ""):
            head = "\t%s:" % x.get("type", "").upper()
            print colored(style.BOLD + str(head) + style.END)
            for y in x.keys():
                if y != "type" and y != "typeName" and y != "typeId":
                    print "\t%s: %s" % (y, x.get(y, ""))
            if x.get("username", "") != "":
                check_and_append_username(x.get("username", ""))

            print ""

        print colored(style.BOLD + "\n Other Details\n" + style.END, "green")
        if data.get("demographics", "") != "":
            print "\tGender: %s" % data.get("demographics", "").get("gender", "")
            print "\tCountry: %s" % data.get("demographics", "").get("country", "")
            print "\tTentative City: %s" % data.get("demographics", "").get("locationGeneral", "")

        print "Photos:"
        for x in data.get("photos", ""):
            print "\t%s: %s" % (x.get("typeName", ""), x.get("url", ""))

    else:
        print colored(
            "[-] Error Occured - Encountered Status Code: %s. Please check if Email_id exist or not?", "red"
        ) % data.get("status", "")

    """clb_data = clearbit(email)
	for x in clb_data.keys():
		print '%s details:' % x
		if type(clb_data[x]) == dict:
			for y in clb_data[x].keys():
				if clb_data[x][y] is not None:
					print "%s:  %s, " % (y, clb_data[x][y])
		elif clb_data[x] is not None:
			print "\n%s:  %s" % (x, clb_data[x])

	print "\n-----------------------------\n"

	print "\t\t\t[+] Gravatar Link\n"
	print gravatar(email)
	print "\n-----------------------------\n"

	print "\t\t\t[+] Associated Domains\n"
	for doms in emaildom(email):
		print doms
	"""

    slds = emailslides(email)
    if len(slds) != 0:
        print colored(style.BOLD + "\n---> Slides Published:" + style.END, "blue")
        time.sleep(0.3)
        for tl, lnk in slds.items():
            print tl + "http://www.slideshare.net" + lnk
    else:
        print colored("[-] No Associated Slides found.", "red")

    scdlinks = emailscribddocs(email)
    if len(scdlinks) != 0:
        print colored(style.BOLD + "\n---> Associated SCRIBD documents:\n" + style.END, "blue")
        time.sleep(0.5)
        for sl in scdlinks:
            print sl
        print ""
        print colored(style.BOLD + "More results might be available:" + style.END)
        print "https://www.scribd.com/search?page=1&content_type=documents&query=" + email
    else:
        print colored("[-] No Associated Scribd Documents found.", "red")