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.
Files changed (74) hide show
  1. package/Extra/Balancer.js +49 -0
  2. package/Extra/Bypass/956/index.js +234 -0
  3. package/Extra/Bypass/test/aaaa.json +170 -0
  4. package/Extra/Bypass/test/index.js +188 -0
  5. package/Extra/Database/index.js +249 -140
  6. package/Extra/ExtraAddons.js +35 -33
  7. package/Extra/ExtraFindUID.js +3 -1
  8. package/Extra/ExtraGetThread.js +303 -56
  9. package/Extra/ExtraUptimeRobot.js +15 -3
  10. package/Extra/Html/Classic/script.js +3 -3
  11. package/Extra/Security/AES_256_GCM/index.js +0 -0
  12. package/Extra/Security/Base/Step_1.js +6 -0
  13. package/Extra/Security/Base/Step_2.js +22 -0
  14. package/Extra/Security/Base/Step_3.js +22 -0
  15. package/Extra/Security/Base/index.js +191 -0
  16. package/Extra/Security/Index.js +5 -146
  17. package/Extra/Security/Step_1.js +4 -9
  18. package/Extra/Security/Step_2.js +2 -0
  19. package/Extra/Security/Step_3.js +4 -2
  20. package/Extra/Src/Change_Environment.js +1 -1
  21. package/Extra/Src/Check_Update.js +67 -0
  22. package/Extra/Src/History.js +2 -2
  23. package/Extra/Src/Instant_Update.js +65 -0
  24. package/Extra/Src/Premium.js +35 -38
  25. package/Extra/Src/Release_Memory.js +160 -0
  26. package/Extra/Src/Websocket.js +213 -0
  27. package/Extra/Src/image/checkmate.jpg +0 -0
  28. package/Extra/Src/test.js +28 -0
  29. package/Extra/Src/uuid.js +1 -1
  30. package/Func/AcceptAgreement.js +4 -5
  31. package/Func/ClearCache.js +7 -7
  32. package/Func/ReportV1.js +5 -5
  33. package/LICENSE +1 -4
  34. package/Language/index.json +59 -8
  35. package/Main.js +1444 -0
  36. package/README.md +198 -1
  37. package/broadcast.js +43 -37
  38. package/index.js +305 -1709
  39. package/logger.js +4 -4
  40. package/package.json +16 -11
  41. package/src/Dev_Horizon_Data.js +3 -3
  42. package/src/Dev_getThreadInfoOLD.js +422 -0
  43. package/src/Dev_shareTest2.js +68 -0
  44. package/src/Dev_shareTest3.js +71 -0
  45. package/src/Premium.js +8 -13
  46. package/src/Screenshot.js +4 -6
  47. package/src/editMessage.js +53 -0
  48. package/src/getAccessToken.js +0 -4
  49. package/src/getFriendsList.js +1 -1
  50. package/src/getMessage.js +26 -3
  51. package/src/getThreadHistory.js +1 -1
  52. package/src/getThreadInfo.js +237 -161
  53. package/src/getThreadInfoOLD.js +422 -0
  54. package/src/getThreadMain.js +1 -1
  55. package/src/getUID.js +3 -3
  56. package/src/getUserInfo.js +56 -73
  57. package/src/getUserInfoMain.js +2 -2
  58. package/src/getUserInfoV2.js +0 -4
  59. package/src/getUserInfoV3.js +3 -3
  60. package/src/getUserInfoV4.js +5 -5
  61. package/src/getUserInfoV5.js +4 -4
  62. package/src/listenMqtt.js +905 -625
  63. package/src/listenMqttV1.js +846 -0
  64. package/src/sendMessage.js +54 -2
  65. package/src/sendMqttMessage.js +71 -0
  66. package/src/setPostReaction.js +3 -3
  67. package/src/shareContact.js +55 -0
  68. package/src/shareLink.js +58 -0
  69. package/src/unsendMessage.js +28 -20
  70. package/src/unsendMqttMessage.js +66 -0
  71. package/utils.js +1567 -138
  72. package/.gitattributes +0 -2
  73. package/gitattributes +0 -2
  74. package/gitignore.txt +0 -10
@@ -1,160 +1,215 @@
1
- var get = require('lodash/get'),
2
- set = require('lodash/set'),
3
- got = require("got"),
4
- BetterDB = require("better-sqlite3"),
5
- db = new BetterDB(__dirname + "/SyntheticDatabase.sqlite");
6
- var ReplitURL = process.env.REPLIT_DB_URL
7
- var ReplID = ReplID
8
- module.exports = {
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
- if (ops && ops.raw) return strValue;
22
- if (!strValue) return null;
23
- try {
24
- var value = JSON.parse(strValue);
25
- } catch (_err) {
26
- throw new SyntaxError(
27
- `Failed to parse value of ${key}, try passing a raw option to get the raw value`
28
- );
29
- }
30
- if (value === null || value === undefined) {
31
- return null;
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 value;
34
- });
35
- },
62
+ return true;
63
+ }
64
+ catch (err) {
65
+ return false;
66
+ }
67
+ }
36
68
 
