alicezetion 1.5.1 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
- package/.cache/replit/__replit_disk_meta.json +1 -1
- package/Main.js +25 -10
- package/package.json +6 -5
@@ -1 +1 @@
|
|
1
|
-
{"nonce":
|
1
|
+
{"nonce":3714602538977629454,"last_updated":{"seconds":1693559753,"nanos":544667000}}
|
package/Main.js
CHANGED
@@ -263,8 +263,9 @@ function setOptions(globalOptions, options) {
|
|
263
263
|
* @param {{ getCookies: (arg0: string) => any[]; }} jar
|
264
264
|
*/
|
265
265
|
|
266
|
+
/*
|
266
267
|
function buildAPI(globalOptions, html, jar) {
|
267
|
-
var maybeCookie = jar.getCookies("https://www.facebook.com").filter(function(/** @type {{ cookieString: () => string; }}
|
268
|
+
var maybeCookie = jar.getCookies("https://www.facebook.com").filter(function(/** @type {{ cookieString: () => string; }} val) { return val.cookieString().split("=")[0] === "c_user"; });
|
268
269
|
|
269
270
|
if (maybeCookie.length === 0) {
|
270
271
|
if (global.Fca.Require.FastConfig.AutoLogin) {
|
@@ -275,17 +276,17 @@ function buildAPI(globalOptions, html, jar) {
|
|
275
276
|
else if (!global.Fca.Require.FastConfig.AutoLogin) {
|
276
277
|
return global.Fca.Require.logger.Error(global.Fca.Require.Language.Index.ErrAppState);
|
277
278
|
}
|
278
|
-
}
|
279
|
+
}*/
|
280
|
+
/*
|
279
281
|
else {
|
280
|
-
|
282
|
+
if (html.indexOf("/checkpoint/block/?next") > -1) log.warn("login", Language.CheckPointLevelI);
|
281
283
|
|
282
284
|
var userID = maybeCookie[0].cookieString().split("=")[1].toString();
|
283
|
-
process.env['UID'] =
|
285
|
+
process.env['UID'] = logger.Normal(getText(Language.UID,userID), userID);
|
284
286
|
|
285
287
|
clearInterval(checkVerified);
|
286
288
|
|
287
289
|
var clientID = (Math.random() * 2147483648 | 0).toString(16);
|
288
|
-
/*
|
289
290
|
var CHECK_MQTT = {
|
290
291
|
oldFBMQTTMatch: html.match(/irisSeqID:"(.+?)",appID:219994525426954,endpoint:"(.+?)"/),
|
291
292
|
newFBMQTTMatch: html.match(/{"app_id":"219994525426954","endpoint":"(.+?)","iris_seq_id":"(.+?)"}/),
|
@@ -338,7 +339,24 @@ function buildAPI(globalOptions, html, jar) {
|
|
338
339
|
*/
|
339
340
|
|
340
341
|
|
342
|
+
|
341
343
|
// LeiamNash » modified starts
|
344
|
+
function buildAPI(globalOptions, html, jar) {
|
345
|
+
var maybeCookie = jar.getCookies("https://www.facebook.com").filter(function (val) {
|
346
|
+
return val.cookieString().split("=")[0] === "c_user";
|
347
|
+
});
|
348
|
+
|
349
|
+
if (maybeCookie.length === 0) {
|
350
|
+
throw { error: "Error retrieving userID. This can be caused by a lot of things, including getting blocked by Facebook for logging in from an unknown location. Try logging in with a browser to verify." };
|
351
|
+
}
|
352
|
+
if (html.indexOf("/checkpoint/block/?next") > -1) {
|
353
|
+
log.warn("login", "Checkpoint detected. Please log in with a browser to verify.");
|
354
|
+
}
|
355
|
+
var userID = maybeCookie[0].cookieString().split("=")[1].toString();
|
356
|
+
try {
|
357
|
+
clearInterval(checkVerified);
|
358
|
+
} catch (_) { }
|
359
|
+
var clientID = (Math.random() * 2147483648 | 0).toString(16);
|
342
360
|
let oldFBMQTTMatch = html.match(/irisSeqID:"(.+?)",appID:219994525426954,endpoint:"(.+?)"/);
|
343
361
|
let mqttEndpoint = null;
|
344
362
|
let region = null;
|
@@ -387,14 +405,12 @@ let oldFBMQTTMatch = html.match(/irisSeqID:"(.+?)",appID:219994525426954,endpoin
|
|
387
405
|
setOptions: setOptions.bind(null, globalOptions),
|
388
406
|
getAppState: function getAppState() {
|
389
407
|
return utils.getAppState(jar);
|
390
|
-
}
|
391
|
-
};
|
408
|
+
} };
|
392
409
|
|
393
410
|
if (region && mqttEndpoint) {
|
394
411
|
//do sth
|
395
412
|
}
|
396
413
|
else {
|
397
|
-
log.warn("login", getText(Language.NoAreaData));
|
398
414
|
api["htmlData"] = html;
|
399
415
|
}
|
400
416
|
|
@@ -409,9 +425,8 @@ let oldFBMQTTMatch = html.match(/irisSeqID:"(.+?)",appID:219994525426954,endpoin
|
|
409
425
|
ctx,
|
410
426
|
defaultFuncs,
|
411
427
|
api
|
412
|
-
}
|
428
|
+
}
|
413
429
|
}
|
414
|
-
}
|
415
430
|
|
416
431
|
/!-[ Function makeLogin ]-!/
|
417
432
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "alicezetion",
|
3
|
-
"version": "1.5.
|
3
|
+
"version": "1.5.3",
|
4
4
|
"description": "",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -18,6 +18,8 @@
|
|
18
18
|
},
|
19
19
|
"dependencies": {
|
20
20
|
"aes-js": "latest",
|
21
|
+
"alicezetion": "^1.5.2",
|
22
|
+
"ansi-to-html": "latest",
|
21
23
|
"assert": "latest",
|
22
24
|
"better-sqlite3": "7.6.2",
|
23
25
|
"bluebird": "latest",
|
@@ -42,12 +44,11 @@
|
|
42
44
|
"readable-stream": "^4.4.0",
|
43
45
|
"readline": "latest",
|
44
46
|
"request": "latest",
|
47
|
+
"speakeasy": "latest",
|
45
48
|
"totp-generator": "latest",
|
46
49
|
"tough-cookie": "^4.1.2",
|
47
50
|
"uuid": "latest",
|
48
|
-
"
|
49
|
-
"ws": "^8.13.0",
|
50
|
-
"ansi-to-html": "latest"
|
51
|
+
"ws": "^8.13.0"
|
51
52
|
},
|
52
53
|
"engines": {
|
53
54
|
"node": ">=14.x"
|
@@ -86,4 +87,4 @@
|
|
86
87
|
"keywords": [
|
87
88
|
"leiamnash"
|
88
89
|
]
|
89
|
-
}
|
90
|
+
}
|