team-atf 0.0.1-security → 3.1.0

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

Potentially problematic release.


This version of team-atf might be problematic. Click here for more details.

Files changed (98) hide show
  1. package/.gitattributes +2 -0
  2. package/Extra/Database/index.js +360 -0
  3. package/Extra/ExtraAddons.js +78 -0
  4. package/Extra/ExtraFindUID.js +60 -0
  5. package/Extra/ExtraGetThread.js +118 -0
  6. package/Extra/ExtraScreenShot.js +430 -0
  7. package/Extra/ExtraUptimeRobot.js +26 -0
  8. package/Extra/Html/Classic/script.js +119 -0
  9. package/Extra/Html/Classic/style.css +8 -0
  10. package/Extra/Security/Index.js +146 -0
  11. package/Extra/Security/Step_1.js +11 -0
  12. package/Extra/Security/Step_2.js +20 -0
  13. package/Extra/Security/Step_3.js +20 -0
  14. package/Extra/Src/History.js +115 -0
  15. package/Extra/Src/Last-Run.js +65 -0
  16. package/Extra/Src/Premium.js +84 -0
  17. package/Extra/Src/uuid.js +137 -0
  18. package/Func/AcceptAgreement.js +32 -0
  19. package/Func/ClearCache.js +64 -0
  20. package/Func/ReportV1.js +54 -0
  21. package/LICENSE +24 -0
  22. package/Language/index.json +88 -0
  23. package/README.md +3 -5
  24. package/SECURITY.md +17 -0
  25. package/broadcast.js +38 -0
  26. package/index.js +1357 -0
  27. package/logger.js +65 -0
  28. package/package.json +88 -3
  29. package/src/Dev_Horizon_Data.js +125 -0
  30. package/src/Premium.js +30 -0
  31. package/src/Screenshot.js +85 -0
  32. package/src/addExternalModule.js +16 -0
  33. package/src/addUserToGroup.js +79 -0
  34. package/src/changeAdminStatus.js +79 -0
  35. package/src/changeArchivedStatus.js +41 -0
  36. package/src/changeAvt.js +85 -0
  37. package/src/changeBio.js +65 -0
  38. package/src/changeBlockedStatus.js +36 -0
  39. package/src/changeGroupImage.js +106 -0
  40. package/src/changeNickname.js +45 -0
  41. package/src/changeThreadColor.js +62 -0
  42. package/src/changeThreadEmoji.js +42 -0
  43. package/src/createNewGroup.js +70 -0
  44. package/src/createPoll.js +60 -0
  45. package/src/deleteMessage.js +45 -0
  46. package/src/deleteThread.js +43 -0
  47. package/src/forwardAttachment.js +48 -0
  48. package/src/getAccessToken.js +32 -0
  49. package/src/getCurrentUserID.js +7 -0
  50. package/src/getEmojiUrl.js +27 -0
  51. package/src/getFriendsList.js +73 -0
  52. package/src/getMessage.js +80 -0
  53. package/src/getThreadHistory.js +537 -0
  54. package/src/getThreadInfo.js +348 -0
  55. package/src/getThreadList.js +213 -0
  56. package/src/getThreadMain.js +220 -0
  57. package/src/getThreadPictures.js +59 -0
  58. package/src/getUID.js +59 -0
  59. package/src/getUserID.js +62 -0
  60. package/src/getUserInfo.js +129 -0
  61. package/src/getUserInfoMain.js +65 -0
  62. package/src/getUserInfoV2.js +36 -0
  63. package/src/getUserInfoV3.js +63 -0
  64. package/src/getUserInfoV4.js +55 -0
  65. package/src/getUserInfoV5.js +61 -0
  66. package/src/handleFriendRequest.js +46 -0
  67. package/src/handleMessageRequest.js +49 -0
  68. package/src/httpGet.js +49 -0
  69. package/src/httpPost.js +48 -0
  70. package/src/httpPostFormData.js +41 -0
  71. package/src/listenMqtt.js +702 -0
  72. package/src/logout.js +68 -0
  73. package/src/markAsDelivered.js +48 -0
  74. package/src/markAsRead.js +70 -0
  75. package/src/markAsReadAll.js +43 -0
  76. package/src/markAsSeen.js +51 -0
  77. package/src/muteThread.js +47 -0
  78. package/src/removeUserFromGroup.js +49 -0
  79. package/src/resolvePhotoUrl.js +37 -0
  80. package/src/searchForThread.js +43 -0
  81. package/src/sendMessage.js +334 -0
  82. package/src/sendTypingIndicator.js +80 -0
  83. package/src/setMessageReaction.js +109 -0
  84. package/src/setPostReaction.js +102 -0
  85. package/src/setTitle.js +74 -0
  86. package/src/threadColors.js +39 -0
  87. package/src/unfriend.js +43 -0
  88. package/src/unsendMessage.js +40 -0
  89. package/test/data/shareAttach.js +146 -0
  90. package/test/data/something.mov +0 -0
  91. package/test/data/test.png +0 -0
  92. package/test/data/test.txt +7 -0
  93. package/test/env/.env +0 -0
  94. package/test/example-config.json +18 -0
  95. package/test/test-page.js +140 -0
  96. package/test/test.js +385 -0
  97. package/test/testv2.js +3 -0
  98. package/utils.js +1648 -0
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ const { execSync } = require('child_process');
3
+ var utils = require("../utils");
4
+ var log = require("../logger");
5
+ var Object = ['png','json','wav','mp3','mp4','jpg','txt','gif','tff','m4a'];
6
+ var Recommend = ['png','wav','mp3','mp4','jpg','m4a'];
7
+ module.exports = function (defaultFuncs, api, ctx) {
8
+ return function (Args,callback) {
9
+ let New1 = [];
10
+ if (!Args.New || utils.getType(Args.New) !== "Array") {
11
+ New1 = Recommend;
12
+ log.Normal("Không Có Adding Thêm, Tiến Hành Sử Dụng Theo Hệ Thống Chỉ Định !");
13
+ }
14
+ else {
15
+ for (let i = 0; i < Args.New.length; i++) {
16
+ if (Object.indexOf(Args.New[i]) === -1) {
17
+ log.Normal('Không tìm thấy file ' + Args.New[i] + ' trong danh sách định dạng');
18
+ return;
19
+ }
20
+ New1.push(Args.New[i]);
21
+ }
22
+ }
23
+ var resolveFunc = function () { };
24
+ var rejectFunc = function () { };
25
+ var returnPromise = new Promise(function (resolve, reject) {
26
+ resolveFunc = resolve;
27
+ rejectFunc = reject;
28
+ });
29
+
30
+ if (!callback) {
31
+ callback = function (err, data) {
32
+ if (err) return rejectFunc(err);
33
+ resolveFunc(data);
34
+ };
35
+ }
36
+ switch (process.platform) {
37
+ case 'linux': {
38
+ for (let i = 0; i < New1.length; i++) {
39
+ log.Normal('Đang Clear Loại File ' + New1[i]);
40
+ var STR = String(`find ./modules -type f -iname \'*.${New1[i]}\' -exec rm {} \\;`)
41
+ execSync(STR);
42
+ }
43
+ log.Normal('Thành Công Clear ' + New1.length + ' Loại File !');
44
+ callback(null, 'Thành Công Clear ' + New1.length + ' Loại File !');
45
+ }
46
+ break;
47
+ case "win32": {
48
+ var cmd = "del /q /s /f /a ";
49
+ for (let i = 0; i < New1.length; i++) {
50
+ log.Normal('Đang Clear Loại File ' + New1[i]);
51
+ var STR = String(cmd + '.\\modules\\*.' + New1[i] + '\"')
52
+ execSync(STR, { stdio: 'inherit' });
53
+ }
54
+ log.Normal('Thành Công Clear ' + New1.length + ' Loại File !');
55
+ callback(null, 'Thành Công Clear ' + New1.length + ' Loại File !');
56
+ }
57
+ break;
58
+ default: {
59
+ return log.Error('Not Supported');
60
+ }
61
+ }
62
+ return returnPromise;
63
+ }
64
+ };
@@ -0,0 +1,54 @@
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 (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
+ };
package/LICENSE ADDED
@@ -0,0 +1,24 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Nguyễn Thái Hảo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ DO NOT: - re-up this package without agreement from the author. if you do, you will have your name in Globalban
13
+ - And More Thing.
14
+
15
+ The above copyright notice and this permission notice shall be included in all
16
+ copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ SOFTWARE.
@@ -0,0 +1,88 @@
1
+ [
2
+ {
3
+ "Language": "en",
4
+ "Folder": {
5
+ "Index": {
6
+ "ErrAppState": "Appstate - Your Cookie Is Wrong, Please Replace It, Or Go To Incognito Browser Then Sign In And Try Again !",
7
+ "CheckPointLevelI": "CheckPoint Detected - Can't Login, Try Logout Then Login And Retrieve Appstate - Cookie !",
8
+ "UID": "Login as ID: %1",
9
+ "Area": "Area Of Account Is: %1",
10
+ "NoAreaData": "Can't Get Area Of Account !",
11
+ "OnLogin": "Currently logged ...",
12
+ "InvaildAccount": "Wrong Password Or Account !",
13
+ "TwoAuth": "You Currently On 2 Factor Security !",
14
+ "InvaildTwoAuthCode": "Wrong Code Two Factor Security !",
15
+ "ApprovalsErr": "Error When Login With Two Factor Security !",
16
+ "VerifiedCheck": "Confirm From Browser, Logging In...",
17
+ "ForceLoginNotEnable": "Can't Login, Try Enable 'forceLogin' !",
18
+ "SubmitErrSuccess": "Error Report Sent To Server !",
19
+ "ErrorWhileSendErr": "An error occurred while trying to send an error to the server !",
20
+ "OnProcess": "Start the Login Process !",
21
+ "BackupNoti": "Changing AppState From Backup, If This Continues, Contact Fb.com/Lazic.Kanzu",
22
+ "ErrGetPassWord": "Error Retrieving AppState Encryption Password !",
23
+ "ErrGenerateKey": "Error Creating Password For AppState !",
24
+ "UnsupportedDevice": "Your Operating System Is Currently Not Supported !",
25
+ "NotReadyToDecrypt": "Not Ready To Solve Appstate !",
26
+ "DecryptSuccess": "Successfully Appstate Solved !",
27
+ "ErrBackup": "Error When Backing Up AppState, Please Replace AppState !",
28
+ "DecryptFailed": "Solution Failed, Try Replacing AppState !",
29
+ "InvaildAppState": "AppState Not Recognized, Please Replace AppState !",
30
+ "YourAppStatePass": "Your AppState Password Is: %1",
31
+ "BackupFailed": "AppState Backup Failed !",
32
+ "ScreenShotConsoleAndSendToAdmin": "Take a Screenshot of This Line And Send It To Facebook: Fb.com/CH4ND.CH4ND",
33
+ "DoneLogin": "Complete the Login Process !",
34
+ "AutoCheckUpdate": "Checking for Updates !",
35
+ "NewVersionFound": "New Version, Ready to Update: %1 => %2",
36
+ "AutoUpdate": "Perform Automatic Update to the Latest Version !",
37
+ "UpdateSuccess": "Upgrade Version Successfully !",
38
+ "RestartAfterUpdate": "Rebooting For New Version To Take Effect !",
39
+ "UpdateFailed": "Error When Upgrading To Latest Version !",
40
+ "UseSupportToolAfterUpdateFailed": "Upgrade Failed, Proceed to Using Support Tools !",
41
+ "InstallSupportTool": "Loading Support Tools For FCA !",
42
+ "NotiAfterUseToolFail": "Please Fix It Yourself By Entering:",
43
+ "LocalVersion": "You Are Currently Using Version: %1 !",
44
+ "EncryptSuccess": "Encrypt Appstate Success !",
45
+ "ProcessDone": "Process Done: %1 !",
46
+ "InvaildMainColor": "%1 Is Not A Hex Color Code !",
47
+ "IsNotABoolean": "%1 Is Not A Boolean, Need To Be true Or false !",
48
+ "EncryptStateOff": "Encryption Has Been Turned Off !",
49
+ "InvaildOption": "Invail Option: %1",
50
+ "CountTime": "Total Time You Use: %1",
51
+
52
+ "AutoLogin": "AutoLogin Is On, Proceed to Log Back in!",
53
+ "TypeAccount": "Enter Account: ",
54
+ "TypePassword": "Enter a Password: ",
55
+ "TypeAccountError": "The account needs to be an ID or Phone number or Gmail!",
56
+ "ErrDataBase": "Error When Setting Auto Login Data !",
57
+ "SuccessSetData": "Auto Login Data Set Successfully !",
58
+ "Missing": "Please Code 2Fa According to the Photo's Guide in TeamAtfChand.json Series AuthString!",
59
+ "EnterSecurityCode": "Enter your 2-Factor Authentication Code: ",
60
+ "ErrThroughCookies": "2Fa Piercing Error Occurred, Enter Code 2Fa Again! ",
61
+
62
+ "WishMessage": [
63
+ "Have a Nice Day !",
64
+ "Please Report To Admin When There Is Error in FCA !",
65
+ "Thank You For Using CHAND FCA !"
66
+ ]
67
+ },
68
+ "ExtraGetThread": {
69
+ "CreateDatabaseSuccess": "Successfully Initiate Database for Group: %1",
70
+ "CreateDatabaseFailure": "Initialization of Group Database Failure: %1",
71
+ "alreadyUpdate": "%1 Ready to Update Database",
72
+ "updateDataSuccess": "Data Update for Group %1 Success!",
73
+ "updateDataFailure": "Data Update for Group %1 Failed!"
74
+ },
75
+ "ExtraUpTime": {
76
+ "Uptime": "Connecting To Server Uptime Succeeds!",
77
+ "PM2": "Trying to PM2 Mode!",
78
+ "InPm2Mode": "You Are In Uptime PM2 Mode !",
79
+ "NotSupport": "Your Operating System does not currently support Uptime Server !",
80
+ "Maintenance": "Server Uptime In Maintenance, Try Again Later!"
81
+ },
82
+ "Src": {
83
+ "AutoRestart": "Automatically Restart After: %1 Minutes !",
84
+ "OnRestart": "Restarting..."
85
+ }
86
+ }
87
+ }
88
+ ]
package/README.md CHANGED
@@ -1,5 +1,3 @@
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=team-atf for more information.
1
+ ## CHAND TRICKER
2
+ ## FCA CHAND
3
+ ## API CHAND
package/SECURITY.md ADDED
@@ -0,0 +1,17 @@
1
+ # Security Policy
2
+
3
+ + if have any Vulnerability finded contact: Author(CHAND) or (Facebook.com/CH4ND.CH4ND). Thanks!
4
+
5
+ ## Supported Versions
6
+
7
+ Use this section to tell people about which versions of your project are
8
+ currently being supported with security updates.
9
+
10
+ | Version | Supported |
11
+ | ------- | ------------------ |
12
+ | Main Version With Autoupdate | :white_check_mark: |
13
+ | Old Version | :x:|
14
+
15
+ ## Reporting a Vulnerability
16
+
17
+ Contact Author
package/broadcast.js ADDED
@@ -0,0 +1,38 @@
1
+ switch (global.Fca.Require.FastConfig.BroadCast) {
2
+ case true: {
3
+ try {
4
+ var logger = global.Fca.Require.logger;
5
+ var Fetch = global.Fca.Require.Fetch;
6
+ Fetch.get("https://raw.githubusercontent.com/corazoncary/chanu/main/Fca_BroadCast.json").then(async (/** @type {{ body: { toString: () => string; }; }} */ res) => {
7
+ global.Fca.Data.BroadCast = JSON.parse(res.body.toString())
8
+ var random = JSON.parse(res.body.toString())[Math.floor(Math.random() * JSON.parse(res.body.toString()).length)] || "UPDATE";
9
+ logger.Normal(random);
10
+ });
11
+ }
12
+ catch (e) {
13
+ console.log(e);
14
+ }
15
+ return setInterval(() => {
16
+ try {
17
+ try {
18
+ var logger = global.Fca.Require.logger;
19
+ var random = global.Fca.Data.BroadCast[Math.floor(Math.random() * global.Fca.Data.BroadCast.length)] || "UPDATE";
20
+ logger.Normal(random);
21
+ }
22
+ catch (e) {
23
+ console.log(e);
24
+ return;
25
+ }
26
+ }
27
+ catch (e) {
28
+ console.log(e);
29
+ }
30
+ },1800 * 1000);
31
+ }
32
+ case false: {
33
+ break;
34
+ }
35
+ default: {
36
+ break;
37
+ }
38
+ }