forked from dalunacrobate/DaProfiler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofiler.py
363 lines (346 loc) · 19.8 KB
/
profiler.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
import threading, time, colorama, treelib, random, sys, os, argparse
from colorama import Fore, init, Back, Style
init(convert=True)
from treelib import Node, Tree
from modules import skype_search
from modules import pagesblanches_search
from modules import copainsdavant_search
from modules import instagram_search
from modules import dirigeants_bfmtv
from modules import death_records
from modules import twitter_search
from modules import facebook_search
from modules import mail_gen
from modules import scylla_sh
from modules import mail_check
from modules import holehe_module
#from modules import emailrep_io
from modules.api_modules import leakcheck_net
from modules.visual import logging
banner = False
parser = argparse.ArgumentParser()
parser.add_argument("-n", "--name", help="Victim name")
parser.add_argument('-l','--logging',help="Enable terminal logging (Optional)")
parser.add_argument('-ln','--lastname',help="Last name of victim")
parser.add_argument('-e','--email',help="Email (Optional)")
parser.add_argument('-O','--output',help="( -O output.txt )")
args = parser.parse_args()
name = (args.lastname)
pren = (args.name)
log = (args.logging)
email = (args.email)
output = (args.output)
if sys.platform == 'win32':
os.system('cls')
else:
os.system('clear')
print("DaProfiler - Inspired from Profiler CToS")
print("Github : "+Fore.YELLOW+"https://github.com/dalunacrobate\n"+Fore.RESET)
print("\r")
possible_usernames = []
try:
if pren and name is not None:
logging.terminal_loggin(log,text=("Searching for Facebook accounts ... \n"))
facebook_results = facebook_search.facebook_search(name=name,pren=pren)
logging.terminal_loggin(log,text=("Searching for Twitter accounts ... \n"))
twitter_results = twitter_search.twitter_search(name=name,pren=pren)
logging.terminal_loggin(log,text=("Searching for Death records ... \n"))
avis_deces_results = death_records.death_search(name=name,pren=pren)
logging.terminal_loggin(log,text=("Searching for Company ... \n"))
bfmtv_results = dirigeants_bfmtv.bfmtv_search(name=name,pren=pren)
logging.terminal_loggin(log,text=("Searching for instagram accounts ... \n"))
instagram_results = instagram_search.ig_search(name=name,pren=pren)
logging.terminal_loggin(log,text=("Searching for CopainsDavant accounts ...\n"))
copainsdavant_results = copainsdavant_search.copains_davant(name=name,pren=pren)
logging.terminal_loggin(log,text=("Searching for Skype accounts ... \n"))
skype_results = skype_search.skype_searchh(name=name,pren=pren)
logging.terminal_loggin(log,text=("Searching for Phones and Adresses ... \n"))
pagesblanche = pagesblanches_search.adresse_search(name=name,pren=pren)
logging.terminal_loggin(log,text=("Searching for Mail adresses ... \n"))
possible_mail = mail_gen.check(name=name,pren=pren)
logging.terminal_loggin(log,text=("Searching for Mail from Skype ... \n"))
skype2mail = mail_gen.skype2email(name=name,pren=pren)
logging.terminal_loggin(log,text=("Searching Leaked Passwords and social networks on emails ... \n"))
elif len(pren) and len(name) == 0:
facebook_results = None
twitter_results = None
avis_deces_results = None
bfmtv_results = None
instagram_results = None
copainsdavant_results = None
skype_results = None
pagesblanche = None
possible_mail = None
skype2mail = None
pren = ""
name = ""
else:
facebook_results = None
twitter_results = None
avis_deces_results = None
bfmtv_results = None
instagram_results = None
copainsdavant_results = None
skype_results = None
pagesblanche = None
possible_mail = None
skype2mail = None
pren = ""
name = ""
except TypeError:
facebook_results = None
twitter_results = None
avis_deces_results = None
bfmtv_results = None
instagram_results = None
copainsdavant_results = None
skype_results = None
pagesblanche = None
possible_mail = None
skype2mail = None
pren = ""
name = ""
if email is not None:
email_value = True
else:
email = ""
email_value = False
if output is not None:
with open(output,'a+') as f:
f.write('Results on target : {} {} {}\n\n'.format(name,pren,email))
f.close()
def write(typee,objectt):
if output is not None:
with open(str(output),'a+',encoding='utf-8') as f:
f.write('\n')
if len(typee) == 0:
pass
else:
f.write((typee)+"\n")
for i in range(len(typee)):
f.write('=')
f.write('\n')
if type(objectt) == list:
for i in objectt:
f.write('- '+i+"\n")
elif type(objectt) == str:
f.write(objectt)
tree = Tree()
tree.create_node(f"{pren} {name} {email}", 1)
if email_value == True:
tree.create_node(email,15651145457841784,parent=1)
logging.terminal_loggin(log,text=" - Searching for passwords via Scylla.soon target : {}\n".format(email))
email_pass = scylla_sh.scylla_search(email=email)
logging.terminal_loggin(log,text=" - Searching for passwords via LeakCheck.net API on target : {}\n".format(email))
leakcheck_results = leakcheck_net.leak_check_api(mail=email)
try:
accs = holehe_module.social_scan(email=email)
tree.create_node(Fore.MAGENTA+"Account Detection"+Fore.RESET,4594897841417,parent=15651145457841784)
tree.create_node(accs,parent=4594897841417)
if leakcheck_results is not None:
tree.create_node(Fore.RED+"Passwords"+Fore.RESET+" : "+email,1296187151897415478411585,parent=15651145457841784)
for i in leakcheck_results:
chars = "abcdefghijklmnopqrstuvwxyz1234567890"
number_sk = random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)
tree.create_node(i['leak_name'],number_sk,parent=1296187151897415478411585)
tree.create_node('Creditentials : {}'.format(i['password']),parent=number_sk)
tree.create_node('Date : {}'.format(i['leak_date']),parent=number_sk)
if len(email_pass) > 0:
tree.create_node(Fore.RED+"Scylla.so"+Fore.RESET+" : "+email,49849489481858,parent=15651145457841784)
for i in email_pass:
chars = "abcdefghijklmnopqrstuvwxyz1234567890"
number_sk = random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)
tree.create_node('Scylla.sh',number_sk,parent=49849489481858)
tree.create_node('Database : '+i['Name'],parent=number_sk)
tree.create_node('Password : '+i['Password'],parent=number_sk)
except TypeError:
pass
if pagesblanche is not None:
full_name = pagesblanche['Name']
adress = pagesblanche['Adress']
phone = pagesblanche['Phone']
write("Adress - Phone : ",[str('Full Name : '+full_name),str('Adress : '+adress),str('Phone : '+phone)])
tree.create_node(Fore.YELLOW+"Adress - Phone"+Fore.RESET,2,parent=1)
tree.create_node("Full Name : {}".format(full_name),22,parent=2)
tree.create_node("Adress : {}".format(adress),33,parent=2)
tree.create_node("Phone : {}".format(phone),44,parent=2)
if pagesblanche['carrier'] is not None:
tree.create_node('Carrier : {}'.format(pagesblanche['carrier']),894,parent=44)
if pagesblanche['Loc_phone'] is not None:
tree.create_node('Localisation : {}'.format(pagesblanche['Loc_phone']),55,parent=44)
if pagesblanche['Type_tel'] is not None:
tree.create_node('Type : {}'.format(pagesblanche['Type_tel']),66,parent=44)
if copainsdavant_results is not None:
try:
tree.create_node(Fore.RED+"Copains d'avant"+Fore.RESET,3,parent=1)
tree.create_node('Full Name : {}'.format(copainsdavant_results['full_name']),77,parent=3)
tree.create_node('Born Date : {}'.format(copainsdavant_results['born']),88,parent=3)
tree.create_node('Location : {}'.format(copainsdavant_results['localisation']),99,parent=3)
tree.create_node('Url : {}'.format(copainsdavant_results['url_full']),111,parent=3)
write('Copains d\'avant : ',[str('Full Name : '+copainsdavant_results['full_name']),str('Born Date : '+copainsdavant_results['born']),str('Location : '+copainsdavant_results['localisation']),str('URL : '+copainsdavant_results['url_full'])])
if copainsdavant_results['pdp'] != "None":
try:
tree.create_node('Profile Picture : {}'.format(copainsdavant_results['pdp']),151515454545,parent=3)
except:
pass
if copainsdavant_results['Job'] != "None":
try:
tree.create_node('Job : {}'.format(copainsdavant_results['Job']),154156132489411,parent=3)
except:
pass
if copainsdavant_results['familial_situation'] != "None":
try:
tree.create_node('Familial Situation : {}'.format(copainsdavant_results['familial_situation'].strip()),44984154114515,parent=3)
except:
pass
if copainsdavant_results['nb_enfants'] != "None":
try:
tree.create_node('Number of kids : {}'.format(copainsdavant_results['nb_enfants']),1654518948741,parent=3)
except:
pass
except TypeError:
pass
if bfmtv_results is not None:
write('Work - Job : ',[str('Adress : '+bfmtv_results['addr']),str('Company : '+bfmtv_results['company']),str('Full Name : '+bfmtv_results['full_name']),str('Function : '+bfmtv_results['fonction']),str('Warrant : '+bfmtv_results['mandats']),str('URL : '+bfmtv_results['link'])])
tree.create_node(Fore.BLUE+"Work - Job"+Fore.RESET,4,parent=1)
tree.create_node('Adress : {}'.format(bfmtv_results['addr']),888,parent=4)
tree.create_node('Company : {}'.format(bfmtv_results['company']),777,parent=4)
tree.create_node('Link : {}'.format(bfmtv_results['link']),666,parent=4)
tree.create_node('Full Name : {}'.format(bfmtv_results['full_name']),222,parent=4)
tree.create_node('Born Date : {}'.format(bfmtv_results['naissance']),333,parent=4)
tree.create_node('Function : {}'.format(bfmtv_results['fonction']),444,parent=4)
tree.create_node('Warrant : {}'.format(bfmtv_results['mandats']),555,parent=4)
if twitter_results is not None:
write(f'({str(len(twitter_results))}) Twitter : ',twitter_results)
tree.create_node(Fore.CYAN+"Twitter"+Fore.RESET,5,parent=1)
for i in twitter_results:
tree.create_node(i,parent=5)
if skype_results is not None or len(skype_results) != 0:
write(f'({str(len(skype_results))}) Skype : ',skype_results)
tree.create_node(Fore.CYAN+"Skype"+Fore.RESET,6,parent=1)
tree.create_node("Accounts : {}".format(str(len(skype_results))),12,parent=6)
for i in skype_results:
chars = "abcdefghijklmnopqrstuvwxyz1234567890"
number_sk = random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)
tree.create_node(i,number_sk,parent=12)
if instagram_results is not None:
if len(instagram_results) == 0:
pass
else:
tree.create_node(Fore.MAGENTA+"Instagram"+Fore.RESET,7,parent=1)
tree.create_node('Accounts : {}'.format(str(len(instagram_results))),13,parent=7)
for i in instagram_results:
chars = "abcdefghijklmnopqrstuvwxyz1234567890"
number_ski = random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)
username = i.split('|')[0].replace('@','').strip()
bio_infos = instagram_search.getInstagramEmailFromBio(username)
tree.create_node(i,number_ski,parent=13)
bio_emails = bio_infos['emails']
paypal_bio = bio_infos['paypal']
city_loc = bio_infos['city_list']
is_lgbt = bio_infos['lgbt_points']
schoolname = bio_infos['school']
bestfriend = bio_infos['best_friend']
love_date = bio_infos['love_date']
age_bio = bio_infos['age']
ethnicity = bio_infos['origins'] #
facebook_l = bio_infos['fb_list'] #
twitter_l = bio_infos['twitter_list'] #
if bestfriend is not None:
nnumber_ski = random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)
tree.create_node('Good relationship with',nnumber_ski,parent=number_ski)
for i in bestfriend:
tree.create_node('{}'.format(i),parent=nnumber_ski)
if is_lgbt is not None:
lgbt_flag = (Fore.RED+"█"+Fore.YELLOW+"█"+Fore.GREEN+"█"+Fore.BLUE+"█"+Fore.MAGENTA+"█"+Fore.RESET)
tree.create_node('{} LGBT Member'.format(lgbt_flag),parent=number_ski)
if ethnicity is not None:
tree.create_node('Ethnicity : {}'.format(str(ethnicity).replace('[','').replace(']','').replace("'","")),parent=number_ski)
if facebook_l is not None:
tree.create_node('Facebook : {}'.format(str(facebook_l).replace('[','').replace(']','').replace("'","")),parent=number_ski)
if twitter_l is not None:
tree.create('Twitter : {}'.format(str(twitter_l).replace('[','').replace(']','').replace("'","")),parent=number_ski)
if schoolname is not None:
tree.create_node('School Name : {}'.format(schoolname),parent=number_ski)
if city_loc is not None:
tree.create_node('City : {}'.format(city_loc[0]),parent=number_ski)
if paypal_bio is not None:
for i in paypal_bio:
tree.create_node('Paypal in bio -> '+i,parent=number_ski)
if bio_emails is not None:
for i in bio_emails:
write('Searching infos on ',i)
chars = "abcdefghijklmnopqrstuvwxyz1234567890"
number_skkk = random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)
number_skk = random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)
tree.create_node('Email from bio -> '+Fore.CYAN+i+Fore.RESET,number_skkk,parent=number_ski)
accs = holehe_module.social_scan(email=email)
if len(accs) != 0:
chars = "abcdefghijklmnopqrstuvwxyz1234567890"
number_sk = random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)
tree.create_node(Fore.MAGENTA+"Account Detection"+Fore.RESET,number_sk,parent=number_skkk)
tree.create_node(accs,parent=number_sk)
if possible_mail is not None:
if len(possible_mail) != 0 or len(skype2mail) != 0:
tree.create_node(Fore.RED+'Emails extracted'+Fore.RESET,146,parent=1)
if skype2mail is not None:
tree.create_node('['+Fore.GREEN+"++"+Fore.RESET+'] High probability',142,parent=146)
no_doubles = []
for i in skype2mail:
if i not in no_doubles:
chars = "abcdefghijklmnopqrstuvwxyz1234567890"
number = random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)
no_doubles.append(i)
tree.create_node(i,number,parent=142)
# GETTING SITES WHERE EMAIL LOGGED IN FROM HOLEHE -> \modules\holehe_module.py
accs = holehe_module.social_scan(email=i)
if accs == "Accounts found : ":
pass
else:
if len(accs) > 4:
possible_usernames.append(i.split('@')[0])
chars = "abcdefghijklmnopqrstuvwxyz1234567890"
number_soc = random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)
tree.create_node(Fore.MAGENTA+"Account detection"+Fore.RESET,number_soc,parent=number)
tree.create_node(accs,parent=number_soc)
# GETTING LEAKED PASSWORDS FROM SCYLLA.SH -> \modules\scylla_sh.py
scylla_results = scylla_sh.scylla_search(email=i)
if scylla_results is not None:
tree.create_node(Fore.RED+'Leaked From'+Fore.RESET+' : Scylla.sh',1518451,parent=number)
for i in scylla_results:
chars = "abcdefghijklmnopqrstuvwxyz1234567890"
number = random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)
tree.create_node('Leak Name : {}'.format(i['Name']),parent=1518451)
tree.create_node('Password : {}'.format(i['Password']),parent=1518451)
# GET LEAKED PASSWORDS FROM LEAKCHET.NET API -> \api_modules\leakcheck_net.py
a = leakcheck_net.leak_check_api(mail=i)
if a is not None:
chars = "abcdefghijklmnopqrstuvwxyz1234567890"
number_pass = random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)+random.choice(chars)
tree.create_node(Fore.RED+Back.WHITE+"Leaked Creditentials"+Fore.RESET+Style.RESET_ALL,number_pass,parent=number)
for i in a:
password = i['password']
leak_name = i['leak_name']
leak_date = i['leak_date']
tree.create_node('Password : {}'.format(password),parent=number_pass)
tree.create_node('Leak Name : {}'.format(leak_name),parent=number_pass)
tree.create_node('Leak Date : {}'.format(leak_date),parent=number_pass)
write(f'({str(len(no_doubles))}) High Probability Emails : ',no_doubles)
nb= str((len(possible_mail)))
if int(nb) != 0:
tree.create_node("("+Fore.YELLOW+nb+Fore.RESET+") "+Fore.YELLOW+"Possible Mailbox"+Fore.RESET,8,parent=146)
write(f'({str(len(possible_mail))}) Possible Mailbox : ',possible_mail)
for i in possible_mail:
tree.create_node(i,parent=8)
if facebook_results is not None:
write(f'({str(len(facebook_results))}) Facebook : ',facebook_results)
nb = str(len(facebook_results))
tree.create_node(Fore.BLUE+"Facebook"+Fore.RESET,9,parent=1)
tree.create_node('Accounts : {}'.format(nb),10,parent=9)
for i in facebook_results:
tree.create_node(i,parent=10)
tree.show()
if len(possible_usernames) > 0:
print(Fore.RED+"Note"+Fore.RESET+" : You should perform a manual search on those usernames :")
accs_list = str(possible_usernames).replace('[','').replace(']','').replace("'","")
print(accs_list)