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/Extra/Database/index.js
CHANGED
@@ -1,160 +1,215 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
get: function(key, ops,forceFuction) {
|
10
|
-
if (ReplID == undefined || forceFuction) {
|
11
|
-
if (!key)
|
12
|
-
throw new TypeError(
|
13
|
-
"No key specified."
|
14
|
-
);
|
15
|
-
return arbitrate("fetch", { id: key, ops: ops || {} });
|
16
|
-
}
|
17
|
-
else return got(ReplitURL + "/" + key)
|
18
|
-
.then((StrValue) => {
|
19
|
-
var strValue = StrValue.body
|
1
|
+
/* eslint-disable no-self-assign */
|
2
|
+
/* eslint-disable linebreak-style */
|
3
|
+
const get = require('lodash/get');
|
4
|
+
const set = require('lodash/set');
|
5
|
+
const BetterDB = require("better-sqlite3");
|
6
|
+
const fs = require('fs-extra');
|
7
|
+
const request = require('request');
|
8
|
+
const deasync = require('deasync');
|
20
9
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
10
|
+
if (!fs.existsSync(process.cwd() + '/Horizon_Database')) {
|
11
|
+
fs.mkdirSync(process.cwd() + '/Horizon_Database');
|
12
|
+
fs.writeFileSync(process.cwd() + '/Horizon_Database/A_README.md', 'This folder is used by ChernobyL(NANI =)) ) to store data. Do not delete this folder or any of the files in it.', 'utf8');
|
13
|
+
}
|
14
|
+
var db = new BetterDB(process.cwd() + "/Horizon_Database/SyntheticDatabase.sqlite");
|
15
|
+
|
16
|
+
function Lset(key, value) {
|
17
|
+
if (!key)
|
18
|
+
throw new TypeError(
|
19
|
+
"No key specified."
|
20
|
+
);
|
21
|
+
return arbitrate("set",{
|
22
|
+
stringify: false,
|
23
|
+
id: key,
|
24
|
+
data: value,
|
25
|
+
ops: {},
|
26
|
+
});
|
27
|
+
}
|
28
|
+
|
29
|
+
function Lget(key) {
|
30
|
+
if (!key)
|
31
|
+
throw new TypeError(
|
32
|
+
"No key specified."
|
33
|
+
);
|
34
|
+
return arbitrate("fetch", { id: key, ops: {} || {} });
|
35
|
+
}
|
36
|
+
|
37
|
+
function Lhas(key) {
|
38
|
+
if (!key)
|
39
|
+
throw new TypeError(
|
40
|
+
"No key specified."
|
41
|
+
);
|
42
|
+
return arbitrate("has", { id: key, ops: {} });
|
43
|
+
}
|
44
|
+
|
45
|
+
function Lremove(key) {
|
46
|
+
if (!key)
|
47
|
+
throw new TypeError(
|
48
|
+
"No key specified."
|
49
|
+
);
|
50
|
+
return arbitrate("delete", { id: key, ops: {} });
|
51
|
+
}
|
52
|
+
|
53
|
+
function LremoveMultiple(key) {
|
54
|
+
if (!key)
|
55
|
+
throw new TypeError(
|
56
|
+
"No key specified."
|
57
|
+
);
|
58
|
+
try {
|
59
|
+
for (let i of key) {
|
60
|
+
arbitrate("delete", { id: i, ops: {} });
|
32
61
|
}
|
33
|
-
return
|
34
|
-
}
|
35
|
-
|
62
|
+
return true;
|
63
|
+
}
|
64
|
+
catch (err) {
|
65
|
+
return false;
|
66
|
+
}
|
67
|
+
}
|
36
68
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
ops: {},
|
48
|
-
});
|
49
|
-
}
|
50
|
-
else return got(ReplitURL, {
|
69
|
+
function Llist() {
|
70
|
+
return arbitrate("all",{ ops: {} });
|
71
|
+
}
|
72
|
+
|
73
|
+
function Replit_Set(key, value) {
|
74
|
+
try {
|
75
|
+
var done = false;
|
76
|
+
|
77
|
+
request({
|
78
|
+
url: process.env.REPLIT_DB_URL,
|
51
79
|
method: "POST",
|
52
|
-
headers: {
|
53
|
-
|
80
|
+
headers: {
|
81
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
82
|
+
},
|
83
|
+
body: `${encodeURIComponent(key)}=${encodeURIComponent(JSON.stringify(value))}`
|
84
|
+
|
85
|
+
}, function (error, response, body) {
|
86
|
+
done = true;
|
54
87
|
});
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
if (!key)
|
59
|
-
throw new TypeError(
|
60
|
-
"No key specified."
|
61
|
-
);
|
62
|
-
return arbitrate("has", { id: key, ops: {} });
|
63
|
-
}
|
64
|
-
else return got(ReplitURL + "/" + key)
|
65
|
-
.then((StrValue) => {
|
66
|
-
var strValue = StrValue.body
|
67
|
-
if (strValue === "") return false;
|
68
|
-
return true;
|
69
|
-
});
|
70
|
-
},
|
71
|
-
delete: function(key,forceFuction) {
|
72
|
-
if (ReplID == undefined || forceFuction) {
|
73
|
-
if (!key)
|
74
|
-
throw new TypeError(
|
75
|
-
"No key specified."
|
76
|
-
);
|
77
|
-
return arbitrate("delete", { id: key, ops: {} });
|
78
|
-
}
|
79
|
-
else return got(ReplitURL + "/" + key, {
|
80
|
-
method: "DELETE",
|
88
|
+
|
89
|
+
deasync.loopWhile(function(){
|
90
|
+
return !done;
|
81
91
|
});
|
82
|
-
},
|
83
92
|
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
arbitrate("delete", { id: i, ops: {} });
|
93
|
-
}
|
94
|
-
return true;
|
95
|
-
}
|
96
|
-
catch (err) {
|
97
|
-
return false;
|
98
|
-
}
|
99
|
-
}
|
100
|
-
else {
|
101
|
-
const promises = [];
|
93
|
+
return;
|
94
|
+
|
95
|
+
}
|
96
|
+
catch (e) {
|
97
|
+
console.log(e);
|
98
|
+
return false;
|
99
|
+
}
|
100
|
+
}
|
102
101
|
|
103
|
-
|
104
|
-
|
102
|
+
function Replit_Get(key) {
|
103
|
+
try {
|
104
|
+
var done = false;
|
105
|
+
var response = null;
|
106
|
+
|
107
|
+
request(process.env.REPLIT_DB_URL + "/" + key, function (error, res, body) {
|
108
|
+
if (!error && res.statusCode == 200) {
|
109
|
+
response = body;
|
105
110
|
}
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
111
|
+
done = true;
|
112
|
+
});
|
113
|
+
|
114
|
+
deasync.loopWhile(function(){
|
115
|
+
return !done;
|
116
|
+
});
|
117
|
+
|
118
|
+
return JSON.parse(response);
|
119
|
+
}
|
120
|
+
catch (e) {
|
121
|
+
console.log(e);
|
122
|
+
return false;
|
123
|
+
}
|
124
|
+
}
|
112
125
|
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
126
|
+
function Replit_Has(key) {
|
127
|
+
try {
|
128
|
+
var done = false;
|
129
|
+
var response = null;
|
130
|
+
|
131
|
+
request(process.env.REPLIT_DB_URL + "/" + key, function (error, res, body) {
|
132
|
+
if (!error && res.statusCode == 200) {
|
133
|
+
response = body;
|
121
134
|
}
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
return this;
|
126
|
-
}
|
127
|
-
},
|
135
|
+
done = true;
|
136
|
+
});
|
128
137
|
|
129
|
-
|
130
|
-
|
131
|
-
|
138
|
+
deasync.loopWhile(function(){
|
139
|
+
return !done;
|
140
|
+
});
|
141
|
+
|
142
|
+
return response != null;
|
143
|
+
}
|
144
|
+
catch (e) {
|
145
|
+
console.log(e);
|
146
|
+
return false;
|
147
|
+
}
|
148
|
+
}
|
149
|
+
|
150
|
+
function Replit_Remove(key) {
|
151
|
+
try {
|
152
|
+
var done = false;
|
153
|
+
request.delete(process.env.REPLIT_DB_URL + "/" + key , function (error, response, body) {
|
154
|
+
done = true;
|
155
|
+
});
|
156
|
+
|
157
|
+
deasync.loopWhile(function(){
|
158
|
+
return !done;
|
159
|
+
});
|
160
|
+
|
161
|
+
return;
|
162
|
+
}
|
163
|
+
catch (e) {
|
164
|
+
console.log(e);
|
165
|
+
return false;
|
166
|
+
}
|
167
|
+
}
|
168
|
+
function Replit_RemoveMultiple(keys) {
|
169
|
+
try {
|
170
|
+
for (const key of keys) {
|
171
|
+
request.delete(process.env.REPLIT_DB_URL + "/" + key , function (error, response, body) {});
|
132
172
|
}
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
173
|
+
return true;
|
174
|
+
}
|
175
|
+
catch (e) {
|
176
|
+
console.log(e);
|
177
|
+
return false;
|
178
|
+
}
|
179
|
+
}
|
180
|
+
|
181
|
+
function Replit_List() {
|
182
|
+
var done = false;
|
183
|
+
var response = null;
|
184
|
+
|
185
|
+
request(process.env.REPLIT_DB_URL + "?encode=true" + `&prefix=${encodeURIComponent("")}`, function (error, res, body) {
|
186
|
+
if (!error && res.statusCode == 200) {
|
187
|
+
response = body;
|
144
188
|
}
|
189
|
+
done = true;
|
190
|
+
|
191
|
+
});
|
192
|
+
|
193
|
+
deasync.loopWhile(function(){
|
194
|
+
return !done;
|
195
|
+
});
|
196
|
+
|
197
|
+
if (response.length === 0) {
|
198
|
+
return [];
|
145
199
|
}
|
200
|
+
return response.split("\n").map(decodeURIComponent);
|
146
201
|
}
|
147
202
|
|
203
|
+
|
148
204
|
var methods = {
|
149
205
|
fetch: function(db, params, options) {
|
150
206
|
let fetched = db.prepare(`SELECT * FROM ${options.table} WHERE ID = (?)`).get(params.id);
|
151
207
|
if (!fetched) return null;
|
152
208
|
try {
|
153
|
-
fetched = JSON.parse(fetched.json)
|
209
|
+
fetched = JSON.parse(fetched.json);
|
154
210
|
} catch (e) {
|
155
211
|
fetched = fetched.json;
|
156
212
|
}
|
157
|
-
if (params.ops.target) fetched = get(fetched, params.ops.target);
|
158
213
|
return fetched;
|
159
214
|
},
|
160
215
|
set: function(db, params, options) {
|
@@ -193,7 +248,7 @@ var methods = {
|
|
193
248
|
}
|
194
249
|
if (params.ops.target) {
|
195
250
|
try {
|
196
|
-
fetched = JSON.parse(fetched)
|
251
|
+
fetched = JSON.parse(fetched);
|
197
252
|
}
|
198
253
|
catch (e) {
|
199
254
|
fetched = fetched;
|
@@ -206,7 +261,7 @@ var methods = {
|
|
206
261
|
else {
|
207
262
|
if (fetched.json === '{}') fetched.json = 0;
|
208
263
|
try {
|
209
|
-
fetched.json = JSON.parse(fetched)
|
264
|
+
fetched.json = JSON.parse(fetched);
|
210
265
|
} catch (e) {
|
211
266
|
fetched.json = fetched.json;
|
212
267
|
}
|
@@ -263,7 +318,7 @@ var methods = {
|
|
263
318
|
}
|
264
319
|
if (params.ops.target) {
|
265
320
|
fetched = JSON.parse(fetched.json);
|
266
|
-
try { fetched = JSON.parse(fetched) } catch (e) {}
|
321
|
+
try { fetched = JSON.parse(fetched); } catch (e) {}
|
267
322
|
params.data = JSON.parse(params.data);
|
268
323
|
if (typeof fetched !== 'object') throw new TypeError('Cannot push into a non-object.');
|
269
324
|
let oldArray = get(fetched, params.ops.target);
|
@@ -285,9 +340,9 @@ var methods = {
|
|
285
340
|
let newData = db.prepare(`SELECT * FROM ${options.table} WHERE ID = (?)`).get(params.id).json;
|
286
341
|
if (newData === '{}') return null;
|
287
342
|
else {
|
288
|
-
newData = JSON.parse(newData)
|
289
|
-
try { newData = JSON.parse(newData) } catch (e) {}
|
290
|
-
return newData
|
343
|
+
newData = JSON.parse(newData);
|
344
|
+
try { newData = JSON.parse(newData); } catch (e) {}
|
345
|
+
return newData;
|
291
346
|
}
|
292
347
|
},
|
293
348
|
delete: function deleteDB(db, params, options) {
|
@@ -310,7 +365,7 @@ var methods = {
|
|
310
365
|
let fetched = db.prepare(`SELECT * FROM ${options.table} WHERE ID = (?)`).get(params.id);
|
311
366
|
if (!fetched) return false;
|
312
367
|
else fetched = JSON.parse(fetched.json);
|
313
|
-
try { fetched = JSON.parse(fetched) } catch (e) {}
|
368
|
+
try { fetched = JSON.parse(fetched); } catch (e) {}
|
314
369
|
if (params.ops.target) fetched = get(fetched, params.ops.target);
|
315
370
|
return (typeof fetched != 'undefined');
|
316
371
|
},
|
@@ -346,7 +401,8 @@ var methods = {
|
|
346
401
|
}
|
347
402
|
};
|
348
403
|
|
349
|
-
|
404
|
+
|
405
|
+
function arbitrate(method, params) {
|
350
406
|
let options = {table: "json"};
|
351
407
|
db.prepare(`CREATE TABLE IF NOT EXISTS ${options.table} (ID TEXT, json TEXT)`).run();
|
352
408
|
if (params.ops.target && params.ops.target[0] === ".") params.ops.target = params.ops.target.slice(1); // Remove prefix if necessary
|
@@ -358,3 +414,56 @@ function arbitrate(method, params, tableName) {
|
|
358
414
|
}
|
359
415
|
return methods[method](db, params, options);
|
360
416
|
}
|
417
|
+
|
418
|
+
|
419
|
+
module.exports = function ChernobyL(Local) {
|
420
|
+
if (Local && process.env["REPL_ID"]) {
|
421
|
+
return {
|
422
|
+
set: Lset,
|
423
|
+
get: Lget,
|
424
|
+
has: Lhas,
|
425
|
+
delete: Lremove,
|
426
|
+
deleteMultiple: LremoveMultiple,
|
427
|
+
list: Llist
|
428
|
+
};
|
429
|
+
} else if (!Local && process.env["REPL_ID"]) {
|
430
|
+
return {
|
431
|
+
set: Replit_Set,
|
432
|
+
get: Replit_Get,
|
433
|
+
has: Replit_Has,
|
434
|
+
delete: Replit_Remove,
|
435
|
+
deleteMultiple: Replit_RemoveMultiple,
|
436
|
+
list: Replit_List
|
437
|
+
};
|
438
|
+
}
|
439
|
+
else if (Local && !process.env["REPL_ID"]) {
|
440
|
+
return {
|
441
|
+
set: Lset,
|
442
|
+
get: Lget,
|
443
|
+
has: Lhas,
|
444
|
+
delete: Lremove,
|
445
|
+
deleteMultiple: LremoveMultiple,
|
446
|
+
list: Llist
|
447
|
+
};
|
448
|
+
}
|
449
|
+
else if (!Local && !process.env["REPL_ID"]) {
|
450
|
+
return {
|
451
|
+
set: Lset,
|
452
|
+
get: Lget,
|
453
|
+
has: Lhas,
|
454
|
+
delete: Lremove,
|
455
|
+
deleteMultiple: LremoveMultiple,
|
456
|
+
list: Llist
|
457
|
+
};
|
458
|
+
}
|
459
|
+
else {
|
460
|
+
return {
|
461
|
+
set: Lset,
|
462
|
+
get: Lget,
|
463
|
+
has: Lhas,
|
464
|
+
delete: Lremove,
|
465
|
+
deleteMultiple: LremoveMultiple,
|
466
|
+
list: Llist
|
467
|
+
};
|
468
|
+
}
|
469
|
+
};
|
package/Extra/ExtraAddons.js
CHANGED
@@ -6,30 +6,32 @@ var OTP = require('totp-generator');
|
|
6
6
|
|
7
7
|
module.exports.getInfo = async function (id,jar,ctx,defaultFuncs) {
|
8
8
|
var AccessToken = await module.exports.getAccessToken(jar,ctx,defaultFuncs);
|
9
|
-
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);
|
9
|
+
var { body:Data } = await utils.get(`https://graph.facebook.com/${id}?fields=age_range,picture,cover,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);
|
10
10
|
var Format = {
|
11
|
-
id: JSON.parse(Data).id || "
|
12
|
-
name: JSON.parse(Data).name || "
|
13
|
-
first_name: JSON.parse(Data).first_name || "
|
14
|
-
username: JSON.parse(Data).username || "
|
15
|
-
link: JSON.parse(Data).link || "
|
16
|
-
verified: JSON.parse(Data).verified || "
|
17
|
-
about: JSON.parse(Data).about || "
|
18
|
-
avatar:
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
11
|
+
id: JSON.parse(Data).id || "Không Có Dữ Liệu",
|
12
|
+
name: JSON.parse(Data).name || "Không Có Dữ Liệu",
|
13
|
+
first_name: JSON.parse(Data).first_name || "Không Có Dữ Liệu",
|
14
|
+
username: JSON.parse(Data).username || "Không Có Dữ Liệu",
|
15
|
+
link: JSON.parse(Data).link || "Không Có Dữ Liệu",
|
16
|
+
verified: JSON.parse(Data).verified || "Không Có Dữ Liệu",
|
17
|
+
about: JSON.parse(Data).about || "Không Có Dữ Liệu",
|
18
|
+
avatar: JSON.parse(Data).picture.data.url || "Không Có Dữ Liệu",
|
19
|
+
cover: JSON.parse(Data).cover.source || "Không Có Dữ Liệu",
|
20
|
+
birthday: JSON.parse(Data).birthday || "Không Có Dữ Liệu",
|
21
|
+
age: JSON.parse(Data).age_range.min || "Không Có Dữ Liệu",
|
22
|
+
follow: JSON.parse(Data).subscribers.summary.total_count || "Không Có Dữ Liệu",
|
23
|
+
gender: JSON.parse(Data).gender || "Không Có Dữ Liệu",
|
24
|
+
hometown: JSON.parse(Data).hometown || "Không Có Dữ Liệu",
|
25
|
+
email: JSON.parse(Data).email || "Không Có Dữ Liệu",
|
26
|
+
interested_in: JSON.parse(Data).interested_in || "Không Có Dữ Liệu",
|
27
|
+
location: JSON.parse(Data).location || "Không Có Dữ Liệu",
|
28
|
+
locale: JSON.parse(Data).locale || "Không Có Dữ Liệu",
|
29
|
+
relationship_status: JSON.parse(Data).relationship_status || "Không Có Dữ Liệu",
|
30
|
+
love: JSON.parse(Data).significant_other || "Không Có Dữ Liệu",
|
31
|
+
website: JSON.parse(Data).website || "Không Có Dữ Liệu",
|
32
|
+
quotes: JSON.parse(Data).quotes || "Không Có Dữ Liệu",
|
33
|
+
timezone: JSON.parse(Data).timezone || "Không Có Dữ Liệu",
|
34
|
+
updated_time: JSON.parse(Data).updated_time || "Không Có Dữ Liệu"
|
33
35
|
}
|
34
36
|
return Format;
|
35
37
|
}
|
@@ -44,8 +46,8 @@ module.exports.getAccessToken = async function (jar, ctx,defaultFuncs) {
|
|
44
46
|
return global.Fca.Data.AccessToken;
|
45
47
|
}
|
46
48
|
else {
|
47
|
-
var
|
48
|
-
return defaultFuncs.get('https://business.facebook.com/
|
49
|
+
var nextURLS = "https://business.facebook.com/security/twofactor/reauth/enter/"
|
50
|
+
return defaultFuncs.get('https://business.facebook.com/content_management', jar, null, ctx.globalOptions).then(async function(data) {
|
49
51
|
try {
|
50
52
|
if (/"],\["(.*?)","/.exec(/LMBootstrapper(.*?){"__m":"LMBootstrapper"}/.exec(data.body)[1])[1]) {
|
51
53
|
global.Fca.Data.AccessToken = /"],\["(.*?)","/.exec(/LMBootstrapper(.*?){"__m":"LMBootstrapper"}/.exec(data.body)[1])[1];
|
@@ -57,17 +59,17 @@ module.exports.getAccessToken = async function (jar, ctx,defaultFuncs) {
|
|
57
59
|
var OPTCODE = global.Fca.Require.Priyansh.AuthString.includes(" ") ? global.Fca.Require.Priyansh.AuthString.replace(RegExp(" ", 'g'), "") : global.Fca.Require.Priyansh.AuthString;
|
58
60
|
var Form = {
|
59
61
|
approvals_code: OTP(String(OPTCODE)),
|
60
|
-
save_device:
|
62
|
+
save_device: false,
|
61
63
|
lsd: utils.getFrom(data.body, "[\"LSD\",[],{\"token\":\"", "\"}")
|
62
64
|
}
|
63
|
-
return defaultFuncs.post(
|
64
|
-
referer: "https://business.facebook.com/security/twofactor/reauth/?twofac_next=https%3A%2F%2Fbusiness.facebook.com%
|
65
|
-
}).then(async function(
|
66
|
-
if (String(
|
67
|
-
return
|
68
|
-
referer: "https://business.facebook.com/security/twofactor/reauth/?twofac_next=https%3A%2F%2Fbusiness.facebook.com%
|
65
|
+
return defaultFuncs.post(nextURLS, jar, Form, ctx.globalOptions, {
|
66
|
+
referer: "https://business.facebook.com/security/twofactor/reauth/?twofac_next=https%3A%2F%2Fbusiness.facebook.com%2Fcontent_management&type=avoid_bypass&app_id=0&save_device=0",
|
67
|
+
}).then(async function(dataa) {
|
68
|
+
if (String(dataa.body).includes(false)) throw { Error: "Invaild OTP | PriyanshFca.json: AuthString" }
|
69
|
+
return utils.get('https://business.facebook.com/content_management', jar, null, ctx.globalOptions,{
|
70
|
+
referer: "https://business.facebook.com/security/twofactor/reauth/?twofac_next=https%3A%2F%2Fbusiness.facebook.com%2Fcontent_management&type=avoid_bypass&app_id=0&save_device=0",
|
69
71
|
}).then(async function(data) {
|
70
|
-
var Access_Token = /"],\["(.*?)","/.exec(/
|
72
|
+
var Access_Token = /"],\["(.*?)","/.exec(/BusinessToolEmptyView.brands.react(.*?){"__m":"BusinessToolEmptyView.brands.react"}/.exec(data.body)[1])[1];
|
71
73
|
global.Fca.Data.AccessToken = Access_Token;
|
72
74
|
return Access_Token;
|
73
75
|
});
|