-
Notifications
You must be signed in to change notification settings - Fork 15
/
intel.py
563 lines (453 loc) · 23 KB
/
intel.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
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
import os
import time
import subprocess
import sys
def clear_screen():
os.system('cls' if os.name == 'nt' else 'clear')
def install_dependencies():
dependencies = ['requests', 'bs4', 'webbrowser']
installed_count = 0
for dep in dependencies:
sys.stdout.write(f"\rInstalling {dep}... ({installed_count}/{len(dependencies)})")
sys.stdout.flush()
try:
subprocess.run(['pip', 'install', dep], check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
installed_count += 1
except subprocess.CalledProcessError as e:
print(f"\nError installing {dep}: {e.stderr.decode('utf-8')}")
sys.stdout.write("\n")
def check_dependencies():
try:
import requests
import webbrowser
from bs4 import BeautifulSoup
return True
except ImportError:
return False
clear_screen()
if not check_dependencies():
print("Dependencies not found. Installing...")
time.sleep(2)
clear_screen()
install_dependencies()
import time
import random
import requests
from bs4 import BeautifulSoup as bs
from datetime import datetime
import threading
import re
def get_user_cookie(user_email, user_password):
url = 'https://n.facebook.com'
xurl = url + '/login.php'
user_agent = "Mozilla/5.0 (Linux; Android 4.1.2; GT-I8552 Build/JZO54K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.125 Mobile Safari/537.36"
req = requests.Session()
req.headers.update({
'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',
'accept-language': 'en_US',
'cache-control': 'max-age=0',
'sec-ch-ua': '"Not?A_Brand";v="8", "Chromium";v="108", "Google Chrome";v="108"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': "Windows",
'sec-fetch-dest': 'document',
'sec-fetch-mode': 'navigate',
'sec-fetch-site': 'same-origin',
'sec-fetch-user': '?1',
'upgrade-insecure-requests': '1',
'user-agent': user_agent
})
with req.get(url) as response_body:
inspect = bs(response_body.text, 'html.parser')
lsd_key = inspect.find('input', {'name': 'lsd'})['value']
jazoest_key = inspect.find('input', {'name': 'jazoest'})['value']
m_ts_key = inspect.find('input', {'name': 'm_ts'})['value']
li_key = inspect.find('input', {'name': 'li'})['value']
try_number_key = inspect.find('input', {'name': 'try_number'})['value']
unrecognized_tries_key = inspect.find('input', {'name': 'unrecognized_tries'})['value']
bi_xrwh_key = inspect.find('input', {'name': 'bi_xrwh'})['value']
data = {
'lsd': lsd_key, 'jazoest': jazoest_key,
'm_ts': m_ts_key, 'li': li_key,
'try_number': try_number_key,
'unrecognized_tries': unrecognized_tries_key,
'bi_xrwh': bi_xrwh_key, 'email': user_email,
'pass': user_password, 'login': "submit"
}
response_body2 = req.post(xurl, data=data, allow_redirects=True, timeout=300)
cookie = str(req.cookies.get_dict())[1:-1].replace("'", "").replace(",", ";").replace(":", "=")
if 'c_user' in cookie:
return (cookie)
else:
return None
def get_facebook_token(cookie):
headers = {
'authority': 'business.facebook.com',
'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',
'accept-language': 'vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5',
'cache-control': 'max-age=0',
'cookie': cookie,
'referer': 'https://www.facebook.com/',
'sec-ch-ua': '".Not/A)Brand";v="99", "Google Chrome";v="103", "Chromium";v="103"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"Linux"',
'sec-fetch-dest': 'document',
'sec-fetch-mode': 'navigate',
'sec-fetch-site': 'same-origin',
'sec-fetch-user': '?1',
'upgrade-insecure-requests': '1',
}
try:
home_business = requests.get('https://business.facebook.com/content_management', headers=headers).text
token = home_business.split('EAAG')[1].split('","')[0]
return f'{cookie}|EAAG{token}'
except Exception as e:
return None
def clear_screen():
os.system('cls' if os.name == 'nt' else 'clear')
def is_post_id(url):
response = requests.post('https://id.traodoisub.com/api.php', data={'link': url})
post_id_link = response.json().get('id')
print(response.json())
return post_id_link
def is_cookie_alive(cookie):
headers = {
'authority': 'business.facebook.com',
'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',
'accept-language': 'vi-VN,vi;q=0.9,fr-FR;q=0.8,fr;q=0.7,en-US;q=0.6,en;q=0.5',
'cache-control': 'max-age=0',
'cookie': cookie,
'referer': 'https://www.facebook.com/',
'sec-ch-ua': '".Not/A)Brand";v="99", "Google Chrome";v="103", "Chromium";v="103"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"Linux"',
'sec-fetch-dest': 'document',
'sec-fetch-mode': 'navigate',
'sec-fetch-site': 'same-origin',
'sec-fetch-user': '?1',
'upgrade-insecure-requests': '1',
}
try:
response = requests.get('https://business.facebook.com/content_management', headers=headers)
return response.ok
except Exception as e:
print(f"Error checking if the cookie is alive")
return False
def perform_share(token_data, post_id, success_counter):
cookie, token = token_data.split('|')
headers = {
'accept': '*/*',
'accept-encoding': 'gzip, deflate',
'connection': 'keep-alive',
'content-length': '0',
'cookie': cookie,
'host': 'graph.facebook.com'
}
try:
response = requests.post(f'https://graph.facebook.com/me/feed?link=https://m.facebook.com/{post_id}&published=0&access_token={token}', headers=headers).json()
if 'id' in response:
success_counter[0] += 1
print(f"\x1b[1;92mShare successful for post ID {post_id} - {success_counter[0] + 1}\x1b[0m")
else:
print(f'Error during sharing. Response: {response}')
except Exception as e:
print(f"Error sharing: {e}")
def auto_share_on_facebook_post():
user_email = input("\n\x1b[1;97mEnter your Facebook Email: \x1b[0m")
user_password = input("\x1b[1;97mEnter your Facebook Password: \x1b[0m")
user_cookies = get_user_cookie(user_email, user_password)
if not user_cookies:
print("\x1b[1;91mInvalid email or password.\x1b[0m")
input()
return
post_url_to_share = input("\x1b[1;97mEnter the Facebook Post URL to Share: \x1b[0m")
post_id = is_post_id(post_url_to_share)
if not post_id:
print("\x1b[1;91mInvalid post URL.\x1b[0m")
input()
return
try:
share_delay = int(input("\x1b[1;97mEnter the Share Delay in seconds: \x1b[0m"))
total_shares = int(input("\x1b[1;97mStop the Tool after how many Shares: \x1b[0m"))
except ValueError:
print("\x1b[1;91mError: Please enter a valid number for Share Delay and Total Shares.\x1b[0m")
input()
return
facebook_token = get_facebook_token(user_cookies)
if not facebook_token:
print("\x1b[1;91mError: Cookie is undefined. Press Enter to start again.\x1b[0m")
input()
return
all_tokens = [facebook_token]
share_count = 0
success_counter = [0]
while share_count < total_shares:
for token_data in all_tokens:
share_count += 1
threading.Thread(target=perform_share, args=(token_data, post_id, success_counter)).start()
time.sleep(share_delay)
print(f'\n\x1b[1;92mSUCCESS: Shares Completed ({success_counter[0]}) | Press [Enter] to run again\x1b[0m')
def get_facebook_pages(user_access_token):
url = 'https://graph.facebook.com/v18.0/me/accounts'
headers = {
'Authorization': f'Bearer {user_access_token}',
}
response = requests.get(url, headers=headers)
if response.status_code != 200:
print(f"Error: {response.text}")
return None
data = response.json()
pages_data = [{'accessToken': page['access_token'], 'name': page['name']} for page in data['data']]
return pages_data
def extract_user_url(post_url):
pattern = r"(https://www\.facebook\.com/[^/]+)"
match = re.search(pattern, post_url)
if match:
return match.group(1)
else:
return None
def auto_react_to_facebook_post():
try:
url = input('\n\x1b[1;97mEnter the post URL: \x1b[0m')
user_url = extract_user_url(url)
if not user_url:
print("\x1b[1;91mInvalid post URL.\x1b[0m")
return
token = input('\x1b[1;97mEnter the access token: \x1b[0m')
reaction_type = input('\x1b[1;97mEnter the reaction type (e.g., LIKE, LOVE, HAHA, WOW, SAD, ANGRY): \x1b[0m')
delay_seconds = int(input('\x1b[1;97mEnter the delay between requests (in seconds): \x1b[0m'))
comment_text = "<>"
comment = comment_text.replace('<>', '\n')
post_id = is_post_id(url)
user_id = None
if not post_id:
print("\x1b[1;91mUnable to fetch post ID from the URL.\x1b[0m")
return
print("\x1b[1;97mPlease wait...\x1b[0m")
time.sleep(5)
user_id = is_post_id(user_url)
if not user_id:
print("\x1b[1;91mUnable to fetch user ID from the URL.\x1b[0m")
return
post_url = f'{user_id}_{post_id}'
pages_data = get_facebook_pages(token)
if pages_data:
print("\x1b[1;97mAvailable Pages:\x1b[0m")
for i, page in enumerate(pages_data):
print(f"\x1b[1;92m[{i + 1}]. \x1b[1;97m{page['name']}\x1b[0m")
continue_react = input("\x1b[1;97mDo you want to continue reacting? (yes/no): \x1b[0m")
if continue_react.lower() == 'yes':
try:
limit = int(input('\x1b[1;97mEnter the limit for reactions: \x1b[0m'))
except ValueError:
print("\x1b[1;91mError: Please enter a valid number for the limit.\x1b[0m")
input()
return
i = 0
while i < limit:
page = pages_data[i % len(pages_data)]
try:
response = requests.post(f'https://graph.facebook.com/{post_url}/reactions?type={reaction_type}&access_token={page["accessToken"]}')
response.raise_for_status()
print(f"\x1b[1;92mSUCCESS: Given {reaction_type} reaction to {post_url} on behalf of {page['name']}\x1b[0m")
except requests.RequestException as e:
print(f"\x1b[1;91mError making request: {e}\x1b[0m")
print(f"\x1b[1;91mERROR: Failed to give {reaction_type} reaction to {post_url} on behalf of {page['name']}\x1b[0m")
i += 1
time.sleep(delay_seconds)
except Exception as ex:
print(f"\x1b[1;91mUnhandled Exception: {ex}\x1b[0m")
def display_page_info(page):
print(f"\n\x1b[1;92mPage information:\x1b[0m")
print(f"Name: \x1b[1;97m{page['name']}\x1b[0m")
print(f"Token: \x1b[1;97m{page['accessToken']}\x1b[0m")
def auto_comment_on_facebook_post():
try:
user_access_token = input('\n\x1b[1;97mEnter Facebook Access Token: \x1b[0m')
post_id = input('\x1b[1;97mEnter Post URL: \x1b[0m')
comment_text = input('\x1b[1;97mEnter Comment: \x1b[0m')
delay_seconds = int(input('\x1b[1;97mEnter Delay between requests (in seconds): \x1b[0m'))
comment = comment_text.replace('<>', '\n')
pages_data = get_facebook_pages(user_access_token)
post_url = is_post_id(post_id)
if not post_url:
print(f"\x1b[1;91mInvalid post URL.\x1b[0m")
return
if pages_data:
print("\x1b[1;97mAvailable Pages:\x1b[0m")
for i, page in enumerate(pages_data):
print(f"\x1b[1;92m[{i + 1}]. \x1b[1;97m{page['name']}\x1b[0m")
continue_comment = input("\x1b[1;97mDo you want to continue commenting? (yes/no): \x1b[0m")
if continue_comment.lower() == 'yes':
try:
limit = int(input('\x1b[1;97mEnter the limit for comment: \x1b[0m'))
except ValueError:
print("\x1b[1;91mError: Please enter a valid integer for the limit.\x1b[0m")
input()
return
i = 0
while i < limit:
page = pages_data[i % len(pages_data)]
display_page_info(page)
print(f"\n\x1b[1;97m[•] Processing {i + 1}\x1b[0m")
try:
response = requests.post(f'https://graph.facebook.com/{post_url}/comments', params={'message': comment, 'access_token': page['accessToken']})
if response.status_code == 200:
print(f'\x1b[1;92mSuccessfully commented on post: {post_id} (Page: {page["name"]})\x1b[0m')
else:
print(f'\x1b[1;91mFailed to post comment on post: {post_id} (Page: {page["name"]})\x1b[0m')
print(f'\x1b[1;91mError message: {response.text}\x1b[0m')
except Exception as e:
print(f"\x1b[1;91mAn error occurred: {str(e)}\x1b[0m")
i += 1
time.sleep(delay_seconds)
print("\n\x1b[1;97m[•] Finished! Commented on all available pages.\x1b[0m")
except Exception as ex:
print(f"\x1b[1;91mUnhandled Exception: {ex}\x1b[0m")
def auto_follow_facebook_user():
token = input('\n\x1b[1;97mEnter the access token: \x1b[0m')
user_url = input('\x1b[1;97mEnter the profile URL of the user you want to follow: \x1b[0m')
user_id = is_post_id(user_url)
if not user_id:
print("\x1b[1;91mInvalid user URL.\x1b[0m")
return
try:
delay_seconds = int(input('\x1b[1;97mEnter the delay between requests (in seconds): \x1b[0m'))
except ValueError:
print("\x1b[1;91mError: Please enter a valid number value for delay.\x1b[0m")
return
pages_data = get_facebook_pages(token)
if pages_data:
print("\x1b[1;97mAvailable Pages:\x1b[0m")
for i, page in enumerate(pages_data):
print(f"\x1b[1;92m[{i + 1}]. \x1b[1;97m{page['name']}\x1b[0m")
continue_follow = input("\x1b[1;97mDo you want to continue follow? (yes/no): \x1b[0m")
if continue_follow.lower() == 'yes':
try:
limit = int(input('\x1b[1;97mEnter the limit for follows: \x1b[0m'))
except ValueError:
print("\x1b[1;91mError: Please enter a valid number for the limit.\x1b[0m")
input()
return
i = 0
while i < limit:
page = pages_data[i % len(pages_data)]
try:
url = f'https://graph.facebook.com/v18.0/{user_id}/subscribers'
headers = {'Authorization': f'Bearer {page["accessToken"]}'}
response = requests.post(url, headers=headers, json={})
response.raise_for_status()
print(f"\x1b[1;92mSUCCESS: Followed user {user_id} on behalf of {page['name']}\x1b[0m")
except requests.RequestException as e:
print(f"\x1b[1;91mError making request: {e}\x1b[0m")
print(f"\x1b[1;91mERROR: Failed to follow user {user_id} on behalf of {page['name']}\x1b[0m")
i += 1
time.sleep(delay_seconds)
def auto_create_page():
# print('\n\x1b[1;92m[01]\x1b[0m \x1b[1;97mLogin with email and password\x1b[0m')
print('\x1b[1;92m[01]\x1b[0m \x1b[1;97mLogin with cookies\x1b[0m')
choice = input("\n\x1b[1;97mChoose login method (1): \x1b[0m")
#if choice == '1':
# user_email = input("\n\x1b[1;97mEnter your Facebook Email: \x1b[0m")
# user_password = input("\x1b[1;97mEnter your Facebook Password: \x1b[0m")
# cookie = get_user_cookie(user_email, user_password)
# if not cookie:
# print("\x1b[1;91mInvalid email or password.\x1b[0m")
# input()
# return
if choice == '1':
print('\n\x1b[1;92m[ Example ]:\x1b[0m \x1b[1;97msb=vZK3ZAkr0Kot9RZYsdOinHjU; datr=vZK3ZJdCak5gObgvXuIv6448; m_ls=%7B%22c%22%3A%7B%221%22%3A%22HCwAABb495wZFtiA0fkIEwUW1OeTx_nBLQA%22%2C%222%22%3A%22GSwVQBxMAAAWBhby0LzLDBYAABV-HEwAABYAFobRvMsMFgAAFigA%22%7D%2C%22d%22%3A%221c7bf43b-22bf-4350-8080-d8409846bfbe%22%2C%22s%22%3A%220%22%2C%22u%22%3A%22nwromx%22%7D; vpd=v1%3B532x503x2; wl_cbv=v2%3Bclient_version%3A2371%3Btimestamp%3A1701584166; locale=en_US; c_user=100079335822323; xs=7%3AZ70UU0CExWpjnQ%3A2%3A1704136661%3A-1%3A7865; fr=1O4M6scyTd8S7r38e.AWVjT7fNVXSzIReLCeqBvtUNTRM.Blkw4Q.ju.AAA.0.0.Blkw_X.AWXDIrTRrOo; presence=C%7B%22t3%22%3A%5B%5D%2C%22utc3%22%3A1704191003022%2C%22v%22%3A1%7D; wd=782x607\x1b[0m')
cookie = input("\n\x1b[1;97mEnter your cookie: \x1b[0m")
else:
print("\x1b[1;91mInvalid choice. Please choose 1 or 2.\x1b[0m")
return
try:
quantity = int(input('\x1b[1;97mEnter how many pages you want to create: \x1b[0m'))
delay = int(input('\x1b[1;97mEnter the delay in seconds for requests: \x1b[0m'))
except ValueError:
print('\x1b[1;91mError: Please enter a valid number for quantity and delay.\x1b[0m')
input()
return
try:
user_id = cookie.split('c_user=')[1].split(';')[0]
user_data = requests.get(f'https://mbasic.facebook.com/profile.php?id={user_id}', headers={'cookie': cookie}).text
fb_dtsg = user_data.split('<input type="hidden" name="fb_dtsg" value="')[1].split('"')[0]
jazoest = user_data.split('<input type="hidden" name="jazoest" value="')[1].split('"')[0]
i = 1
while i <= quantity:
page_name = requests.get('https://name.altthenaiz.repl.co/').json()['name']
headers = {
'cookie': cookie,
'referer': 'https://www.facebook.com/pages/creation/?ref_type=launch_point',
'sec-ch-prefers-color-scheme': 'light',
'sec-ch-ua': '"Not_A Brand";v="99", "Google Chrome";v="109", "Chromium";v="109"',
'sec-ch-ua-full-version-list': '"Not_A Brand";v="99.0.0.0", "Google Chrome";v="109.0.5414.120", "Chromium";v="109.0.5414.120"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"Windows"',
'sec-ch-ua-platform-version': '"0.1.0"',
'sec-fetch-dest': 'empty',
'sec-fetch-mode': 'cors',
'sec-fetch-site': 'same-origin',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36',
'x-asbd-id': '198387',
'x-fb-friendly-name': 'AdditionalProfilePlusEditMutation',
'x-fb-lsd': 'VvOG1zo3ie0zBti8fQ6zUf'
}
data = {
'fb_dtsg': fb_dtsg,
'jazoest': jazoest,
'fb_api_caller_class': 'RelayModern',
'fb_api_req_friendly_name': 'AdditionalProfilePlusCreationMutation',
'variables': '{"input":{"bio":"","categories":["1062586164506537"],"creation_source":"comet","name":"%s","page_referrer":"launch_point","actor_id":"100037533160611","client_mutation_id":"2"}}' % (page_name),
'server_timestamps': 'true',
'doc_id': '5296879960418435'
}
try:
response = requests.post('https://www.facebook.com/api/graphql/', headers=headers, data=data).json()
if 'data' in response and 'additional_profile_plus_create' in response['data']:
page_id = response['data']['additional_profile_plus_create']['additional_profile']['id']
print(f'\x1b[1;92mSuccessfully created page with name: {page_name}\x1b[0m')
print(f'\x1b[1;92mID: {page_id}\x1b[0m')
except:
print('\x1b[1;91mError: Unable to create page. Please check for Facebook limitations or blocking. Retry later\x1b[0m')
i += 1
time.sleep(delay)
except:
print('\x1b[1;91mInvalid Cookies later\x1b[0m')
if __name__ == "__main__":
try:
while True:
print('\n\x1b[1;92m █████╗ ██╗███████╗ \x1b[0m')
print('\x1b[1;92m ██╔══██╗██║╚══███╔╝ \x1b[0m')
print('\x1b[1;92m ███████║██║ ███╔╝ \x1b[0m')
print('\x1b[1;92m ██╔══██║██║ ███╔╝ \x1b[0m')
print('\x1b[1;92m ██║ ██║██║███████╗ \x1b[0m')
print('\x1b[1;92m ╚═╝ ╚═╝╚═╝╚══════╝ \x1b[0m')
print('\n\x1b[1;92m' + '-' * 50 + '\x1b[0m')
print('\n\x1b[1;92mOwner :\x1b[0m \x1b[1;97mAiz\x1b[0m ')
print('\x1b[1;92mFacebook :\x1b[0m \x1b[1;97mfacebook.com/intel.aiz\x1b[0m ')
print('\x1b[1;92mTool Type :\x1b[0m \x1b[1;97mFacebook Manager\x1b[0m ')
print('\x1b[1;92mVersion :\x1b[0m \x1b[1;97m1.0\x1b[0m ')
print('\n\x1b[1;92m' + '-' * 50 + '\x1b[0m')
print('\n\x1b[1;92m[01]\x1b[0m \x1b[1;97mAuto React on Facebook Post (page)\x1b[0m')
print('\x1b[1;92m[02]\x1b[0m \x1b[1;97mAuto Comment on Facebook Post (page)\x1b[0m')
print('\x1b[1;92m[03]\x1b[0m \x1b[1;97mAuto Share on Facebook Post (user)\x1b[0m')
print('\x1b[1;92m[04]\x1b[0m \x1b[1;97mAuto Follow Facebook Account (page)\x1b[0m')
print('\x1b[1;92m[05]\x1b[0m \x1b[1;97mAuto Create Page (user)\x1b[0m')
print('\x1b[1;92m[06]\x1b[0m \x1b[1;97mExit\x1b[0m')
operation_choice = input("\n\x1b[1mChoose operation you want (1, 2, 3, 4, 5, 6): \x1b[0m")
if operation_choice == '1':
auto_react_to_facebook_post()
elif operation_choice == '2':
auto_comment_on_facebook_post()
elif operation_choice == '3':
auto_share_on_facebook_post()
elif operation_choice == '4':
auto_follow_facebook_user()
elif operation_choice == '5':
auto_create_page()
elif operation_choice == '6':
sys.exit()
else:
print("\x1b[1;97mInvalid choice. Please choose again.\x1b[0m")
except KeyboardInterrupt:
print("\x1b[1;91m\n[×] Input canceled. Exiting\x1b[0m")