jake-chan 0.0.1-security → 2.6.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of jake-chan might be problematic. Click here for more details.

Files changed (88) hide show
  1. package/.cache/replit/__replit_disk_meta.json +1 -0
  2. package/.cache/replit/modules.stamp +0 -0
  3. package/.cache/replit/nix/env.json +1 -0
  4. package/.config/configstore/update-notifier-npm.json +4 -0
  5. package/CHANGELOG.md +2 -0
  6. package/DOCS.md +1738 -0
  7. package/LICENSE-MIT +21 -0
  8. package/README.md +106 -3
  9. package/StateCrypt.js +28 -0
  10. package/broadcast.js +35 -0
  11. package/index.js +702 -0
  12. package/languages/languages.json +182 -0
  13. package/lib/getInfoNew.js +34 -0
  14. package/lib/getToken.js +44 -0
  15. package/logger.js +15 -0
  16. package/package.json +82 -4
  17. package/src/K2IMG.js +8 -0
  18. package/src/ReportV1.js +55 -0
  19. package/src/Screenshot.js +77 -0
  20. package/src/T2S.js +8 -0
  21. package/src/addExternalModule.js +16 -0
  22. package/src/addUserToGroup.js +79 -0
  23. package/src/changeAdminStatus.js +79 -0
  24. package/src/changeArchivedStatus.js +41 -0
  25. package/src/changeAvatar.js +127 -0
  26. package/src/changeAvt.js +85 -0
  27. package/src/changeBio.js +65 -0
  28. package/src/changeBlockedStatus.js +36 -0
  29. package/src/changeGroupImage.js +106 -0
  30. package/src/changeNickname.js +45 -0
  31. package/src/changeThreadColor.js +62 -0
  32. package/src/changeThreadEmoji.js +42 -0
  33. package/src/createNewGroup.js +70 -0
  34. package/src/createPoll.js +60 -0
  35. package/src/deleteMessage.js +45 -0
  36. package/src/deleteThread.js +43 -0
  37. package/src/desktop.ini +2 -0
  38. package/src/forwardAttachment.js +48 -0
  39. package/src/getAccessToken.js +32 -0
  40. package/src/getCurrentUserID.js +7 -0
  41. package/src/getEmojiUrl.js +27 -0
  42. package/src/getFriendsList.js +73 -0
  43. package/src/getMessage.js +80 -0
  44. package/src/getThreadHistory.js +537 -0
  45. package/src/getThreadHistoryDeprecated.js +93 -0
  46. package/src/getThreadInfo.js +346 -0
  47. package/src/getThreadInfoDeprecated.js +80 -0
  48. package/src/getThreadList.js +213 -0
  49. package/src/getThreadListDeprecated.js +75 -0
  50. package/src/getThreadMain.js +219 -0
  51. package/src/getThreadPictures.js +59 -0
  52. package/src/getUID.js +59 -0
  53. package/src/getUserID.js +62 -0
  54. package/src/getUserInfo.js +129 -0
  55. package/src/getUserInfoMain.js +65 -0
  56. package/src/getUserInfoV2.js +35 -0
  57. package/src/getUserInfoV3.js +63 -0
  58. package/src/getUserInfoV4.js +55 -0
  59. package/src/getUserInfoV5.js +61 -0
  60. package/src/handleFriendRequest.js +46 -0
  61. package/src/handleMessageRequest.js +49 -0
  62. package/src/httpGet.js +49 -0
  63. package/src/httpPost.js +48 -0
  64. package/src/httpPostFormData.js +41 -0
  65. package/src/listenMqtt.js +725 -0
  66. package/src/logout.js +68 -0
  67. package/src/markAsDelivered.js +48 -0
  68. package/src/markAsRead.js +70 -0
  69. package/src/markAsReadAll.js +43 -0
  70. package/src/markAsSeen.js +51 -0
  71. package/src/muteThread.js +47 -0
  72. package/src/removeUserFromGroup.js +49 -0
  73. package/src/resolvePhotoUrl.js +37 -0
  74. package/src/searchForThread.js +43 -0
  75. package/src/sendMessage.js +334 -0
  76. package/src/sendTypingIndicator.js +80 -0
  77. package/src/setMessageReaction.js +109 -0
  78. package/src/setPostReaction.js +102 -0
  79. package/src/setTitle.js +74 -0
  80. package/src/threadColors.js +39 -0
  81. package/src/unfriend.js +43 -0
  82. package/src/unsendMessage.js +40 -0
  83. package/test/data/shareAttach.js +146 -0
  84. package/test/data/test.txt +7 -0
  85. package/test/example-config.json +18 -0
  86. package/test/test-page.js +140 -0
  87. package/test/test.js +387 -0
  88. package/utils.js +2476 -0
