fca-rqzax-remake 0.0.1-security → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of fca-rqzax-remake might be problematic. Click here for more details.
- package/.breakpoints +58 -0
- package/.cache/replit/__replit_disk_meta.json +1 -0
- package/.cache/replit/modules.stamp +1 -0
- package/.cache/replit/nix/env.json +1 -0
- package/.gitattributes +2 -0
- package/.replit +1 -0
- package/.travis.yml +6 -0
- package/.upm/store.json +1 -0
- package/CHANGELOG.md +2 -0
- package/DOCS.md +1738 -0
- package/GetThreads/GetThreadInfo.js +118 -0
- package/LICENSE-MIT +21 -0
- package/README.md +126 -3
- package/StateCrypt.js +28 -0
- package/broadcast.js +1 -0
- package/index.js +685 -0
- package/languages/index.json +150 -0
- package/lib/getInfoNew.js +34 -0
- package/lib/getToken.js +44 -0
- package/logger.js +24 -0
- package/package.json +133 -3
- package/replit.nix +9 -0
- package/src/ReportV1.js +55 -0
- package/src/addExternalModule.js +16 -0
- package/src/addUserToGroup.js +78 -0
- package/src/changeAdminStatus.js +79 -0
- package/src/changeArchivedStatus.js +41 -0
- package/src/changeAvt.js +86 -0
- package/src/changeBio.js +65 -0
- package/src/changeBlockedStatus.js +36 -0
- package/src/changeGroupImage.js +106 -0
- package/src/changeNickname.js +45 -0
- package/src/changeThreadColor.js +62 -0
- package/src/changeThreadEmoji.js +42 -0
- package/src/createNewGroup.js +70 -0
- package/src/createPoll.js +60 -0
- package/src/data/getThreadInfo.json +25094 -0
- package/src/deleteMessage.js +45 -0
- package/src/deleteThread.js +43 -0
- package/src/forwardAttachment.js +48 -0
- package/src/getAccessToken.js +33 -0
- package/src/getCurrentUserID.js +7 -0
- package/src/getEmojiUrl.js +27 -0
- package/src/getFriendsList.js +73 -0
- package/src/getMessage.js +80 -0
- package/src/getThreadHistory.js +537 -0
- package/src/getThreadHistoryDeprecated.js +71 -0
- package/src/getThreadInfo.js +193 -0
- package/src/getThreadInfoDeprecated.js +56 -0
- package/src/getThreadList.js +213 -0
- package/src/getThreadListDeprecated.js +46 -0
- package/src/getThreadMain.js +219 -0
- package/src/getThreadPictures.js +59 -0
- package/src/getUserID.js +62 -0
- package/src/getUserInfo.js +66 -0
- package/src/getUserInfoMain.js +65 -0
- package/src/getUserInfoV2.js +36 -0
- package/src/getUserInfoV3.js +63 -0
- package/src/getUserInfoV4.js +55 -0
- package/src/getUserInfoV5.js +61 -0
- package/src/handleFriendRequest.js +46 -0
- package/src/handleMessageRequest.js +49 -0
- package/src/httpGet.js +49 -0
- package/src/httpPost.js +48 -0
- package/src/httpPostFormData.js +41 -0
- package/src/listenMqtt.js +629 -0
- package/src/logout.js +68 -0
- package/src/markAsDelivered.js +48 -0
- package/src/markAsRead.js +70 -0
- package/src/markAsReadAll.js +43 -0
- package/src/markAsSeen.js +51 -0
- package/src/muteThread.js +47 -0
- package/src/removeUserFromGroup.js +49 -0
- package/src/resolvePhotoUrl.js +37 -0
- package/src/searchForThread.js +43 -0
- package/src/sendMessage.js +321 -0
- package/src/sendTypingIndicator.js +80 -0
- package/src/setMessageReaction.js +109 -0
- package/src/setPostReaction.js +102 -0
- package/src/setTitle.js +74 -0
- package/src/threadColors.js +39 -0
- package/src/unfriend.js +43 -0
- package/src/unsendMessage.js +40 -0
- package/test/example-config.json +18 -0
- package/test/test-page.js +140 -0
- package/test/test.js +385 -0
- package/utils.js +1246 -0
@@ -0,0 +1,150 @@
|
|
1
|
+
{
|
2
|
+
"vi": {
|
3
|
+
"index": {
|
4
|
+
"uptime": "Đã Hoàn Thành Kết Nối Đến Server Uptime Cho Url: ",
|
5
|
+
"erroUptime": "Server Uptime Gặp sự Cố, Không Thể Bật Uptime Cho Bạn!",
|
6
|
+
"errorLogin": "Appstate - Cookie Của Bạn Đã Bị Lỗi, Hãy Thay Cái Mới, Hoặc Vô Trình Duyệt Ẩn Danh Rồi Đăng Nhập Và Thử Lại !",
|
7
|
+
"checkpoint": "Phát Hiện CheckPoint - Không Đăng Nhập Được, Hãy Thử Logout Rồi Login Và Lấy Lại Appstate - Cookie !",
|
8
|
+
"loginSu": "Đăng Nhập Thành Công Tại UID: ",
|
9
|
+
"region": "Vùng Của Tài Khoản Là: ",
|
10
|
+
"login": "Đang Đăng Nhập...",
|
11
|
+
"loginError": "Sai Mật Khẩu Hoặc Tài Khoản !",
|
12
|
+
"errorFa": "Bạn Đang Sử Dụng 2 Bảo Mật !",
|
13
|
+
"okweb": "Xác Nhận Từ Trình Duyệt, Tiến Hành Các Quá Trình Đăng Nhập...",
|
14
|
+
"errorEnv": "Tạo Tệp ENV Thất Bại !",
|
15
|
+
"env": "Tạo Thành Công Tệp ENV !",
|
16
|
+
"errorPassRandom": "Đã Có Lỗi Khi Đang Try Tạo Mật Khẩu Ngẫu Nhiên",
|
17
|
+
"appstateDec": "Chưa Sẵn Sàng Để Giải Mã Appstate !",
|
18
|
+
"appstate": "Giải Mã Appstate Thành Công !",
|
19
|
+
"appstateError": "Appstate Đã Bị Lỗi ! Vui Lòng Thay Mới",
|
20
|
+
"oklogin": "Hoàn Thành Quá Trình Đăng Nhập !",
|
21
|
+
"newVersion": "Phiên Bản Mới Đã Được Publish: ",
|
22
|
+
"autoUpdate": "Tiến Hành Tự Động Cập Nhật Lên Phiên Bản Mới Nhất !",
|
23
|
+
"okUpdate": "Nâng Cấp Phiên Bản Thành Công!",
|
24
|
+
"restart": "Đang Khởi Động Lại...",
|
25
|
+
"errorUpdate": "Đã Xảy Ra Lỗi",
|
26
|
+
"checkVersion": "Bạn Hiện Đang Sử Dụng Phiên Bản: ",
|
27
|
+
"chucAdmin": "Chúc Các Admin Một Ngày Tốt Lành",
|
28
|
+
"errorUid": "Không Thể Lấy UID Hãy Thử Lại !",
|
29
|
+
"encAppstate": "Mã Hoá AppState Thành Công !"
|
30
|
+
},
|
31
|
+
"ExtraGetThread": {
|
32
|
+
"CreateDatabaseSuccess": "Khởi Tạo Thành Công Database Cho Nhóm: %1",
|
33
|
+
"CreateDatabaseFailure": "Khởi Tạo Thất Bại Database Của Nhóm: %1",
|
34
|
+
"alreadyUpdate": "%1 Đã Sẵn Sàng Để Update Database",
|
35
|
+
"updateDataSuccess": "Cập Nhật Dữ Liệu Cho Nhóm %1 Thành Công !",
|
36
|
+
"updateDataFailure": "Cập Nhật Dữ Liệu Cho Nhóm %1 Thất Bại !"
|
37
|
+
}
|
38
|
+
},
|
39
|
+
"en": {
|
40
|
+
"index": {
|
41
|
+
"uptime": "Completed Connection To Server Uptime For Url: ",
|
42
|
+
"erroUptime": "Uptime Server Has Problems, Can't Turn On Uptime For You!",
|
43
|
+
"errorLogin": "Appstate - Your Cookie Is Wrong, Please Replace It, Or Go To Incognito Browser Then Login And Try Again!",
|
44
|
+
"checkpoint": "Detected CheckPoint - Can't Login, Try Logout Then Login And Get Appstate - Cookie !",
|
45
|
+
"loginSu": "Successfully Login At UID: ",
|
46
|
+
"region": "Account's Region Is:",
|
47
|
+
"login": "Logging in...",
|
48
|
+
"loginError": "Wrong Password Or Account !",
|
49
|
+
"errorFa": "You're Using 2 Security !",
|
50
|
+
"okweb": "Confirm From Browser, Proceed to Login Process...",
|
51
|
+
"errorEnv": "Create ENV File Failed!",
|
52
|
+
"env": "Successfully Created ENV File!",
|
53
|
+
"errorPassRandom": "An error occurred while trying to generate a Random Password",
|
54
|
+
"appstateDec": "Not Ready To Decode Appstate !",
|
55
|
+
"appstate": "Decrypting Appstate Successfully!",
|
56
|
+
"appstateError": "Appstate Error ! Please Replace",
|
57
|
+
"oklogin": "Complete Login Process!",
|
58
|
+
"newVersion": "New Version Published: ",
|
59
|
+
"autoUpdate": "Proceed to Automatically Update to the Latest Version!",
|
60
|
+
"okUpdate": "Version Upgrade Successful!",
|
61
|
+
"restart": "Rebooting...",
|
62
|
+
"errorUpdate": "An error has occurred",
|
63
|
+
"checkVersion": "You Are Currently Using Version: ",
|
64
|
+
"chucAdmin": "Have a nice day Admin",
|
65
|
+
"errorUid": "Unable to Get UID Try Again !",
|
66
|
+
"encAppstate": "AppState Encryption Successful !"
|
67
|
+
},
|
68
|
+
"ExtraGetThread": {
|
69
|
+
"CreateDatabaseSuccess": "Khởi Tạo Thành Công Database Cho Nhóm: %1",
|
70
|
+
"CreateDatabaseFailure": "Khởi Tạo Thất Bại Database Của Nhóm: %1",
|
71
|
+
"alreadyUpdate": "%1 Đã Sẵn Sàng Để Update Database",
|
72
|
+
"updateDataSuccess": "Cập Nhật Dữ Liệu Cho Nhóm %1 Thành Công !",
|
73
|
+
"updateDataFailure": "Cập Nhật Dữ Liệu Cho Nhóm %1 Thất Bại !"
|
74
|
+
}
|
75
|
+
},
|
76
|
+
"th": {
|
77
|
+
"index": {
|
78
|
+
"uptime": "เสร็จสิ้นการเชื่อมต่อกับ Server Uptime สำหรับ URL: ",
|
79
|
+
"erroUptime": "เซิร์ฟเวอร์เวลาทำงานมีปัญหา ไม่สามารถเปิดเวลาทำงานให้คุณ!",
|
80
|
+
"errorLogin": "Appstate - คุกกี้ของคุณไม่ถูกต้อง โปรดแทนที่ด้วยอันใหม่ หรือไปที่เบราว์เซอร์ที่ไม่ระบุตัวตน จากนั้นลงชื่อเข้าใช้แล้วลองอีกครั้ง!",
|
81
|
+
"checkpoint": "ตรวจพบจุดตรวจสอบ - ไม่สามารถเข้าสู่ระบบ ลองออกจากระบบ จากนั้นเข้าสู่ระบบและรับ Appstate - Cookie !",
|
82
|
+
"loginSu": "เข้าสู่ระบบสำเร็จที่ UID: ",
|
83
|
+
"region": "ภูมิภาคของบัญชีคือ:",
|
84
|
+
"login": "กำลังเข้าสู่ระบบ...",
|
85
|
+
"loginError": "รหัสผ่านหรือบัญชีไม่ถูกต้อง!",
|
86
|
+
"errorFa": "คุณกำลังใช้ 2 Security !",
|
87
|
+
"okweb": "ยืนยันจากเบราว์เซอร์ ดำเนินการเข้าสู่ระบบ...",
|
88
|
+
"errorEnv": "สร้างไฟล์ ENV ล้มเหลว!",
|
89
|
+
"env": "สร้างไฟล์ ENV สำเร็จ!",
|
90
|
+
"errorPassRandom": "เกิดข้อผิดพลาดขณะพยายามสร้างรหัสผ่านแบบสุ่ม",
|
91
|
+
"appstateDec": "ไม่พร้อมที่จะถอดรหัส Appstate !",
|
92
|
+
"appstate": "ถอดรหัส Appstate สำเร็จ!",
|
93
|
+
"appstateError": "ข้อผิดพลาดของ Appstate โปรดแทนที่",
|
94
|
+
"oklogin": "เสร็จสิ้นขั้นตอนการเข้าสู่ระบบ!",
|
95
|
+
"newVersion": "เผยแพร่เวอร์ชันใหม่: ",
|
96
|
+
"autoUpdate": "ดำเนินการอัปเดตอัตโนมัติเป็นเวอร์ชันล่าสุด!",
|
97
|
+
"okUpdate": "อัปเกรดเวอร์ชันสำเร็จ!",
|
98
|
+
"restart": "กำลังรีบูต...",
|
99
|
+
"errorUpdate": "เกิดข้อผิดพลาด",
|
100
|
+
"checkVersion": "คุณกำลังใช้เวอร์ชัน: ",
|
101
|
+
"chucAdmin": "ขอให้มีวันที่ดีผู้ดูแลระบบ",
|
102
|
+
"errorUid": "ไม่สามารถรับ UID ลองอีกครั้ง !",
|
103
|
+
"encAppstate": "การเข้ารหัส AppState สำเร็จ !"
|
104
|
+
},
|
105
|
+
"ExtraGetThread": {
|
106
|
+
"CreateDatabaseSuccess": "Khởi Tạo Thành Công Database Cho Nhóm: %1",
|
107
|
+
"CreateDatabaseFailure": "Khởi Tạo Thất Bại Database Của Nhóm: %1",
|
108
|
+
"alreadyUpdate": "%1 Đã Sẵn Sàng Để Update Database",
|
109
|
+
"updateDataSuccess": "Cập Nhật Dữ Liệu Cho Nhóm %1 Thành Công !",
|
110
|
+
"updateDataFailure": "Cập Nhật Dữ Liệu Cho Nhóm %1 Thất Bại !"
|
111
|
+
}
|
112
|
+
},
|
113
|
+
"jp": {
|
114
|
+
"index": {
|
115
|
+
"uptime": "URL のサーバー稼働時間への接続が完了しました: ",
|
116
|
+
"erroUptime": "稼働時間サーバーに問題があり、稼働時間をオンにできません!",
|
117
|
+
"errorLogin": "Appstate - あなたの Cookie が間違っています。新しい Cookie に置き換えるか、シークレット ブラウザに移動してからサインインしてから、もう一度お試しください!",
|
118
|
+
"checkpoint": "検出された CheckPoint - ログインできません。ログアウトしてからログインして Appstate を取得してください - Cookie !",
|
119
|
+
"loginSu": "UID でログインに成功しました: ",
|
120
|
+
"region": "アカウントの地域:",
|
121
|
+
"login": "ログインしています...",
|
122
|
+
"loginError": "パスワードまたはアカウントが間違っています!",
|
123
|
+
"errorFa": "2 つのセキュリティを使用しています!",
|
124
|
+
"okweb": "ブラウザから確認し、ログインプロセスに進みます...",
|
125
|
+
"errorEnv": "ENV ファイルの作成に失敗しました!",
|
126
|
+
"env": "ENV ファイルの作成に成功しました!",
|
127
|
+
"errorPassRandom": "ランダム パスワードの生成中にエラーが発生しました",
|
128
|
+
"appstateDec": "Appstate をデコードする準備ができていません!",
|
129
|
+
"appstate": "Appstate の復号に成功しました!",
|
130
|
+
"appstateError": "Appstate エラーです! 置き換えてください",
|
131
|
+
"oklogin": "ログインプロセスを完了してください!",
|
132
|
+
"newVersion": "公開された新しいバージョン: ",
|
133
|
+
"autoUpdate": "最新バージョンへの自動更新に進みます!",
|
134
|
+
"okUpdate": "バージョンアップ成功!",
|
135
|
+
"restart": "再起動しています...",
|
136
|
+
"errorUpdate": "エラーが発生しました",
|
137
|
+
"checkVersion": "現在使用しているバージョン: ",
|
138
|
+
"chucAdmin": "良い一日を管理者に",
|
139
|
+
"errorUid": "UID を取得できません。再試行してください!",
|
140
|
+
"encAppstate": "AppState の暗号化に成功しました!"
|
141
|
+
},
|
142
|
+
"ExtraGetThread": {
|
143
|
+
"CreateDatabaseSuccess": "Khởi Tạo Thành Công Database Cho Nhóm: %1",
|
144
|
+
"CreateDatabaseFailure": "Khởi Tạo Thất Bại Database Của Nhóm: %1",
|
145
|
+
"alreadyUpdate": "%1 Đã Sẵn Sàng Để Update Database",
|
146
|
+
"updateDataSuccess": "Cập Nhật Dữ Liệu Cho Nhóm %1 Thành Công !",
|
147
|
+
"updateDataFailure": "Cập Nhật Dữ Liệu Cho Nhóm %1 Thất Bại !"
|
148
|
+
}
|
149
|
+
}
|
150
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
var utils = require('./../utils');
|
2
|
+
var logger = require('./../logger')
|
3
|
+
var OTP = require('totp-generator');
|
4
|
+
|
5
|
+
module.exports.getInfo = async function (id, jar, ctx, defaultFuncs) {
|
6
|
+
var AccessToken = await require("./getToken").getAccessToken(jar, ctx, defaultFuncs);
|
7
|
+
var { body:Data } = await utils.get(`https://graph.facebook.com/${id}?fields=name,first_name,email,about,birthday,gender,website,hometown,link,location,quotes,relationship_status,significant_other,username,subscribers.limite(0)&access_token=${AccessToken}`, jar, null, ctx.globalOptions);
|
8
|
+
var Format = {
|
9
|
+
id: JSON.parse(Data).id || "Không Có Dữ Liệu",
|
10
|
+
name: JSON.parse(Data).name || "Không Có Dữ Liệu",
|
11
|
+
first_name: JSON.parse(Data).first_name || "Không Có Dữ Liệu",
|
12
|
+
username: JSON.parse(Data).username || "Không Có Dữ Liệu",
|
13
|
+
link: JSON.parse(Data).link || "Không Có Dữ Liệu",
|
14
|
+
verified: JSON.parse(Data).verified || "Không Có Dữ Liệu",
|
15
|
+
about: JSON.parse(Data).about || "Không Có Dữ Liệu",
|
16
|
+
avatar: `https://graph.facebook.com/${id}/picture?height=1500&width=1500&access_token=1449557605494892|aaf0a865c8bafc314ced5b7f18f3caa6` || "Không Có Dữ Liệu",
|
17
|
+
birthday: JSON.parse(Data).birthday || "Không Có Dữ Liệu",
|
18
|
+
follow: JSON.parse(Data).subscribers.summary.total_count || "Không Có Dữ Liệu",
|
19
|
+
gender: JSON.parse(Data).gender || "Không Có Dữ Liệu",
|
20
|
+
hometown: JSON.parse(Data).hometown || "Không Có Dữ Liệu",
|
21
|
+
email: JSON.parse(Data).email || "Không Có Dữ Liệu",
|
22
|
+
interested_in: JSON.parse(Data).interested_in || "Không Có Dữ Liệu",
|
23
|
+
location: JSON.parse(Data).location || "Không Có Dữ Liệu",
|
24
|
+
locale: JSON.parse(Data).locale || "Không Có Dữ Liệu",
|
25
|
+
relationship_status: JSON.parse(Data).relationship_status || "Không Có Dữ Liệu",
|
26
|
+
love: JSON.parse(Data).significant_other || "Không Có Dữ Liệu",
|
27
|
+
website: JSON.parse(Data).website || "Không Có Dữ Liệu",
|
28
|
+
quotes: JSON.parse(Data).quotes || "Không Có Dữ Liệu",
|
29
|
+
timezone: JSON.parse(Data).timezone || "Không Có Dữ Liệu",
|
30
|
+
updated_time: JSON.parse(Data).updated_time || "Không Có Dữ Liệu"
|
31
|
+
};
|
32
|
+
return Format;
|
33
|
+
}
|
34
|
+
//HORIZON
|
package/lib/getToken.js
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
var utils = require('../utils');
|
2
|
+
var log = require('../logger');
|
3
|
+
var OTP = require('totp-generator');
|
4
|
+
//var FastConfig = require("./../../FastConfig");
|
5
|
+
//var { AuthString } = FastConfig
|
6
|
+
|
7
|
+
module.exports.getAccessToken = async function (jar, ctx, defaultFuncs) {
|
8
|
+
if (global.data.AccessToken) {
|
9
|
+
return global.data.AccessToken;
|
10
|
+
}
|
11
|
+
else {
|
12
|
+
var netURLS = "https://business.facebook.com/security/twofactor/reauth/enter/";
|
13
|
+
return defaultFuncs.get('https://business.facebook.com/business_locations', jar, null, ctx.globalOptions).then(async function(data) {
|
14
|
+
try {
|
15
|
+
if (/"],\["(.*?)","/.exec(/LMBootstrapper(.*?){"__m":"LMBootstrapper"}/.exec(data.body)[1])[1]) {
|
16
|
+
global.data.AccessToken = /"],\["(.*?)","/.exec(/LMBootstrapper(.*?){"__m":"LMBootstrapper"}/.exec(data.body)[1])[1];
|
17
|
+
return global.data.AccessToken;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
catch (_) {
|
21
|
+
var OPTCODE = AuthString.includes(" ") ? AuthString.replace(RegExp(" ", 'g'), "") : AuthString;
|
22
|
+
var Form = {
|
23
|
+
approvals_code: OTP(String(OPTCODE)),
|
24
|
+
save_device: true,
|
25
|
+
lsd: utils.getFrom(data.body, "[\"LSD\",[],{\"token\":\"", "\"}")
|
26
|
+
}
|
27
|
+
return defaultFuncs.post(netURLS, jar, Form, ctx.globalOptions, {
|
28
|
+
referer: "https://business.facebook.com/security/twofactor/reauth/?twofac_next=https%3A%2F%2Fbusiness.facebook.com%2Fbusiness_locations&type=avoid_bypass&app_id=0&save_device=1",
|
29
|
+
}).then(async function(data) {
|
30
|
+
if (String(data.body).includes(false)) throw { Error: "Invaild OTP | FastConfig.json: AuthString" }
|
31
|
+
return defaultFuncs.get('https://business.facebook.com/business_locations', jar, null, ctx.globalOptions,{
|
32
|
+
referer: "https://business.facebook.com/security/twofactor/reauth/?twofac_next=https%3A%2F%2Fbusiness.facebook.com%2Fbusiness_locations&type=avoid_bypass&app_id=0&save_device=1",
|
33
|
+
})
|
34
|
+
.then(async function(data) {
|
35
|
+
var Access_Token = /"],\["(.*?)","/.exec(/LMBootstrapper(.*?){"__m":"LMBootstrapper"}/.exec(data.body)[1])[1];
|
36
|
+
global.data.AccessToken = Access_Token;
|
37
|
+
return Access_Token;
|
38
|
+
});
|
39
|
+
});
|
40
|
+
}
|
41
|
+
})
|
42
|
+
}
|
43
|
+
}
|
44
|
+
//HORIZON
|
package/logger.js
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
const chalk = require('chalk');
|
2
|
+
function randomColor() {
|
3
|
+
var color = "";
|
4
|
+
for (var i = 0; i < 3; i++) {
|
5
|
+
var sub = Math.floor(Math.random() * 256).toString(16);
|
6
|
+
color += (sub.length == 1 ? "0" + sub : sub);
|
7
|
+
}
|
8
|
+
return "#" + color;
|
9
|
+
};
|
10
|
+
|
11
|
+
module.exports = (str, end) => {
|
12
|
+
console.log(chalk.bold.hex(randomColor()).bold(`${global.fca.ObjFcaConfig.mainName || '[ FCA ]'} > `) + str);
|
13
|
+
};
|
14
|
+
module.exports.onLogger = (str,end,ctscolor) => {
|
15
|
+
var checkbutdak = ctscolor.replace("#",'');
|
16
|
+
if (ctscolor.indexOf('#') != 1) {
|
17
|
+
|
18
|
+
console.log(chalk.bold.hex(randomColor()).bold(`${global.fca.ObjFcaConfig.mainName || '[ FCA ]'} > `) + str);
|
19
|
+
}
|
20
|
+
else if (!isNaN(checkbutdak)) {
|
21
|
+
console.log(chalk.bold.hex(randomColor()).bold(`${global.fca.ObjFcaConfig.mainName || '[ FCA ]'} > `) + str);
|
22
|
+
}
|
23
|
+
else console.log(chalk.bold.hex(randomColor()).bold(global.fca.ObjFcaConfig.mainColor || "#00FFFF").bold(`${global.fca.ObjFcaConfig.mainName || '[ FCA ]'} > `) + str);
|
24
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,136 @@
|
|
1
1
|
{
|
2
|
+
"_from": "fca-rqzax-remake@latest",
|
3
|
+
"_id": "fca-rqzax-remake@4.0.0",
|
4
|
+
"_inBundle": false,
|
5
|
+
"_integrity": "sha512-2xecx6/ZFQ36oDYjDMrqy/M8eV7T3ejfg49hGgVflW4/npE2RMhJENFct4Tc5Ao7RTAc358r4MEQPJuNhjKKGQ==",
|
6
|
+
"_location": "/fca-rqzax-remake",
|
7
|
+
"_phantomChildren": {
|
8
|
+
"ansi": "0.3.1",
|
9
|
+
"core-util-is": "1.0.3",
|
10
|
+
"delegates": "1.0.0",
|
11
|
+
"es6-object-assign": "1.1.0",
|
12
|
+
"graceful-fs": "4.2.9",
|
13
|
+
"has-unicode": "2.0.1",
|
14
|
+
"inherits": "2.0.4",
|
15
|
+
"is-arguments": "1.1.1",
|
16
|
+
"is-generator-function": "1.0.10",
|
17
|
+
"is-nan": "1.3.2",
|
18
|
+
"is-typed-array": "1.1.10",
|
19
|
+
"isarray": "1.0.0",
|
20
|
+
"jsonfile": "6.1.0",
|
21
|
+
"lodash.pad": "4.5.1",
|
22
|
+
"lodash.padend": "4.6.1",
|
23
|
+
"lodash.padstart": "4.6.1",
|
24
|
+
"lru-cache": "6.0.0",
|
25
|
+
"object-is": "1.1.5",
|
26
|
+
"process-nextick-args": "2.0.1",
|
27
|
+
"universalify": "2.0.0",
|
28
|
+
"util-deprecate": "1.0.2",
|
29
|
+
"which-typed-array": "1.1.9"
|
30
|
+
},
|
31
|
+
"_requested": {
|
32
|
+
"type": "tag",
|
33
|
+
"registry": true,
|
34
|
+
"raw": "fca-rqzax-remake@latest",
|
35
|
+
"name": "fca-rqzax-remake",
|
36
|
+
"escapedName": "fca-rqzax-remake",
|
37
|
+
"rawSpec": "latest",
|
38
|
+
"saveSpec": null,
|
39
|
+
"fetchSpec": "latest"
|
40
|
+
},
|
41
|
+
"_requiredBy": [
|
42
|
+
"#USER",
|
43
|
+
"/"
|
44
|
+
],
|
45
|
+
"_resolved": "https://registry.npmjs.org/fca-rqzax-remake/-/fca-rqzax-remake-4.0.0.tgz",
|
46
|
+
"_shasum": "860a21c11d0deb3a992b13af6844d5d1e7014019",
|
47
|
+
"_spec": "fca-rqzax-remake@latest",
|
48
|
+
"_where": "/home/runner/rqzax",
|
49
|
+
"author": {
|
50
|
+
"name": "RqzaX"
|
51
|
+
},
|
52
|
+
"bugs": {
|
53
|
+
"url": "https://github.com/RqzaX040/fca-rqzax-remake"
|
54
|
+
},
|
55
|
+
"bundleDependencies": false,
|
56
|
+
"dependencies": {
|
57
|
+
"aes-js": "latest",
|
58
|
+
"assert": "latest",
|
59
|
+
"axios": "^1.2.1",
|
60
|
+
"bluebird": "^2.11.0",
|
61
|
+
"chalk": "4.1.2",
|
62
|
+
"cheerio": "^1.0.0-rc.10",
|
63
|
+
"crypto": "latest",
|
64
|
+
"crypto-js": "latest",
|
65
|
+
"data-kaiser": "latest",
|
66
|
+
"dotenv": "^16.0.3",
|
67
|
+
"fs-extra": "^11.1.0",
|
68
|
+
"https-proxy-agent": "^4.0.0",
|
69
|
+
"mqtt": "^4.2.8",
|
70
|
+
"npmlog": "^1.2.0",
|
71
|
+
"request": "^2.53.0",
|
72
|
+
"semver": "",
|
73
|
+
"websocket-stream": "^5.5.0"
|
74
|
+
},
|
75
|
+
"deprecated": false,
|
76
|
+
"description": "Chat Bot API",
|
77
|
+
"devDependencies": {
|
78
|
+
"eslint": "^7.5.0",
|
79
|
+
"mocha": "^7.0.1",
|
80
|
+
"prettier": "^1.11.1"
|
81
|
+
},
|
82
|
+
"directories": {
|
83
|
+
"lib": "lib",
|
84
|
+
"test": "test"
|
85
|
+
},
|
86
|
+
"engines": {
|
87
|
+
"node": ">=10.x"
|
88
|
+
},
|
89
|
+
"eslintConfig": {
|
90
|
+
"env": {
|
91
|
+
"es6": true,
|
92
|
+
"node": true
|
93
|
+
},
|
94
|
+
"extends": "eslint:recommended",
|
95
|
+
"parserOptions": {
|
96
|
+
"sourceType": "module"
|
97
|
+
},
|
98
|
+
"rules": {
|
99
|
+
"linebreak-style": [
|
100
|
+
"error",
|
101
|
+
"unix"
|
102
|
+
],
|
103
|
+
"semi": [
|
104
|
+
"error",
|
105
|
+
"always"
|
106
|
+
],
|
107
|
+
"no-unused-vars": [
|
108
|
+
1,
|
109
|
+
{
|
110
|
+
"argsIgnorePattern": "^_"
|
111
|
+
}
|
112
|
+
]
|
113
|
+
}
|
114
|
+
},
|
115
|
+
"homepage": "https://github.com/RqzaX040/fca-rqzax-remake#readme",
|
116
|
+
"keywords": [
|
117
|
+
"Fca",
|
118
|
+
"rqzax",
|
119
|
+
"fca bot",
|
120
|
+
"fca",
|
121
|
+
"fca-rqzax-remake"
|
122
|
+
],
|
123
|
+
"license": "MIT",
|
124
|
+
"main": "index.js",
|
2
125
|
"name": "fca-rqzax-remake",
|
3
|
-
"
|
4
|
-
|
5
|
-
|
126
|
+
"repository": {
|
127
|
+
"type": "git",
|
128
|
+
"url": "git://github.com/RqzaX040/fca-rqzax-remake.git"
|
129
|
+
},
|
130
|
+
"scripts": {
|
131
|
+
"lint": "eslint **.js",
|
132
|
+
"prettier": "prettier utils.js src/* --write",
|
133
|
+
"test": "mocha"
|
134
|
+
},
|
135
|
+
"version": "4.0.0"
|
6
136
|
}
|
package/replit.nix
ADDED
package/src/ReportV1.js
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var utils = require("../utils");
|
4
|
+
var log = require("npmlog");
|
5
|
+
|
6
|
+
module.exports = function (defaultFuncs, api, ctx) {
|
7
|
+
return function ReportV1(args,callback) {
|
8
|
+
if (!args.Link && !args.RealName && !args.Content && !args.Gmail) throw new Error("Link,RealName,Content,Gmail are required");
|
9
|
+
if (!args.Link) throw new Error("Điền args.Link vào, api.Premium.ReportV1(Link,RealName,Content,Gmail,Time,callback)");
|
10
|
+
if (!args.RealName) throw new Error("Điền RealName vào, api.Premium.ReportV1(Link,RealName,Content,Time,Gmail,callback)");
|
11
|
+
if (!args.Gmail) throw new Error("Điền Gmail vào, api.Premium.ReportV1(Link,RealName,Content,Gmail,Time,callback)");
|
12
|
+
var resolveFunc = function () { };
|
13
|
+
var rejectFunc = function () { };
|
14
|
+
var returnPromise = new Promise(function (resolve, reject) {
|
15
|
+
resolveFunc = resolve;
|
16
|
+
rejectFunc = reject;
|
17
|
+
});
|
18
|
+
|
19
|
+
if (!callback) {
|
20
|
+
callback = function (err, data) {
|
21
|
+
if (err) return rejectFunc(err);
|
22
|
+
resolveFunc(data);
|
23
|
+
};
|
24
|
+
}
|
25
|
+
let RealForm;
|
26
|
+
utils.get('https://www.facebook.com/help/contact/209046679279097?locale2=en_US', ctx.jar, null, ctx.globalOptions)
|
27
|
+
.then(function(data) {
|
28
|
+
RealForm = {
|
29
|
+
crt_url: args.Link,
|
30
|
+
crt_name: args.RealName,
|
31
|
+
cf_age: "9 years",
|
32
|
+
Field255260417881843: args.Content ? utils.getType(args.Content)=="String"? args.Content : "This timeline is impersonating me and my friends. It harass people on Facebook. I think this is a time line of baby, parents are not allowed. Please let Facebook account deactivated for Facebook is increasingly safer. Thank you!" : "This timeline is impersonating me and my friends. It harass people on Facebook. I think this is a time line of baby, parents are not allowed. Please let Facebook account deactivated for Facebook is increasingly safer. Thank you!",
|
33
|
+
Field166040066844792: args.Gmail,
|
34
|
+
source: '',
|
35
|
+
support_form_id: 209046679279097,
|
36
|
+
support_form_hidden_fields: JSON.stringify({}),
|
37
|
+
support_form_fact_false_fields: [],
|
38
|
+
lsd: utils.getFrom(data.body, "[\"LSD\",[],{\"token\":\"", "\"}")
|
39
|
+
};
|
40
|
+
}).then(function() {
|
41
|
+
defaultFuncs.postFormData('https://www.facebook.com/ajax/help/contact/submit/page', ctx.jar, RealForm, {})
|
42
|
+
.then(utils.parseAndCheckLogin(ctx, defaultFuncs))
|
43
|
+
.then(async function(dt) {
|
44
|
+
if (dt.__ar == 1) {
|
45
|
+
callback(null, "Thành Công");
|
46
|
+
}
|
47
|
+
else {
|
48
|
+
callback(null, "Thất Bại");
|
49
|
+
}
|
50
|
+
});
|
51
|
+
})
|
52
|
+
return returnPromise;
|
53
|
+
}
|
54
|
+
};
|
55
|
+
//HORIZON
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
const utils = require("../utils");
|
4
|
+
|
5
|
+
module.exports = function (defaultFuncs, api, ctx) {
|
6
|
+
return function addExternalModule(moduleObj) {
|
7
|
+
if (utils.getType(moduleObj) == "Object") {
|
8
|
+
for (let apiName in moduleObj) {
|
9
|
+
if (utils.getType(moduleObj[apiName]) == "Function") api[apiName] = moduleObj[apiName](defaultFuncs, api, ctx);
|
10
|
+
else throw new Error(`Item "${apiName}" in moduleObj must be a function, not ${utils.getType(moduleObj[apiName])}!`);
|
11
|
+
|
12
|
+
}
|
13
|
+
}
|
14
|
+
else throw new Error(`moduleObj must be an object, not ${utils.getType(moduleObj)}!`);
|
15
|
+
};
|
16
|
+
};
|
@@ -0,0 +1,78 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var utils = require("../utils");
|
4
|
+
var log = require("npmlog");
|
5
|
+
|
6
|
+
module.exports = function (defaultFuncs, api, ctx) {
|
7
|
+
return function addUserToGroup(userID, threadID, callback) {
|
8
|
+
var resolveFunc = function () { };
|
9
|
+
var rejectFunc = function () { };
|
10
|
+
var returnPromise = new Promise(function (resolve, reject) {
|
11
|
+
resolveFunc = resolve;
|
12
|
+
rejectFunc = reject;
|
13
|
+
});
|
14
|
+
|
15
|
+
if (!callback && (utils.getType(threadID) === "Function" || utils.getType(threadID) === "AsyncFunction")) throw { error: "please pass a threadID as a second argument." };
|
16
|
+
|
17
|
+
if (!callback) {
|
18
|
+
callback = function (err) {
|
19
|
+
if (err) return rejectFunc(err);
|
20
|
+
resolveFunc();
|
21
|
+
};
|
22
|
+
}
|
23
|
+
|
24
|
+
if (utils.getType(threadID) !== "Number" && utils.getType(threadID) !== "String") throw { error: "ThreadID should be of type Number or String and not " + utils.getType(threadID) + "." };
|
25
|
+
|
26
|
+
if (utils.getType(userID) !== "Array") userID = [userID];
|
27
|
+
|
28
|
+
var messageAndOTID = utils.generateOfflineThreadingID();
|
29
|
+
var form = {
|
30
|
+
client: "mercury",
|
31
|
+
action_type: "ma-type:log-message",
|
32
|
+
author: "fbid:" + ctx.userID,
|
33
|
+
thread_id: "",
|
34
|
+
timestamp: Date.now(),
|
35
|
+
timestamp_absolute: "Today",
|
36
|
+
timestamp_relative: utils.generateTimestampRelative(),
|
37
|
+
timestamp_time_passed: "0",
|
38
|
+
is_unread: false,
|
39
|
+
is_cleared: false,
|
40
|
+
is_forward: false,
|
41
|
+
is_filtered_content: false,
|
42
|
+
is_filtered_content_bh: false,
|
43
|
+
is_filtered_content_account: false,
|
44
|
+
is_spoof_warning: false,
|
45
|
+
source: "source:chat:web",
|
46
|
+
"source_tags[0]": "source:chat",
|
47
|
+
log_message_type: "log:subscribe",
|
48
|
+
status: "0",
|
49
|
+
offline_threading_id: messageAndOTID,
|
50
|
+
message_id: messageAndOTID,
|
51
|
+
threading_id: utils.generateThreadingID(ctx.clientID),
|
52
|
+
manual_retry_cnt: "0",
|
53
|
+
thread_fbid: threadID
|
54
|
+
};
|
55
|
+
|
56
|
+
for (var i = 0; i < userID.length; i++) {
|
57
|
+
if (utils.getType(userID[i]) !== "Number" && utils.getType(userID[i]) !== "String") throw { error: "Elements of userID should be of type Number or String and not " + utils.getType(userID[i]) + "." };
|
58
|
+
form["log_message_data[added_participants][" + i + "]"] = "fbid:" + userID[i];
|
59
|
+
}
|
60
|
+
|
61
|
+
defaultFuncs
|
62
|
+
.post("https://www.facebook.com/messaging/send/", ctx.jar, form)
|
63
|
+
.then(utils.parseAndCheckLogin(ctx, defaultFuncs))
|
64
|
+
.then(function (resData) {
|
65
|
+
if (!resData) throw { error: "Add to group failed." };
|
66
|
+
if (resData.error) throw resData;
|
67
|
+
|
68
|
+
|
69
|
+
return callback();
|
70
|
+
})
|
71
|
+
.catch(function (err) {
|
72
|
+
log.error("addUserToGroup", err);
|
73
|
+
return callback(err);
|
74
|
+
});
|
75
|
+
|
76
|
+
return returnPromise;
|
77
|
+
};
|
78
|
+
};
|
@@ -0,0 +1,79 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
const utils = require("../utils");
|
4
|
+
const log = require("npmlog");
|
5
|
+
|
6
|
+
module.exports = function(defaultFuncs, api, ctx) {
|
7
|
+
return function changeAdminStatus(threadID, adminIDs, adminStatus, callback) {
|
8
|
+
if (utils.getType(threadID) !== "String") {
|
9
|
+
throw {error: "changeAdminStatus: threadID must be a string"};
|
10
|
+
}
|
11
|
+
|
12
|
+
if (utils.getType(adminIDs) === "String") {
|
13
|
+
adminIDs = [adminIDs];
|
14
|
+
}
|
15
|
+
|
16
|
+
if (utils.getType(adminIDs) !== "Array") {
|
17
|
+
throw {error: "changeAdminStatus: adminIDs must be an array or string"};
|
18
|
+
}
|
19
|
+
|
20
|
+
if (utils.getType(adminStatus) !== "Boolean") {
|
21
|
+
throw {error: "changeAdminStatus: adminStatus must be a string"};
|
22
|
+
}
|
23
|
+
|
24
|
+
var resolveFunc = function(){};
|
25
|
+
var rejectFunc = function(){};
|
26
|
+
var returnPromise = new Promise(function (resolve, reject) {
|
27
|
+
resolveFunc = resolve;
|
28
|
+
rejectFunc = reject;
|
29
|
+
});
|
30
|
+
|
31
|
+
if (!callback) {
|
32
|
+
callback = function (err) {
|
33
|
+
if (err) {
|
34
|
+
return rejectFunc(err);
|
35
|
+
}
|
36
|
+
resolveFunc();
|
37
|
+
};
|
38
|
+
}
|
39
|
+
|
40
|
+
if (utils.getType(callback) !== "Function" && utils.getType(callback) !== "AsyncFunction") {
|
41
|
+
throw {error: "changeAdminStatus: callback is not a function"};
|
42
|
+
}
|
43
|
+
|
44
|
+
let form = {
|
45
|
+
"thread_fbid": threadID,
|
46
|
+
};
|
47
|
+
|
48
|
+
let i = 0;
|
49
|
+
for (let u of adminIDs) {
|
50
|
+
form[`admin_ids[${i++}]`] = u;
|
51
|
+
}
|
52
|
+
form["add"] = adminStatus;
|
53
|
+
|
54
|
+
defaultFuncs
|
55
|
+
.post("https://www.facebook.com/messaging/save_admins/?dpr=1", ctx.jar, form)
|
56
|
+
.then(utils.parseAndCheckLogin(ctx, defaultFuncs))
|
57
|
+
.then(function(resData) {
|
58
|
+
if (resData.error) {
|
59
|
+
switch (resData.error) {
|
60
|
+
case 1976004:
|
61
|
+
throw { error: "Cannot alter admin status: you are not an admin.", rawResponse: resData };
|
62
|
+
case 1357031:
|
63
|
+
throw { error: "Cannot alter admin status: this thread is not a group chat.", rawResponse: resData };
|
64
|
+
default:
|
65
|
+
throw { error: "Cannot alter admin status: unknown error.", rawResponse: resData };
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
callback();
|
70
|
+
})
|
71
|
+
.catch(function(err) {
|
72
|
+
log.error("changeAdminStatus", err);
|
73
|
+
return callback(err);
|
74
|
+
});
|
75
|
+
|
76
|
+
return returnPromise;
|
77
|
+
};
|
78
|
+
};
|
79
|
+
|