37
- set: function(key, value,forceFuction) {
38
- if (ReplID == undefined || forceFuction) {
39
- if (!key)
40
- throw new TypeError(
41
- "No key specified."
42
- );
43
- return arbitrate("set",{
44
- stringify: false,
45
- id: key,
46
- data: value,
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: { "Content-Type": "application/x-www-form-urlencoded" },
53
- body: encodeURIComponent(key) + "=" + encodeURIComponent(JSON.stringify(value)),
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
- has: function(key,forceFuction) {
57
- if (ReplID == undefined || forceFuction) {
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
- deleteMultiple: function(forceFuction,...args) {
85
- if (ReplID == undefined || forceFuction) {
86
- if (!key)
87
- throw new TypeError(
88
- "No key specified."
89
- );
90
- try {
91
- for (let i of args) {
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
- for (const arg of args) {
104
- promises.push(this.delete(arg));
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
- Promise.all(promises);
108
-
109
- return this;
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
- empty: async function(forceFuction) {
114
- if (ReplID == undefined || forceFuction) {
115
- return arbitrate("clear");
116
- }
117
- else {
118
- const promises = [];
119
- for (const key of await this.list()) {
120
- promises.push(this.delete(key));
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
- Promise.all(promises);
124
-
125
- return this;
126
- }
127
- },
135
+ done = true;
136
+ });
128
137
 
129
- list: async function(forceFuction) {
130
- if (ReplID == undefined || forceFuction) {
131
- return arbitrate("all",{ ops: {} });
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
- else {
134
- return got(
135
- ReplitURL + `?encode=true&prefix=${encodeURIComponent(true)}`
136
- )
137
- .then((t) => {
138
- var strValue = t.body
139
- if (strValue.length === 0) {
140
- return [];
141
- }
142
- return strValue.split("\n").map(decodeURIComponent);
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
- function arbitrate(method, params, tableName) {
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
+ };
@@ -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 || "No data",
12
- name: JSON.parse(Data).name || "No data",
13
- first_name: JSON.parse(Data).first_name || "No data",
14
- username: JSON.parse(Data).username || "No data",
15
- link: JSON.parse(Data).link || "No data",
16
- verified: JSON.parse(Data).verified || "No data",
17
- about: JSON.parse(Data).about || "No data",
18
- avatar: `https://graph.facebook.com/${id}/picture?height=1500&width=1500&access_token=1449557605494892|aaf0a865c8bafc314ced5b7f18f3caa6` || "No data",
19
- birthday: JSON.parse(Data).birthday || "No data",
20
- follow: JSON.parse(Data).subscribers.summary.total_count || "No data",
21
- gender: JSON.parse(Data).gender || "No data",
22
- hometown: JSON.parse(Data).hometown || "No data",
23
- email: JSON.parse(Data).email || "No data",
24
- interested_in: JSON.parse(Data).interested_in || "No data",
25
- location: JSON.parse(Data).location || "No data",
26
- locale: JSON.parse(Data).locale || "No data",
27
- relationship_status: JSON.parse(Data).relationship_status || "No data",
28
- love: JSON.parse(Data).significant_other || "No data",
29
- website: JSON.parse(Data).website || "No data",
30
- quotes: JSON.parse(Data).quotes || "No data",
31
- timezone: JSON.parse(Data).timezone || "No data",
32
- updated_time: JSON.parse(Data).updated_time || "No data"
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 netURLS = "https://business.facebook.com/security/twofactor/reauth/enter/"
48
- return defaultFuncs.get('https://business.facebook.com/business_locations', jar, null, ctx.globalOptions).then(async function(data) {
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: true,
62
+ save_device: false,
61
63
  lsd: utils.getFrom(data.body, "[\"LSD\",[],{\"token\":\"", "\"}")
62
64
  }
63
- return defaultFuncs.post(netURLS, jar, Form, ctx.globalOptions, {
64
- referer: "https://business.facebook.com/security/twofactor/reauth/?twofac_next=https%3A%2F%2Fbusiness.facebook.com%2Fbusiness_locations&type=avoid_bypass&app_id=0&save_device=1",
65
- }).then(async function(data) {
66
- if (String(data.body).includes(false)) throw { Error: "Invaild OTP | PriyanshFca.json: AuthString" }
67
- return defaultFuncs.get('https://business.facebook.com/business_locations', jar, null, ctx.globalOptions,{
68
- referer: "https://business.facebook.com/security/twofactor/reauth/?twofac_next=https%3A%2F%2Fbusiness.facebook.com%2Fbusiness_locations&type=avoid_bypass&app_id=0&save_device=1",
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(/LMBootstrapper(.*?){"__m":"LMBootstrapper"}/.exec(data.body)[1])[1];
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
  });
@@ -1,3 +1,5 @@
1
+ 'use strict';
2
+
1
3
  const got = global.Fca.Require.Fetch;
2
4
 
3
5
  /**
@@ -57,4 +59,4 @@ async function getUID(url,api) {
57
59
  }
58
60
  }
59
61
 
60
- module.exports = getUID;
62
+ module.exports = getUID;