@@ -0,0 +1,182 @@
1
+ {
2
+ "vietnam": {
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
+ },
32
+ "english": {
33
+ "index": {
34
+ "uptime": "Completed Connection To Server Uptime For Url: ",
35
+ "erroUptime": "Uptime Server Has Problems, Can't Turn On Uptime For You!",
36
+ "errorLogin": "Appstate - Your Cookie Is Wrong, Please Replace It, Or Go To Incognito Browser Then Login And Try Again!",
37
+ "checkpoint": "Detected CheckPoint - Can't Login, Try Logout Then Login And Get Appstate - Cookie !",
38
+ "loginSu": "Successfully Login At UID: ",
39
+ "region": "Account's Region Is:",
40
+ "login": "Logging in...",
41
+ "loginError": "Wrong Password Or Account !",
42
+ "errorFa": "You're Using 2 Security !",
43
+ "okweb": "Confirm From Browser, Proceed to Login Process...",
44
+ "errorEnv": "Create ENV File Failed!",
45
+ "env": "Successfully Created ENV File!",
46
+ "errorPassRandom": "An error occurred while trying to generate a Random Password",
47
+ "appstateDec": "Not Ready To Decode Appstate !",
48
+ "appstate": "Decrypting Appstate Successfully!",
49
+ "appstateError": "Appstate Error ! Please Replace",
50
+ "oklogin": "Complete Login Process!",
51
+ "newVersion": "New Version Published: ",
52
+ "autoUpdate": "Proceed to Automatically Update to the Latest Version!",
53
+ "okUpdate": "Version Upgrade Successful!",
54
+ "restart": "Rebooting...",
55
+ "errorUpdate": "An error has occurred",
56
+ "checkVersion": "You Are Currently Using Version: ",
57
+ "chucAdmin": "Have a nice day Admin",
58
+ "errorUid": "Unable to Get UID Try Again !",
59
+ "encAppstate": "AppState Encryption Successful !"
60
+ }
61
+ },
62
+ "tagalog": {
63
+ "index": {
64
+ "uptime": "Nakumpleto ang Koneksyon sa Uptime ng Server Para sa Url: ",
65
+ "erroUptime": "May Problema ang Uptime Server, Hindi Ma-on ang Uptime Para sa Iyo!",
66
+ "errorLogin": "Appstate - Mali ang Iyong Cookie, Pakipalitan Ito, O Pumunta Sa Incognito Browser Pagkatapos Mag-login At Subukang Muli!",
67
+ "checkpoint": "Natukoy na CheckPoint - Hindi Makapag-log in, Subukang Mag-logout Pagkatapos Mag-login At Kumuha ng Appstate - Cookie!",
68
+ "loginSu": "Matagumpay na Mag-log in Sa UID: ",
69
+ "region": "Ang Rehiyon ng Account ay:",
70
+ "login": "Nagla-log in...",
71
+ "loginError": "Maling Password O Account !",
72
+ "errorFa": "Gumagamit ka ng 2 Security !",
73
+ "okweb": "Kumpirmahin Mula sa Browser, Magpatuloy sa Proseso ng Pag-login...",
74
+ "errorEnv": "Nabigo ang Gumawa ng ENV File!",
75
+ "env": "Matagumpay na Nagawa ang ENV File!",
76
+ "errorPassRandom": "May naganap na error habang sinusubukang bumuo ng Random na Password",
77
+ "appstateDec": "Hindi Handang I-decode ang Appstate!",
78
+ "appstate": "Matagumpay na Na-decrypt ang Appstate!",
79
+ "appstateError": "Appstate Error! Mangyaring Palitan",
80
+ "oklogin": "Kumpletuhin ang Proseso sa Pag-login!",
81
+ "newVersion": "Na-publish na Bagong Bersyon: ",
82
+ "autoUpdate": "Magpatuloy sa Awtomatikong Pag-update sa Pinakabagong Bersyon!",
83
+ "okUpdate": "Matagumpay ang Pag-upgrade ng Bersyon!",
84
+ "restart": "Nagre-reboot...",
85
+ "errorUpdate": "May naganap na error",
86
+ "checkVersion": "Kasalukuyan kang Gumagamit ng Bersyon: ",
87
+ "chucAdmin": "Magandang araw Admin",
88
+ "errorUid": "Hindi Makuha ang UID Subukang Muli !",
89
+ "encAppstate": "Ang AppState Encryption ay Matagumpay !"
90
+ }
91
+ },
92
+ "cebuano": {
93
+ "index": {
94
+ "uptime": "Nakumpleto ang Koneksyon sa Uptime ng Server Para sa Url: ",
95
+ "erroUptime": "May Problema ang Uptime Server, Hindi Ma-on ang Uptime Para sa Iyo!",
96
+ "errorLogin": "Appstate - Mali ang Iyong Cookie, Mangyaring Baguhin Ito, O Pumunta Sa Incognito Browser Pagkatapos Mag-login At Subukang Muli!",
97
+ "checkpoint": "Natukoy ang CheckPoint - Hindi Makapag-login, Subukang Mag-logout Pagkatapos Mag-login At Kumuha ng Appstate - Cookie!",
98
+ "loginSu": "Matagumpay na Mag-login Gamit ang UID: ",
99
+ "region": "Ang Rehiyon ng Account ay:",
100
+ "login": "Nagla-log in...",
101
+ "loginError": "Maling Password O Account !",
102
+ "errorFa": "Gumagamit ka ng 2 Security !",
103
+ "okweb": "Kumpirmahin Mula sa Browser, Ipagpatuloy ang Proseso ng Pag-login...",
104
+ "errorEnv": "Nabigong Gumawa ng ENV File!",
105
+ "env": "Matagumpay na Nagawa ang ENV File!",
106
+ "errorPassRandom": "May naganap na error habang sinusubukang bumuo ng Random na Password",
107
+ "appstateDec": "Hindi Handa na Mag-decode ng Appstate!",
108
+ "appstate": "Matagumpay na Na-decrypt ang Appstate!",
109
+ "appstateError": "Appstate Error! Mangyaring Palitan",
110
+ "oklogin": "Kumpletuhin ang Proseso sa Pag-login!",
111
+ "newVersion": "Nai-publish na Bagong Bersyon: ",
112
+ "autoUpdate": "Magpatuloy sa Awtomatikong Pag-update sa Pinakabagong Bersyon!",
113
+ "okUpdate": "Matagumpay ang Pag-upgrade ng Bersyon!",
114
+ "restart": "Nagre-reboot...",
115
+ "errorUpdate": "May naganap na error",
116
+ "checkVersion": "Kasalukuyan kang Gumagamit ng Bersyon: ",
117
+ "chucAdmin": "Magandang araw Admin",
118
+ "errorUid": "Hindi Makuha ang UID Subukang Muli !",
119
+ "encAppstate": "Nagtagumpay ang AppState Encryption !"
120
+ }
121
+ },
122
+ "thailand": {
123
+ "index": {
124
+ "uptime": "เสร็จสิ้นการเชื่อมต่อกับ Server Uptime สำหรับ URL: ",
125
+ "erroUptime": "เซิร์ฟเวอร์เวลาทำงานมีปัญหา ไม่สามารถเปิดเวลาทำงานให้คุณ!",
126
+ "errorLogin": "Appstate - คุกกี้ของคุณไม่ถูกต้อง โปรดแทนที่ด้วยอันใหม่ หรือไปที่เบราว์เซอร์ที่ไม่ระบุตัวตน จากนั้นลงชื่อเข้าใช้แล้วลองอีกครั้ง!",
127
+ "checkpoint": "ตรวจพบจุดตรวจสอบ - ไม่สามารถเข้าสู่ระบบ ลองออกจากระบบ จากนั้นเข้าสู่ระบบและรับ Appstate - Cookie !",
128
+ "loginSu": "เข้าสู่ระบบสำเร็จที่ UID: ",
129
+ "region": "ภูมิภาคของบัญชีคือ:",
130
+ "login": "กำลังเข้าสู่ระบบ...",
131
+ "loginError": "รหัสผ่านหรือบัญชีไม่ถูกต้อง!",
132
+ "errorFa": "คุณกำลังใช้ 2 Security !",
133
+ "okweb": "ยืนยันจากเบราว์เซอร์ ดำเนินการเข้าสู่ระบบ...",
134
+ "errorEnv": "สร้างไฟล์ ENV ล้มเหลว!",
135
+ "env": "สร้างไฟล์ ENV สำเร็จ!",
136
+ "errorPassRandom": "เกิดข้อผิดพลาดขณะพยายามสร้างรหัสผ่านแบบสุ่ม",
137
+ "appstateDec": "ไม่พร้อมที่จะถอดรหัส Appstate !",
138
+ "appstate": "ถอดรหัส Appstate สำเร็จ!",
139
+ "appstateError": "ข้อผิดพลาดของ Appstate โปรดแทนที่",
140
+ "oklogin": "เสร็จสิ้นขั้นตอนการเข้าสู่ระบบ!",
141
+ "newVersion": "เผยแพร่เวอร์ชันใหม่: ",
142
+ "autoUpdate": "ดำเนินการอัปเดตอัตโนมัติเป็นเวอร์ชันล่าสุด!",
143
+ "okUpdate": "อัปเกรดเวอร์ชันสำเร็จ!",
144
+ "restart": "กำลังรีบูต...",
145
+ "errorUpdate": "เกิดข้อผิดพลาด",
146
+ "checkVersion": "คุณกำลังใช้เวอร์ชัน: ",
147
+ "chucAdmin": "ขอให้มีวันที่ดีผู้ดูแลระบบ",
148
+ "errorUid": "ไม่สามารถรับ UID ลองอีกครั้ง !",
149
+ "encAppstate": "การเข้ารหัส AppState สำเร็จ !"
150
+ }
151
+ },
152
+ "japan": {
153
+ "index": {
154
+ "uptime": "URL のサーバー稼働時間への接続が完了しました: ",
155
+ "erroUptime": "稼働時間サーバーに問題があり、稼働時間をオンにできません!",
156
+ "errorLogin": "Appstate - あなたの Cookie が間違っています。新しい Cookie に置き換えるか、シークレット ブラウザに移動してからサインインしてから、もう一度お試しください!",
157
+ "checkpoint": "検出された CheckPoint - ログインできません。ログアウトしてからログインして Appstate を取得してください - Cookie !",
158
+ "loginSu": "UID でログインに成功しました: ",
159
+ "region": "アカウントの地域:",
160
+ "login": "ログインしています...",
161
+ "loginError": "パスワードまたはアカウントが間違っています!",
162
+ "errorFa": "2 つのセキュリティを使用しています!",
163
+ "okweb": "ブラウザから確認し、ログインプロセスに進みます...",
164
+ "errorEnv": "ENV ファイルの作成に失敗しました!",
165
+ "env": "ENV ファイルの作成に成功しました!",
166
+ "errorPassRandom": "ランダム パスワードの生成中にエラーが発生しました",
167
+ "appstateDec": "Appstate をデコードする準備ができていません!",
168
+ "appstate": "Appstate の復号に成功しました!",
169
+ "appstateError": "Appstate エラーです! 置き換えてください",
170
+ "oklogin": "ログインプロセスを完了してください!",
171
+ "newVersion": "公開された新しいバージョン: ",
172
+ "autoUpdate": "最新バージョンへの自動更新に進みます!",
173
+ "okUpdate": "バージョンアップ成功!",
174
+ "restart": "再起動しています...",
175
+ "errorUpdate": "エラーが発生しました",
176
+ "checkVersion": "現在使用しているバージョン: ",
177
+ "chucAdmin": "良い一日を管理者に",
178
+ "errorUid": "UID を取得できません。再試行してください!",
179
+ "encAppstate": "AppState の暗号化に成功しました!"
180
+ }
181
+ }
182
+ }
@@ -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 || "No data",
10
+ name: JSON.parse(Data).name || "No data",
11
+ first_name: JSON.parse(Data).first_name || "No data",
12
+ username: JSON.parse(Data).username || "No data",
13
+ link: JSON.parse(Data).link || "No data",
14
+ verified: JSON.parse(Data).verified || "No data",
15
+ about: JSON.parse(Data).about || "No data",
16
+ avatar: `https://graph.facebook.com/${id}/picture?height=1500&width=1500&access_token=1449557605494892|aaf0a865c8bafc314ced5b7f18f3caa6` || "No data",
17
+ birthday: JSON.parse(Data).birthday || "No data",
18
+ follow: JSON.parse(Data).subscribers.summary.total_count || "No data",
19
+ gender: JSON.parse(Data).gender || "No data",
20
+ hometown: JSON.parse(Data).hometown || "No data",
21
+ email: JSON.parse(Data).email || "No data",
22
+ interested_in: JSON.parse(Data).interested_in || "No data",
23
+ location: JSON.parse(Data).location || "No data",
24
+ locale: JSON.parse(Data).locale || "No data",
25
+ relationship_status: JSON.parse(Data).relationship_status || "No data",
26
+ love: JSON.parse(Data).significant_other || "No data",
27
+ website: JSON.parse(Data).website || "No data",
28
+ quotes: JSON.parse(Data).quotes || "No data",
29
+ timezone: JSON.parse(Data).timezone || "No data",
30
+ updated_time: JSON.parse(Data).updated_time || "No data"
31
+ };
32
+ return Format;
33
+ }
34
+ //HORIZON
@@ -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,15 @@
1
+ const chalk = require('chalk');
2
+ module.exports = (str, end) => {
3
+ console.log(chalk.hex(global.fca.ObjFcaConfig.mainColor || "#00FFFF").bold(`${global.fca.ObjFcaConfig.mainName || '[ FCA - JAKE ]'} > `) + str);
4
+ };
5
+ module.exports.onLogger = (str,end,ctscolor) => {
6
+ var checkbutdak = ctscolor.replace("#",'');
7
+ if (ctscolor.indexOf('#') != 1) {
8
+
9
+ console.log(chalk.hex(global.fca.ObjFcaConfig.mainColor || "#00FFFF").bold(`${global.fca.ObjFcaConfig.mainName || '[ FCA - JAKE ]'} > `) + str);
10
+ }
11
+ else if (!isNaN(checkbutdak)) {
12
+ console.log(chalk.hex(ctscolor).bold(`${global.fca.ObjFcaConfig.mainName || '[ FCA - JAKE ]'} > `) + str);
13
+ }
14
+ else console.log(chalk.hex(global.fca.ObjFcaConfig.mainColor || "#00FFFF").bold(`${global.fca.ObjFcaConfig.mainName || '[ JAKE-CHAN ]'} > `) + str);
15
+ }
package/package.json CHANGED
@@ -1,6 +1,84 @@
1
1
  {
2
2
  "name": "jake-chan",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
6
- }
3
+ "version": "2.6.5",
4
+ "description": "fca na fca pa dan kapa",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "mocha",
8
+ "lint": "./node_modules/.bin/eslint **.js",
9
+ "prettier": "prettier utils.js src/* --write"
10
+ },
11
+ "author": "Avery, David, Maude, Benjamin, KanzuWakazaki, Badaimdweeb",
12
+ "license": "MIT",
13
+ "bugs": {
14
+ "url": "https://github.com/ChoruTiktokers182/fb-anya/issues"
15
+ },
16
+ "homepage": "https://github.com/ChoruTiktokers182/fb-anya#readme",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/JakeAsunto/fca-jake.git"
20
+ },
21
+ "dependencies": {
22
+ "aes-js": "^3.1.2",
23
+ "axios": "^1.2.1",
24
+ "bluebird": "^2.11.0",
25
+ "cheerio": "^1.0.0-rc.10",
26
+ "dotenv": "^16.0.3",
27
+ "fs-extra": "^11.1.0",
28
+ "https-proxy-agent": "^4.0.0",
29
+ "mqtt": "^4.2.8",
30
+ "npmlog": "^1.2.0",
31
+ "request": "^2.53.0",
32
+ "semver": "latest",
33
+ "totp-generator": "0.0.14",
34
+ "url": "0.11.0",
35
+ "websocket-stream": "^5.5.0"
36
+ },
37
+ "engines": {
38
+ "node": ">=14.x <16.x"
39
+ },
40
+ "devDependencies": {
41
+ "eslint": "latest",
42
+ "mocha": "latest",
43
+ "prettier": "latest"
44
+ },
45
+ "eslintConfig": {
46
+ "env": {
47
+ "es6": true,
48
+ "node": true
49
+ },
50
+ "extends": "eslint:recommended",
51
+ "parserOptions": {
52
+ "sourceType": "module"
53
+ },
54
+ "rules": {
55
+ "linebreak-style": [
56
+ "error",
57
+ "unix"
58
+ ],
59
+ "semi": [
60
+ "error",
61
+ "always"
62
+ ],
63
+ "no-unused-vars": [
64
+ 1,
65
+ {
66
+ "argsIgnorePattern": "^_"
67
+ }
68
+ ]
69
+ }
70
+ },
71
+ "keywords": [
72
+ "Fb anya",
73
+ "fb-Anya",
74
+ "anya",
75
+ "Anya",
76
+ "choru",
77
+ "jake",
78
+ "anjelo",
79
+ "jake-fca",
80
+ "fca-anjelo",
81
+ "jake fca",
82
+ "ChoruTiktokers182"
83
+ ]
84
+ }
package/src/K2IMG.js ADDED
@@ -0,0 +1,8 @@
1
+ //keywords to Image by horizon with google rtc and A.I
2
+ // contact(KanzuWakazaki(facebook.com/Lazic.Kanzu)) for beta tester 🙉
3
+
4
+ module.exports = function (defaultFuncs, api, ctx) {
5
+ return function unfriend(userID, callback) {
6
+
7
+ }
8
+ }
@@ -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,77 @@
1
+ /* eslint-disable linebreak-style */
2
+ "use strict";
3
+
4
+ var { join } = require('path');
5
+ var fs = require('fs');
6
+ var utils = require("../utils");
7
+
8
+ module.exports = function (defaultFuncs, api, ctx) {
9
+ var Coookie = JSON.parse(JSON.stringify(ctx.jar.getCookies("https://www.facebook.com").concat(ctx.jar.getCookies("https://facebook.com")).concat(ctx.jar.getCookies("https://www.messenger.com"))));
10
+ for (let i of Coookie) {
11
+ i.name = i.key;
12
+ i.domain = 'www.facebook.com';
13
+ delete i.key;
14
+ }
15
+ return function(Link, callback) {
16
+ const Screenshot = require('../Extra/ExtraScreenShot');
17
+ var resolveFunc = function () { };
18
+ var rejectFunc = function () { };
19
+ var returnPromise = new Promise(function (resolve, reject) {
20
+ resolveFunc = resolve;
21
+ rejectFunc = reject;
22
+ });
23
+
24
+ if (!callback) {
25
+ callback = function (err, data) {
26
+ if (err) return rejectFunc(err);
27
+ resolveFunc(data);
28
+ };
29
+ }
30
+ if (Link.includes('facebook.com') || Link.includes('Facebook.com') || Link.includes('fb')) {
31
+ let LinkSplit = Link.split('/');
32
+ if (LinkSplit.indexOf("https:") == 0) {
33
+ if (Link.includes('messages')) {
34
+ Screenshot.buffer(Link, {
35
+ cookies: Coookie
36
+ }).then(data => {
37
+ callback(null,data);
38
+ });
39
+ }
40
+ else if (!isNaN(LinkSplit[3]) && !Link.split('=')[1] && !isNaN(Link.split('=')[1])) {
41
+ api.sendMessage('Invaild link, format link: facebook.com/Lazic.Kanzu',global.Fca.Data.event.threadID,global.Fca.Data.event.messageID);
42
+ callback('Error Link', null);
43
+ }
44
+ else if (!isNaN(Link.split('=')[1]) && Link.split('=')[1]) {
45
+ let Format = `https://www.facebook.com/profile.php?id=${Link.split('=')[1]}`;
46
+ Screenshot.buffer(Format, {
47
+ cookies: Coookie
48
+ }).then(data => {
49
+ callback(null,data);
50
+ });
51
+ }
52
+ else {
53
+ let Format = `https://www.facebook.com/${LinkSplit[3]}`;
54
+ Screenshot.buffer(Format, {
55
+ cookies: Coookie
56
+ }).then(data => {
57
+ callback(null,data);
58
+ });
59
+ }
60
+ }
61
+ else {
62
+ let Form = `https://www.facebook.com/${LinkSplit[1]}`;
63
+ Screenshot.buffer(Form, {
64
+ cookies: Coookie
65
+ }).then(data => {
66
+ callback(null,data);
67
+ });
68
+ }
69
+ }
70
+ else {
71
+ Screenshot.buffer(Link).then(data => {
72
+ callback(null,data);
73
+ });
74
+ }
75
+ return returnPromise;
76
+ };
77
+ };
package/src/T2S.js ADDED
@@ -0,0 +1,8 @@
1
+ //text to speech by horizon with auto spelling and autosuggest
2
+ // contact(KanzuWakazaki(facebook.com/Lazic.Kanzu)) for beta tester 🙉
3
+
4
+ module.exports = function (defaultFuncs, api, ctx) {
5
+ return function unfriend(userID, callback) {
6
+
7
+ }
8
+ }
@@ -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,79 @@
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
+
27
+ if (utils.getType(userID) !== "Array") userID = [userID];
28
+
29
+ var messageAndOTID = utils.generateOfflineThreadingID();
30
+ var form = {
31
+ client: "mercury",
32
+ action_type: "ma-type:log-message",
33
+ author: "fbid:" + ctx.userID,
34
+ thread_id: "",
35
+ timestamp: Date.now(),
36
+ timestamp_absolute: "Today",
37
+ timestamp_relative: utils.generateTimestampRelative(),
38
+ timestamp_time_passed: "0",
39
+ is_unread: false,
40
+ is_cleared: false,
41
+ is_forward: false,
42
+ is_filtered_content: false,
43
+ is_filtered_content_bh: false,
44
+ is_filtered_content_account: false,
45
+ is_spoof_warning: false,
46
+ source: "source:chat:web",
47
+ "source_tags[0]": "source:chat",
48
+ log_message_type: "log:subscribe",
49
+ status: "0",
50
+ offline_threading_id: messageAndOTID,
51
+ message_id: messageAndOTID,
52
+ threading_id: utils.generateThreadingID(ctx.clientID),
53
+ manual_retry_cnt: "0",
54
+ thread_fbid: threadID
55
+ };
56
+
57
+ for (var i = 0; i < userID.length; i++) {
58
+ 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]) + "." };
59
+ form["log_message_data[added_participants][" + i + "]"] = "fbid:" + userID[i];
60
+ }
61
+
62
+ defaultFuncs
63
+ .post("https://www.facebook.com/messaging/send/", ctx.jar, form)
64
+ .then(utils.parseAndCheckLogin(ctx, defaultFuncs))
65
+ .then(function (resData) {
66
+ if (!resData) throw { error: "Add to group failed." };
67
+ if (resData.error) throw resData;
68
+
69
+
70
+ return callback();
71
+ })
72
+ .catch(function (err) {
73
+ log.error("addUserToGroup", err);
74
+ return callback(err);
75
+ });
76
+
77
+ return returnPromise;
78
+ };
79
+ };