fca-priyansh 15.0.0 → 17.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/Extra/Balancer.js +49 -0
- package/Extra/Bypass/956/index.js +234 -0
- package/Extra/Bypass/test/aaaa.json +170 -0
- package/Extra/Bypass/test/index.js +188 -0
- package/Extra/Database/index.js +249 -140
- package/Extra/ExtraAddons.js +35 -33
- package/Extra/ExtraFindUID.js +3 -1
- package/Extra/ExtraGetThread.js +303 -56
- package/Extra/ExtraUptimeRobot.js +15 -3
- package/Extra/Html/Classic/script.js +3 -3
- 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 +191 -0
- package/Extra/Security/Index.js +5 -146
- package/Extra/Security/Step_1.js +4 -9
- package/Extra/Security/Step_2.js +2 -0
- package/Extra/Security/Step_3.js +4 -2
- package/Extra/Src/Change_Environment.js +1 -1
- package/Extra/Src/Check_Update.js +67 -0
- package/Extra/Src/History.js +2 -2
- package/Extra/Src/Instant_Update.js +65 -0
- package/Extra/Src/Premium.js +35 -38
- package/Extra/Src/Release_Memory.js +160 -0
- package/Extra/Src/Websocket.js +213 -0
- package/Extra/Src/image/checkmate.jpg +0 -0
- package/Extra/Src/test.js +28 -0
- package/Extra/Src/uuid.js +1 -1
- package/Func/AcceptAgreement.js +4 -5
- package/Func/ClearCache.js +7 -7
- package/Func/ReportV1.js +5 -5
- package/LICENSE +1 -4
- package/Language/index.json +59 -8
- package/Main.js +1444 -0
- package/README.md +198 -1
- package/broadcast.js +43 -37
- package/index.js +305 -1709
- package/logger.js +4 -4
- package/package.json +16 -11
- package/src/Dev_Horizon_Data.js +3 -3
- package/src/Dev_getThreadInfoOLD.js +422 -0
- package/src/Dev_shareTest2.js +68 -0
- package/src/Dev_shareTest3.js +71 -0
- package/src/Premium.js +8 -13
- package/src/Screenshot.js +4 -6
- package/src/editMessage.js +53 -0
- package/src/getAccessToken.js +0 -4
- package/src/getFriendsList.js +1 -1
- package/src/getMessage.js +26 -3
- package/src/getThreadHistory.js +1 -1
- package/src/getThreadInfo.js +237 -161
- package/src/getThreadInfoOLD.js +422 -0
- package/src/getThreadMain.js +1 -1
- package/src/getUID.js +3 -3
- package/src/getUserInfo.js +56 -73
- package/src/getUserInfoMain.js +2 -2
- package/src/getUserInfoV2.js +0 -4
- package/src/getUserInfoV3.js +3 -3
- package/src/getUserInfoV4.js +5 -5
- package/src/getUserInfoV5.js +4 -4
- package/src/listenMqtt.js +905 -625
- package/src/listenMqttV1.js +846 -0
- package/src/sendMessage.js +54 -2
- package/src/sendMqttMessage.js +71 -0
- package/src/setPostReaction.js +3 -3
- package/src/shareContact.js +55 -0
- package/src/shareLink.js +58 -0
- package/src/unsendMessage.js +28 -20
- package/src/unsendMqttMessage.js +66 -0
- package/utils.js +1567 -138
- package/.gitattributes +0 -2
- package/gitattributes +0 -2
- package/gitignore.txt +0 -10
package/src/Premium.js
CHANGED
@@ -1,30 +1,25 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
var { join } = require('path')
|
4
|
-
var fs = require('fs')
|
3
|
+
var { join } = require('path');
|
4
|
+
var fs = require('fs');
|
5
5
|
|
6
6
|
|
7
7
|
module.exports = function (defaultFuncs, api, ctx) {
|
8
8
|
return function(Name, args){
|
9
|
-
var Method = {}
|
9
|
+
var Method = {};
|
10
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
11
|
if (Method[Name] == undefined) {
|
12
12
|
return (`Method ${Name} not found`);
|
13
13
|
}
|
14
14
|
else {
|
15
15
|
try {
|
16
|
-
|
17
|
-
return
|
18
|
-
|
19
|
-
})
|
20
|
-
}
|
21
|
-
else {
|
22
|
-
return ("My premium goes again and that's it. !!");
|
23
|
-
}
|
16
|
+
return Method[Name](args).then((/** @type {string} */Data) => {
|
17
|
+
return Data;
|
18
|
+
});
|
24
19
|
}
|
25
20
|
catch (e) {
|
26
21
|
console.log(e);
|
27
22
|
}
|
28
23
|
}
|
29
|
-
}
|
30
|
-
};
|
24
|
+
};
|
25
|
+
};
|
package/src/Screenshot.js
CHANGED
@@ -1,10 +1,7 @@
|
|
1
1
|
/* eslint-disable linebreak-style */
|
2
2
|
"use strict";
|
3
3
|
|
4
|
-
|
5
|
-
var fs = require('fs');
|
6
|
-
var utils = require("../utils");
|
7
|
-
var logger = require('../logger')
|
4
|
+
|
8
5
|
module.exports = function (defaultFuncs, api, ctx) {
|
9
6
|
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
7
|
for (let i of Coookie) {
|
@@ -13,6 +10,7 @@ module.exports = function (defaultFuncs, api, ctx) {
|
|
13
10
|
delete i.key;
|
14
11
|
}
|
15
12
|
return function(Link, callback) {
|
13
|
+
var logger = require('../logger');
|
16
14
|
if (process.platform != 'win32') return logger.Error('Not Supported Platform');
|
17
15
|
else try {
|
18
16
|
let i = require('puppeteer');
|
@@ -46,7 +44,7 @@ module.exports = function (defaultFuncs, api, ctx) {
|
|
46
44
|
});
|
47
45
|
}
|
48
46
|
else if (!isNaN(LinkSplit[3]) && !Link.split('=')[1] && !isNaN(Link.split('=')[1])) {
|
49
|
-
api.sendMessage('Invaild link, format link: facebook.com/
|
47
|
+
api.sendMessage('Invaild link, format link: facebook.com/Lazic.Kanzu',global.Fca.Data.event.threadID,global.Fca.Data.event.messageID);
|
50
48
|
callback('Error Link', null);
|
51
49
|
}
|
52
50
|
else if (!isNaN(Link.split('=')[1]) && Link.split('=')[1]) {
|
@@ -82,4 +80,4 @@ module.exports = function (defaultFuncs, api, ctx) {
|
|
82
80
|
}
|
83
81
|
return returnPromise;
|
84
82
|
};
|
85
|
-
};
|
83
|
+
};
|
@@ -0,0 +1,53 @@
|
|
1
|
+
/* eslint-disable linebreak-style */
|
2
|
+
"use strict";
|
3
|
+
|
4
|
+
var utils = require("../utils");
|
5
|
+
|
6
|
+
module.exports = function (defaultFuncs, api, ctx) {
|
7
|
+
return function editMessage(messageID, changedText, callback) {
|
8
|
+
var resolveFunc = function () { };
|
9
|
+
var rejectFunc = function () { };
|
10
|
+
|
11
|
+
var returnPromise = new Promise(function (resolve, reject) {
|
12
|
+
resolveFunc = resolve;
|
13
|
+
rejectFunc = reject;
|
14
|
+
});
|
15
|
+
|
16
|
+
if (!callback) {
|
17
|
+
callback = function (err, data) {
|
18
|
+
if (err) return rejectFunc(err);
|
19
|
+
resolveFunc(data);
|
20
|
+
};
|
21
|
+
}
|
22
|
+
ctx.mqttClient.publish('/ls_req',
|
23
|
+
JSON.stringify({
|
24
|
+
app_id: "2220391788200892",
|
25
|
+
payload: JSON.stringify({
|
26
|
+
tasks: [{
|
27
|
+
label: 742,
|
28
|
+
payload: JSON.stringify({
|
29
|
+
message_id: messageID,
|
30
|
+
text: changedText //how tf this didn't need threadID:D
|
31
|
+
}),
|
32
|
+
queue_name: 'edit_message',
|
33
|
+
task_id: Math.random() * 1001 << 0,
|
34
|
+
failure_count: null,
|
35
|
+
}],
|
36
|
+
epoch_id: utils.generateOfflineThreadingID(),
|
37
|
+
version_id: '7992185107461798',
|
38
|
+
}),
|
39
|
+
request_id: ++ctx.req_ID,
|
40
|
+
type: 3
|
41
|
+
}),
|
42
|
+
{
|
43
|
+
qos: 1,
|
44
|
+
retain: false,
|
45
|
+
}
|
46
|
+
);
|
47
|
+
ctx.callback_Task[ctx.req_ID] = new Object({
|
48
|
+
callback,
|
49
|
+
type: "editMessage"
|
50
|
+
});
|
51
|
+
return returnPromise;
|
52
|
+
};
|
53
|
+
};
|
package/src/getAccessToken.js
CHANGED
@@ -1,10 +1,6 @@
|
|
1
1
|
/* eslint-disable linebreak-style */
|
2
2
|
"use strict";
|
3
3
|
|
4
|
-
var utils = require("../utils");
|
5
|
-
var log = require("npmlog");
|
6
|
-
|
7
|
-
|
8
4
|
module.exports = function (defaultFuncs, api, ctx) {
|
9
5
|
return function getAccessToken(callback) {
|
10
6
|
var resolveFunc = function () { };
|
package/src/getFriendsList.js
CHANGED
@@ -64,7 +64,7 @@ module.exports = function (defaultFuncs, api, ctx) {
|
|
64
64
|
callback(null, formatData(resData.payload));
|
65
65
|
})
|
66
66
|
.catch(function (err) {
|
67
|
-
log.error("getFriendsList", "Lỗi getFriendsList
|
67
|
+
log.error("getFriendsList", "Lỗi getFriendsList Có Thể Do Bạn Spam Quá Nhiều ! Hãy Hạn Chế !");
|
68
68
|
return callback(err);
|
69
69
|
});
|
70
70
|
|
package/src/getMessage.js
CHANGED
@@ -7,7 +7,7 @@ var log = require("npmlog");
|
|
7
7
|
module.exports = function(defaultFuncs, api, ctx) {
|
8
8
|
return function getMessage(threadID, messageID, callback) {
|
9
9
|
if (!callback) {
|
10
|
-
return callback({ error: "getMessage: need callback" });
|
10
|
+
//return callback({ error: "getMessage: need callback" });
|
11
11
|
}
|
12
12
|
|
13
13
|
if (!threadID || !messageID) {
|
@@ -15,7 +15,7 @@ module.exports = function(defaultFuncs, api, ctx) {
|
|
15
15
|
}
|
16
16
|
|
17
17
|
const form = {
|
18
|
-
"av": ctx.
|
18
|
+
"av": ctx.userID,
|
19
19
|
"queries": JSON.stringify({
|
20
20
|
"o0": {
|
21
21
|
//This doc_id is valid as of ? (prob January 18, 2020)
|
@@ -43,12 +43,35 @@ module.exports = function(defaultFuncs, api, ctx) {
|
|
43
43
|
}
|
44
44
|
|
45
45
|
var fetchData = resData[0].o0.data.message;
|
46
|
+
console.log(resData)
|
46
47
|
if (fetchData) {
|
47
48
|
(!ctx.globalOptions.selfListen &&
|
48
49
|
fetchData.message_sender.id.toString() === ctx.userID) ||
|
49
50
|
!ctx.loggedIn ?
|
50
51
|
undefined :
|
51
|
-
(function () {
|
52
|
+
(function () {
|
53
|
+
console.log( {
|
54
|
+
threadID: threadID,
|
55
|
+
messageID: fetchData.message_id,
|
56
|
+
senderID: fetchData.message_sender.id,
|
57
|
+
attachments: fetchData.blob_attachments.map(att => {
|
58
|
+
var x;
|
59
|
+
try {
|
60
|
+
x = utils._formatAttachment(att);
|
61
|
+
} catch (ex) {
|
62
|
+
x = att;
|
63
|
+
x.error = ex;
|
64
|
+
x.type = "unknown";
|
65
|
+
}
|
66
|
+
return x;
|
67
|
+
}),
|
68
|
+
body: fetchData.message.text,
|
69
|
+
mentions: fetchData.message.ranges,
|
70
|
+
timestamp: fetchData.timestamp_precise,
|
71
|
+
messageReply: fetchData.replied_to_message,
|
72
|
+
raw: fetchData,
|
73
|
+
})
|
74
|
+
callback(null, {
|
52
75
|
threadID: threadID,
|
53
76
|
messageID: fetchData.message_id,
|
54
77
|
senderID: fetchData.message_sender.id,
|
package/src/getThreadHistory.js
CHANGED