fca-test-mtx 2.0.1
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.
- package/.cache/nix/binary-cache-v6.sqlite-journal +0 -0
- package/.cache/replit/__replit_disk_meta.json +1 -0
- package/.cache/replit/modules/nodejs-20:v22-20240103-2da4911.res +1 -0
- package/.cache/replit/modules.stamp +0 -0
- package/.cache/replit/nix/env.json +1 -0
- package/.cache/typescript/5.0/package.json +1 -0
- package/.cache/typescript/5.3/package.json +1 -0
- package/.gitattributes +2 -0
- package/.prettierrc +4 -0
- package/.replit +14 -0
- package/.upm/store.json +1 -0
- package/Extra/Database/index.js +469 -0
- package/Extra/ExtraAddons.js +82 -0
- package/Extra/ExtraFindUID.js +62 -0
- package/Extra/ExtraGetThread.js +340 -0
- package/Extra/ExtraScreenShot.js +430 -0
- package/Extra/ExtraUptimeRobot.js +38 -0
- package/Extra/Html/Classic/script.js +119 -0
- package/Extra/Html/Classic/style.css +8 -0
- package/Extra/Security/AES_256_GCM/index.js +0 -0
- package/Extra/Security/Base/Step_1.js +6 -0
- package/Extra/Security/Base/Step_2.js +22 -0
- package/Extra/Security/Base/Step_3.js +22 -0
- package/Extra/Security/Base/index.js +173 -0
- package/Extra/Security/Index.js +5 -0
- package/Extra/Security/Step_1.js +6 -0
- package/Extra/Security/Step_2.js +22 -0
- package/Extra/Security/Step_3.js +22 -0
- package/Extra/Src/Change_Environment.js +24 -0
- package/Extra/Src/Check_Update.js +66 -0
- package/Extra/Src/History.js +115 -0
- package/Extra/Src/Instant_Update.js +65 -0
- package/Extra/Src/Last-Run.js +65 -0
- package/Extra/Src/Premium.js +81 -0
- package/Extra/Src/Release_Memory.js +41 -0
- package/Extra/Src/Websocket.js +213 -0
- package/Extra/Src/images/checkmate.jpg +0 -0
- package/Extra/Src/uuid.js +137 -0
- package/ExtraGetThread.js +1217 -0
- package/Func/AcceptAgreement.js +31 -0
- package/Func/ClearCache.js +64 -0
- package/Func/ReportV1.js +54 -0
- package/LICENSE +21 -0
- package/Language/index.json +110 -0
- package/README.md +136 -0
- package/SECURITY.md +18 -0
- package/broadcast.js +40 -0
- package/index.js +387 -0
- package/ivancotacte1.png +0 -0
- package/ivancotacte2.jpg +0 -0
- package/ivancotacte3.png +0 -0
- package/logger.js +67 -0
- package/package.json +93 -0
- package/replit.nix +3 -0
- package/src/Dev_Horizon_Data.js +125 -0
- package/src/Premium.js +25 -0
- package/src/Screenshot.js +83 -0
- package/src/addExternalModule.js +16 -0
- package/src/addUserToGroup.js +79 -0
- package/src/changeAdminStatus.js +79 -0
- package/src/changeArchivedStatus.js +41 -0
- package/src/changeAvt.js +85 -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/deleteMessage.js +45 -0
- package/src/deleteThread.js +43 -0
- package/src/forwardAttachment.js +48 -0
- package/src/getAccessToken.js +28 -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/getThreadInfo.js +425 -0
- package/src/getThreadList.js +213 -0
- package/src/getThreadMain.js +220 -0
- package/src/getThreadPictures.js +59 -0
- package/src/getUID.js +59 -0
- package/src/getUserID.js +62 -0
- package/src/getUserInfo.js +113 -0
- package/src/getUserInfoMain.js +65 -0
- package/src/getUserInfoV2.js +32 -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 +787 -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 +455 -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/Database_Test.js +4 -0
- package/test/ExtraGetThread.js +530 -0
- package/test/Horizon_Database/A_README.md +1 -0
- package/test/Horizon_Database/Database.db +0 -0
- package/test/data/shareAttach.js +146 -0
- package/test/data/something.mov +0 -0
- package/test/data/test.png +0 -0
- package/test/data/test.txt +7 -0
- package/test/example-config.json +18 -0
- package/test/example-db.db +0 -0
- package/test/memoryleak.js +18 -0
- package/test/test-page.js +140 -0
- package/test/test.js +385 -0
- package/test/testv2.js +18 -0
- package/utils.js +1683 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var utils = require("../utils");
|
|
4
|
+
var log = require("npmlog");
|
|
5
|
+
var database = require('../Extra/Database');
|
|
6
|
+
module.exports = function (defaultFuncs, api, ctx) {
|
|
7
|
+
return function (args,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) {
|
|
16
|
+
callback = function (err, data) {
|
|
17
|
+
if (err) return rejectFunc(err);
|
|
18
|
+
resolveFunc(data);
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
if (database(true).get('agreement') == true) {
|
|
22
|
+
callback(null, "Accecpt");
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
database(true).set('agreement', true);
|
|
26
|
+
var Form = "=== MTXPROJECT end-user license agreement ===\n\n Free to use and edited ✨";
|
|
27
|
+
callback(null, Form);
|
|
28
|
+
}
|
|
29
|
+
return returnPromise;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -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("No Additions, Use According to System Instructions!");
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
for (let i = 0; i < Args.New.length; i++) {
|
|
16
|
+
if (Object.indexOf(Args.New[i]) === -1) {
|
|
17
|
+
log.Normal('File not found ' + Args.New[i] + ' in the format list');
|
|
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 File Type ' + New1[i]);
|
|
40
|
+
var STR = String(`find ./modules -type f -iname \'*.${New1[i]}\' -exec rm {} \\;`);
|
|
41
|
+
execSync(STR);
|
|
42
|
+
}
|
|
43
|
+
log.Normal('Success Clear ' + New1.length + ' File Type !');
|
|
44
|
+
callback(null, 'Success Clear ' + New1.length + ' File Type !');
|
|
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 File Type ' + New1[i]);
|
|
51
|
+
let STR = String(cmd + '.\\modules\\*.' + New1[i] + '"');
|
|
52
|
+
execSync(STR, { stdio: 'inherit' });
|
|
53
|
+
}
|
|
54
|
+
log.Normal('Success Clear ' + New1.length + ' File Type !');
|
|
55
|
+
callback(null, 'Success Clear ' + New1.length + ' File Type !');
|
|
56
|
+
}
|
|
57
|
+
break;
|
|
58
|
+
default: {
|
|
59
|
+
return log.Error('Not Supported');
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return returnPromise;
|
|
63
|
+
};
|
|
64
|
+
};
|
package/Func/ReportV1.js
ADDED
|
@@ -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("Fill in args.Link in, api.Premium.ReportV1(Link,RealName,Content,Gmail,Time,callback)");
|
|
10
|
+
if (!args.RealName) throw new Error("Enter RealName, api.Premium.ReportV1(Link,RealName,Content,Time,Gmail,callback)");
|
|
11
|
+
if (!args.Gmail) throw new Error("Fill in Gmail, 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, "Success");
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
callback(null, "Failed");
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
})
|
|
52
|
+
return returnPromise;
|
|
53
|
+
}
|
|
54
|
+
};
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 MrTomXxX
|
|
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
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"Language": "en",
|
|
4
|
+
"Folder": {
|
|
5
|
+
"Index": {
|
|
6
|
+
"ErrAppState": "Appstate - Your Cookie is corrupted, please replace it with a new one, or go to an incognito browser, then log in and try again!",
|
|
7
|
+
"CheckPointLevelI": "CheckPoint Detection- Cant Log In, Try Logout Then Login And Get Appstate Again - Cookie !",
|
|
8
|
+
"UID": "Login At ID: %1",
|
|
9
|
+
"Area": "The Area Of The Account Is: %1",
|
|
10
|
+
"NoAreaData": "Unable to Get Account Area !",
|
|
11
|
+
"OnLogin": "Currently logged ...",
|
|
12
|
+
"InvaildAccount": "Wrong Password or Account !",
|
|
13
|
+
"TwoAuth": "You Are Enabling Two-factor-Authorization Security !",
|
|
14
|
+
"InvaildTwoAuthCode": "Wrong Two-factor-Authorization Security Code !",
|
|
15
|
+
"ApprovalsErr": "Error When Login With Two-factor-Authorization Security !",
|
|
16
|
+
"VerifiedCheck": "Confirm From Browser, Logging In...",
|
|
17
|
+
"ForceLoginNotEnable": "Cant Log In, Try Enabling '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, Please Contact Fb.com/MrTomXxX",
|
|
22
|
+
"ErrGetPassWord": "Error Retrieving AppState Encryption Password !",
|
|
23
|
+
"ErrGenerateKey": "Error Creating Password for AppState!",
|
|
24
|
+
"UnsupportedDevice": "Your Operating System is Not Currently Supported !",
|
|
25
|
+
"NotReadyToDecrypt": "Not Ready To Dissolve Appstate !",
|
|
26
|
+
"DecryptSuccess": "Appstate Solution Successfully !",
|
|
27
|
+
"ErrBackup": "Error When Backing Up AppState, Please Replace AppState !",
|
|
28
|
+
"DecryptFailed": "Resolve Failed, Try Changing 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/mrtomxxx",
|
|
33
|
+
"DoneLogin": "Complete the Login Process !",
|
|
34
|
+
"AutoCheckUpdateFailure": "Error Checking for Updates, Please Try Again Later !",
|
|
35
|
+
"AutoCheckUpdate": "Checking for Updates !",
|
|
36
|
+
"NewVersionFound": "New Version Has Been Updated: %1 => %2",
|
|
37
|
+
"AutoUpdate": "Proceed to Automatically Update to the Latest Version !",
|
|
38
|
+
"UpdateSuccess": "Version Upgrade Successful !",
|
|
39
|
+
"RestartAfterUpdate": "Restarting for New Version to Take Effect !",
|
|
40
|
+
"UpdateFailed": "Error When Upgrading To Latest Version !",
|
|
41
|
+
"UseSupportToolAfterUpdateFailed": "Upgrade Knowledge, Proceed to Use Support Tools !",
|
|
42
|
+
"InstallSupportTool": "Loading Support Tools for Fca !",
|
|
43
|
+
"NotiAfterUseToolFail": "Fix It Yourself By Typing:",
|
|
44
|
+
"LocalVersion": "The Version In Current Use Is: %1 !",
|
|
45
|
+
"EncryptSuccess": "AppState Encryption Successful !",
|
|
46
|
+
"ProcessDone": "Ending with: %1 !",
|
|
47
|
+
"CountTime": "Total Time You Spent: %1",
|
|
48
|
+
"InvaildMainColor": "%1 Not A Hex Color !",
|
|
49
|
+
"IsNotABoolean": "%1 Is Not A Boolean, Needs To Be True Or False !",
|
|
50
|
+
"InvaildOption": "%1 Not An Option !",
|
|
51
|
+
"EncryptStateOff": "EncryptState Feature Has Been Disabled !",
|
|
52
|
+
|
|
53
|
+
"AutoLogin": "AutoLogin Is On, Proceed to Log Back in!",
|
|
54
|
+
"TypeAccount": "Enter Account: ",
|
|
55
|
+
"TypePassword": "Enter a Password: ",
|
|
56
|
+
"TypeAccountError": "The account needs to be an ID or Phone number or Gmail!",
|
|
57
|
+
"ErrDataBase": "Error When Setting Auto Login Data !",
|
|
58
|
+
"SuccessSetData": "Auto Login Data Set Successfully !",
|
|
59
|
+
"Missing": "Please Code 2Fa According to the Photo's Guide in /Orion_Database/FastConfigFca.json Series AuthString!",
|
|
60
|
+
"EnterSecurityCode": "Enter your 2-Factor Authentication Code: ",
|
|
61
|
+
"ErrThroughCookies": "2Fa Piercing Error Occurred, Enter Code 2Fa Again! ",
|
|
62
|
+
|
|
63
|
+
"NodeVersionNotSupported": "Version: %1 is not supported, automatically download nodejs version v14",
|
|
64
|
+
"UsingNVM": "You are using nvm to control node version, please type 'nvm install 14.17.0' then type 'nvm use 14.17.0' to switch to the supported version!",
|
|
65
|
+
"DownloadingNode": "Downloading node version v14 which is supported!",
|
|
66
|
+
"NodeDownloadingComplete": "Successfully downloaded node version v14!",
|
|
67
|
+
"RestartRequire": "Download successful, user needs to restart the computer to take effect!",
|
|
68
|
+
"ErrNodeDownload": "An error occurred while automatically downloading node version 14, please contact fb.com/mrtomxxx",
|
|
69
|
+
"RestartingN": "Restarting the program",
|
|
70
|
+
"Rebuilding": "Rebuilding npm package to avoid errors !",
|
|
71
|
+
"ErrRebuilding": "An error occurred in the rebuilding area - npm install",
|
|
72
|
+
"SuccessRebuilding": "Successfully rebuilt !",
|
|
73
|
+
"UnableToConnect": "An error occurred while connecting to the instant action server, please check your wifi connection!",
|
|
74
|
+
"EVMChange": "Changing replit.nix to support node v14!",
|
|
75
|
+
"EVMChangeSuccess": "Successfully changed replit.nix, go ahead and restart!",
|
|
76
|
+
|
|
77
|
+
"Ws_TypeUserName": "Please enter a username for your websocket extension account: ",
|
|
78
|
+
"Ws_TypePassWord": "Please enter a password for your websocket extension account: ",
|
|
79
|
+
"Ws_Success": "Successfully set data for websocket extension!",
|
|
80
|
+
"Ws_2Fa": "This is your two-factor authentication (2FA) code for horizon_extension. Please use Google Authenticator to retrieve the backup code in case you forget your password or require verification.\n\n=> Here: %1",
|
|
81
|
+
"Ws_2Fa_Check": "Please enter your 2FA code from the authentication app: ",
|
|
82
|
+
|
|
83
|
+
"WishMessage": [
|
|
84
|
+
"Have a nice day !",
|
|
85
|
+
"Please Report to Admin When There Are Fca Errors !",
|
|
86
|
+
"Thank You For Using MrTomXxX Fca !",
|
|
87
|
+
"Contact: Mobile: +8801981503858"
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
"ExtraGetThread": {
|
|
91
|
+
"CreateDatabaseSuccess": "Successfully Initiate Database for Group: %1",
|
|
92
|
+
"CreateDatabaseFailure": "Initialization of Group Database Failure: %1",
|
|
93
|
+
"alreadyUpdate": "%1 Ready to Update Database",
|
|
94
|
+
"updateDataSuccess": "Data Update for Group %1 Success!",
|
|
95
|
+
"updateDataFailure": "Data Update for Group %1 Failed!"
|
|
96
|
+
},
|
|
97
|
+
"ExtraUpTime": {
|
|
98
|
+
"Uptime": "Connecting To Server Uptime Succeeds!",
|
|
99
|
+
"PM2": "Trying to PM2 Mode!",
|
|
100
|
+
"InPm2Mode": "You Are In Uptime PM2 Mode !",
|
|
101
|
+
"NotSupport": "Your Operating System does not currently support Uptime Server !",
|
|
102
|
+
"Maintenance": "Server Uptime In Maintenance, Try Again Later!"
|
|
103
|
+
},
|
|
104
|
+
"Src": {
|
|
105
|
+
"AutoRestart": "Automatically Restart After: %1 Minutes !",
|
|
106
|
+
"OnRestart": "Restarting..."
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
]
|
package/README.md
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
[](https://socket.dev/npm/package/fca-mrtomxxx)
|
|
2
|
+
[](https://github.com/MrT0mXxX)
|
|
3
|
+
|
|
4
|
+
## Important !
|
|
5
|
+
|
|
6
|
+
[ ENG ]: This package require NodeJS 14.17.0 to work properly.
|
|
7
|
+
|
|
8
|
+
[ BNG ]: এই প্যাকেজটি সঠিকভাবে কাজ করার জন্য NodeJS 14.17.0 প্রয়োজন.
|
|
9
|
+
|
|
10
|
+
## Notification !
|
|
11
|
+
|
|
12
|
+
+ Original Project(Deprecated): https://github.com/Schmavery/facebook-chat-api
|
|
13
|
+
+ This is The Defunct Project https://github.com/KanzuXHorizon/Fca-Horizon-Remastered and Redeveloped By KanzuXHorizon
|
|
14
|
+
+ Remade by MrTomXxX (https://www.facebook.com/MrTomXxX) (https://github.com/MrT0mXxX)
|
|
15
|
+
|
|
16
|
+
## Support Language :
|
|
17
|
+
|
|
18
|
+
+ English
|
|
19
|
+
|
|
20
|
+
# Api For ChatBot Messenger
|
|
21
|
+
|
|
22
|
+
Facebook already exists and allows users to create Api for Chatbots 😪 Here => [Here](https://developers.facebook.com/docs/messenger-platform).
|
|
23
|
+
|
|
24
|
+
## Download
|
|
25
|
+
|
|
26
|
+
If You Want To Use It, Download It By:
|
|
27
|
+
```bash
|
|
28
|
+
npm i fca-mrtomxxx
|
|
29
|
+
```
|
|
30
|
+
or
|
|
31
|
+
```bash
|
|
32
|
+
npm install fca-mrtomxxx
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
It Will Download To node_modules (Your Lib) - Note Replit Will Not Show Anywhere To Find 😪
|
|
36
|
+
|
|
37
|
+
### Download Latest Version Or Update
|
|
38
|
+
|
|
39
|
+
If You Want To Use The Latest Or Updated Version Then Go To Terminal Or Command Promt Type:
|
|
40
|
+
```bash
|
|
41
|
+
npm install fca-mrtomxxx@latest
|
|
42
|
+
```
|
|
43
|
+
Or
|
|
44
|
+
```bash
|
|
45
|
+
npm i fca-mrtomxxx@latest
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## If You Want To Test Api
|
|
49
|
+
|
|
50
|
+
The benefit of this is that you won't waste time paying and having an account 😪
|
|
51
|
+
Please Use With Test Account => [Facebook Whitehat Accounts](https://www.facebook.com/whitehat/accounts/).
|
|
52
|
+
|
|
53
|
+
## Using
|
|
54
|
+
|
|
55
|
+
```javascript
|
|
56
|
+
const login = require("fca-mrtomxxx"); // get it from lib
|
|
57
|
+
|
|
58
|
+
// log in
|
|
59
|
+
login({email: "Gmail Account", password: "Your Facebook Password"}, (err, api) => {
|
|
60
|
+
|
|
61
|
+
if(err) return console.error(err); // error case
|
|
62
|
+
|
|
63
|
+
// create a bot that automatically imitates you:
|
|
64
|
+
api.listenMqtt((err, message) => {
|
|
65
|
+
api.sendMessage(message.body, message.threadID);
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
});
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
As a result, it will imitate you as shown below:
|
|
72
|
+
<img width="517" alt="screen shot 2016-11-04 at 14 36 00" src="./ivancotacte1.png">
|
|
73
|
+
<img width="517" alt="screen shot 2016-11-04 at 14 36 00" src="./ivancotacte2.jpg">
|
|
74
|
+
<img width="517" alt="screen shot 2016-11-04 at 14 36 00" src="./ivancotacte3.png">
|
|
75
|
+
|
|
76
|
+
If You Want Advanced Use Then Use The Bot Types Listed Above!
|
|
77
|
+
|
|
78
|
+
## List
|
|
79
|
+
|
|
80
|
+
You Can Read Full Api At => [here](DOCS.md).
|
|
81
|
+
|
|
82
|
+
## Settings For Mirai:
|
|
83
|
+
|
|
84
|
+
You Need To Go To File Mirai.js, Then Find Line
|
|
85
|
+
```js
|
|
86
|
+
var login = require('depend on bot');
|
|
87
|
+
/* Maybe :
|
|
88
|
+
var login = require('@maihuybao/fca-Unofficial');
|
|
89
|
+
var login = require('fca-xuyen-get');
|
|
90
|
+
var login = require('fca-unofficial-force');
|
|
91
|
+
...
|
|
92
|
+
*/
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
And Replace It With:
|
|
96
|
+
|
|
97
|
+
```js
|
|
98
|
+
var login = require('fca-mrtomxxx')
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
After that, run normally!
|
|
102
|
+
|
|
103
|
+
## Self-study
|
|
104
|
+
|
|
105
|
+
If You Want To Research Or Create Your Own Bot, Go To This To Read Its Functions And How To Use => [Link](https://github.com/Schmavery/facebook-chat-api#Unofficial %20Facebook%20Chat%20API)
|
|
106
|
+
|
|
107
|
+
------------------------------------
|
|
108
|
+
|
|
109
|
+
### Save Login Information.
|
|
110
|
+
|
|
111
|
+
To Save, You Need 1 Apstate Type (Cookie, etc,..) To Save Or Use Login Code As Above To Log In!
|
|
112
|
+
|
|
113
|
+
And this mode is already available in some Vietnamese bots, so you can rest assured!
|
|
114
|
+
|
|
115
|
+
__Instructions With Appstate__
|
|
116
|
+
|
|
117
|
+
```js
|
|
118
|
+
const fs = require("fs");
|
|
119
|
+
const login = require("fca-mrtomxxx");
|
|
120
|
+
|
|
121
|
+
var credentials = {email: "FB_EMAIL", password: "FB_PASSWORD"}; // account information
|
|
122
|
+
|
|
123
|
+
login(credentials, (err, api) => {
|
|
124
|
+
if(err) return console.error(err);
|
|
125
|
+
// log in
|
|
126
|
+
fs.writeFileSync('appstate.json', JSON.stringify(api.getAppState(), null,'\t')); //create appstate
|
|
127
|
+
});
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Or Easier (Professional) You Can Use => [c3c-fbstate](https://github.com/c3cbot/c3c-fbstate) To Get Fbstate And Rename It Back To Apstate! (appstate.json)
|
|
131
|
+
|
|
132
|
+
------------------------------------
|
|
133
|
+
|
|
134
|
+
## FAQS
|
|
135
|
+
|
|
136
|
+
FAQS => [Link](https://github.com/Schmavery/facebook-chat-api#FAQS)
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
+ if have any Vulnerability finded contact: Author(mrtomxxx@proton.me) or (Facebook.com/mrtomxxx). 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
|
+
| StableVersion | :white_check_mark: |
|
|
13
|
+
| AutoUpdate | :white_check_mark:|
|
|
14
|
+
| Modified | :x:
|
|
15
|
+
|
|
16
|
+
## Reporting a Vulnerability
|
|
17
|
+
|
|
18
|
+
Contact Author or create pull!
|
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/MrT0mXxX/Global_MTX/MrTomXxX/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)] || "MTXPROJECT !";
|
|
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
|
+
}
|