forked from alpkeskin/mosint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mosint.py
94 lines (79 loc) · 3.15 KB
/
mosint.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# https://github.com/alpkeskin
import json
from bs4 import BeautifulSoup
from insides.bcolors import bcolors
from insides.Header import Header
configfile = open('config.json', "r")
conf = json.loads(configfile.read())
for i in conf:
verifyApi = (i['verify-email.org API Key'])
socialscan = (i['Social Scan'])
leakeddb = (i['Leaked DB'])
breachedsites = (i['Breached Sites[leak-lookup.com API Key]'])
hunterApi = (i['hunter.io API Key'])
dbdata = (i['Related Phone Numbers'])
tcrwd = (i['Related Domains'])
pastebindumps = (i['Pastebin Dumps'])
googlesearch = (i['Google Search'])
dns = (i['DNS Lookup'])
from insides.Banner import Banner
Banner()
from modules.ConfigTree import ConfigTree
ConfigTree(verifyApi,socialscan,leakeddb,breachedsites,hunterApi,dbdata,tcrwd,pastebindumps,googlesearch,dns,_verbose=True)
print("")
while True:
mail=input(f"{bcolors.OKBLUE}MAIL > {bcolors.ENDC}")
if (mail == "q" or mail == "Q" or mail == "exit"):
print("Thank you for using "+f"{bcolors.BOLD}MOSINT{bcolors.ENDC}.")
break
elif (mail.find("@") == -1 and mail.find(".") == -1):
print(f"{bcolors.FAIL}Email format is wrong!{bcolors.ENDC}")
break
if (verifyApi != ""):
from modules.VerifyMail import VerifyMail
title = "VERIFICATION SERVICE"
Header(title)
VerifyMail(verifyApi,mail,_verbose=True)
if (socialscan == "True" or socialscan == "T" or socialscan == "true"):
from modules.SocialScan import SocialScan
title = "SOCIAL SCAN"
Header(title)
SocialScan(mail,_verbose=True)
if (leakeddb == "True" or leakeddb == "T" or leakeddb == "true"):
from modules.LeakedDB import LeakedDB
title = "LEAKED DB [Password dumps]"
Header(title)
LeakedDB(mail,_verbose=True)
if (breachedsites != ""):
from modules.BreachedSites import BreachedSites
title = "BREACHED SITES"
Header(title)
BreachedSites(mail,breachedsites,_verbose=True)
if (hunterApi != ""):
from modules.Hunter import Hunter
title = "RELATED EMAILS"
Header(title)
Hunter(mail,hunterApi,_verbose=True)
if (dbdata == "True" or dbdata == "T" or dbdata == "true"):
from modules.RelatedNumbers import RelatedNumbers
title = "RELATED PHONE NUMBERS"
Header(title)
RelatedNumbers(mail,_verbose=True)
if (tcrwd == "True" or tcrwd == "T" or tcrwd == "true"):
from modules.RelatedDomains import RelatedDomains
title = "RELATED DOMAINS"
Header(title)
RelatedDomains(mail,_verbose=True)
if (pastebindumps == "True" or pastebindumps == "T" or pastebindumps == "true"):
from modules.Psbdmp import Psbdmp
title = "PASTEBIN DUMPS"
Header(title)
Psbdmp(mail,_verbose=True)
if (googlesearch == "True" or googlesearch == "T" or googlesearch == "true"):
from modules.Googling import Googling
title = "GOOGLING"
Header(title)
Googling(mail,_verbose=True)
if (dns == "True" or dns == "T" or dns == "true"):
from modules.DNS import DNS
DNS(mail,_verbose=True)