fca-naughty1 1.6.3 → 1.6.5
Sign up to get free protection for your applications and to get access to all the features.
- package/Extra/ExtraAddons.js +4 -4
- package/Extra/ExtraGetThread.js +1 -1
- package/Extra/ExtraUptimeRobot.js +2 -2
- package/Extra/Src/Premium.js +7 -7
- package/Language/index.json +3 -3
- package/broadcast.js +1 -1
- package/index.js +24 -24
- package/logger.js +5 -5
- package/package.json +2 -2
- package/utils.js +7 -19
package/Extra/ExtraAddons.js
CHANGED
@@ -51,8 +51,8 @@ module.exports.getAccessToken = async function (jar, ctx,defaultFuncs) {
|
|
51
51
|
}
|
52
52
|
}
|
53
53
|
catch (_) {
|
54
|
-
if (global.Fca.Require.
|
55
|
-
var OPTCODE = global.Fca.Require.
|
54
|
+
if (global.Fca.Require.ConfigNaughty.AuthString.includes('|')) return logger.Error(global.Fca.Require.Language.Index.Missing)
|
55
|
+
var OPTCODE = global.Fca.Require.ConfigNaughty.AuthString.includes(" ") ? global.Fca.Require.ConfigNaughty.AuthString.replace(RegExp(" ", 'g'), "") : global.Fca.Require.ConfigNaughty.AuthString;
|
56
56
|
var Form = {
|
57
57
|
approvals_code: OTP(String(OPTCODE)),
|
58
58
|
save_device: true,
|
@@ -61,7 +61,7 @@ module.exports.getAccessToken = async function (jar, ctx,defaultFuncs) {
|
|
61
61
|
return defaultFuncs.post(netURLS, jar, Form, ctx.globalOptions, {
|
62
62
|
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",
|
63
63
|
}).then(async function(data) {
|
64
|
-
if (String(data.body).includes(false)) throw { Error: "Invaild OTP |
|
64
|
+
if (String(data.body).includes(false)) throw { Error: "Invaild OTP | ConfigNaughtyFca.json: AuthString" }
|
65
65
|
return defaultFuncs.get('https://business.facebook.com/business_locations', jar, null, ctx.globalOptions,{
|
66
66
|
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",
|
67
67
|
}).then(async function(data) {
|
@@ -75,4 +75,4 @@ module.exports.getAccessToken = async function (jar, ctx,defaultFuncs) {
|
|
75
75
|
}
|
76
76
|
}
|
77
77
|
|
78
|
-
//hard working =))
|
78
|
+
//hard working =))
|
package/Extra/ExtraGetThread.js
CHANGED
@@ -5,7 +5,7 @@ var { lastRun,capture } = require('./Src/Last-Run');
|
|
5
5
|
var logger = require("../logger");
|
6
6
|
var getText = global.Fca.getText;
|
7
7
|
var language = require("../Language/index.json");
|
8
|
-
language = language.find(i => i.Language == require(process.cwd() + "/
|
8
|
+
language = language.find(i => i.Language == require(process.cwd() + "/ConfigNaughtyFca.json").Language).Folder.ExtraGetThread;
|
9
9
|
|
10
10
|
exports.createData = function(threadID,threadData) {
|
11
11
|
try {
|
@@ -6,7 +6,7 @@ module.exports = function() {
|
|
6
6
|
case 'darwin': return Logger.Warning(global.Fca.Require.Language.ExtraUpTime.NotSupport);
|
7
7
|
case 'linux':
|
8
8
|
if (process.env.REPL_SLUG) {
|
9
|
-
var Value = global.Fca.Require.
|
9
|
+
var Value = global.Fca.Require.ConfigNaughty;
|
10
10
|
var Fetch = global.Fca.Require.Fetch;
|
11
11
|
if (Value.Uptime) {
|
12
12
|
logger.Normal(global.Fca.Require.Language.ExtraUpTime.Uptime);//
|
@@ -23,4 +23,4 @@ module.exports = function() {
|
|
23
23
|
default:
|
24
24
|
Logger.Warning(global.Fca.Require.Language.ExtraUpTime.NotSupport);
|
25
25
|
}
|
26
|
-
};
|
26
|
+
};
|
package/Extra/Src/Premium.js
CHANGED
@@ -18,7 +18,7 @@ module.exports = async function(SessionID) {
|
|
18
18
|
if (await Database.has('PremiumKey') && await Database.get('PremiumKey') != '' && await Database.has('Premium') && await Database.get('Premium') == true) {
|
19
19
|
try {
|
20
20
|
await Database.set('Premium', true);
|
21
|
-
await Database.set('PremiumKey', String(global.Fca.Require.
|
21
|
+
await Database.set('PremiumKey', String(global.Fca.Require.ConfigNaughty.PreKey));
|
22
22
|
await Database.set('UserName', userName);
|
23
23
|
process.env.HalzionVersion = 1973
|
24
24
|
Text = "Bạn Đang Sài Phiên Bản: Premium Access";
|
@@ -26,10 +26,10 @@ module.exports = async function(SessionID) {
|
|
26
26
|
catch (error) {
|
27
27
|
Text = "Lỗi Kết Nối";
|
28
28
|
}
|
29
|
-
} else if (global.Fca.Require.
|
29
|
+
} else if (global.Fca.Require.ConfigNaughty.PreKey) {
|
30
30
|
try {
|
31
31
|
await Database.set('Premium', true);
|
32
|
-
await Database.set('PremiumKey', String(global.Fca.Require.
|
32
|
+
await Database.set('PremiumKey', String(global.Fca.Require.ConfigNaughty.PreKey));
|
33
33
|
await Database.set('UserName', userName);
|
34
34
|
process.env.HalzionVersion = 1973
|
35
35
|
Text = "Bạn Đang Sài Phiên Bản: Premium Access";
|
@@ -38,10 +38,10 @@ module.exports = async function(SessionID) {
|
|
38
38
|
Text = "Lỗi Kết Nối";
|
39
39
|
}
|
40
40
|
}
|
41
|
-
else if (!global.Fca.Require.
|
41
|
+
else if (!global.Fca.Require.ConfigNaughty.PreKey) {
|
42
42
|
try {
|
43
43
|
await Database.set('Premium', true);
|
44
|
-
await Database.set('PremiumKey', String(global.Fca.Require.
|
44
|
+
await Database.set('PremiumKey', String(global.Fca.Require.ConfigNaughty.PreKey));
|
45
45
|
await Database.set('UserName', userName);
|
46
46
|
process.env.HalzionVersion = 1973
|
47
47
|
Text = "Bạn Đang Sài Phiên Bản: Premium Access";
|
@@ -53,7 +53,7 @@ module.exports = async function(SessionID) {
|
|
53
53
|
} catch (e) {
|
54
54
|
try {
|
55
55
|
await Database.set('Premium', true);
|
56
|
-
await Database.set('PremiumKey', String(global.Fca.Require.
|
56
|
+
await Database.set('PremiumKey', String(global.Fca.Require.ConfigNaughty.PreKey));
|
57
57
|
await Database.set('UserName', userName);
|
58
58
|
process.env.HalzionVersion = 1973
|
59
59
|
Text = "Bạn Đang Sài Phiên Bản: Premium Access";
|
@@ -81,4 +81,4 @@ module.exports = async function(SessionID) {
|
|
81
81
|
}
|
82
82
|
}
|
83
83
|
return Text;
|
84
|
-
}
|
84
|
+
}
|
package/Language/index.json
CHANGED
@@ -56,7 +56,7 @@
|
|
56
56
|
"TypeAccountError": "Tài Khoản Cần Là ID Hoặc Số Điện Thoại Hay Là Gmail !",
|
57
57
|
"ErrDataBase": "Lỗi Khi Đặt Dữ Liệu Auto Login !",
|
58
58
|
"SuccessSetData": "Đã Đặt Dữ Liệu Auto Login Thành Công !",
|
59
|
-
"Missing": "Bạn Vui Lòng Ghi Mã 2Fa Theo Hướng Dẫn Của Ảnh Trong
|
59
|
+
"Missing": "Bạn Vui Lòng Ghi Mã 2Fa Theo Hướng Dẫn Của Ảnh Trong ConfigNaughtyFca.json Dòng AuthString !",
|
60
60
|
|
61
61
|
"EnterSecurityCode": "Hãy Nhập Mã Xác Thực 2 Yếu Tố Của Bạn: ",
|
62
62
|
"ErrThroughCookies": "Đã Xảy Ra Lỗi Khi Xuyên 2Fa, Hãy Nhập Mã 2Fa Lại !",
|
@@ -144,7 +144,7 @@
|
|
144
144
|
"TypeAccountError": "The account needs to be an ID or Phone number or Gmail!",
|
145
145
|
"ErrDataBase": "Error When Setting Auto Login Data !",
|
146
146
|
"SuccessSetData": "Auto Login Data Set Successfully !",
|
147
|
-
"Missing": "Please Code 2Fa According to the Photo's Guide in
|
147
|
+
"Missing": "Please Code 2Fa According to the Photo's Guide in ConfigNaughtyFca.json Series AuthString!",
|
148
148
|
"EnterSecurityCode": "Enter your 2-Factor Authentication Code: ",
|
149
149
|
"ErrThroughCookies": "2Fa Piercing Error Occurred, Enter Code 2Fa Again! ",
|
150
150
|
|
@@ -174,4 +174,4 @@
|
|
174
174
|
}
|
175
175
|
}
|
176
176
|
}
|
177
|
-
]
|
177
|
+
]
|
package/broadcast.js
CHANGED
package/index.js
CHANGED
@@ -26,7 +26,7 @@ global.Fca = new Object({
|
|
26
26
|
return Main;
|
27
27
|
},
|
28
28
|
Data: new Object({
|
29
|
-
|
29
|
+
ObjConfigNaughty: {
|
30
30
|
"Language": "en",
|
31
31
|
"PreKey": "",
|
32
32
|
"AutoUpdate": false,
|
@@ -102,7 +102,7 @@ global.Fca = new Object({
|
|
102
102
|
│ │
|
103
103
|
│ │
|
104
104
|
│ fca-naughty1 │
|
105
|
-
│ Version: 1.6.
|
105
|
+
│ Version: 1.6.4 │
|
106
106
|
└────────────────────────────────────────────────────────────────────────────────┘`);
|
107
107
|
let Boolean_Fca = ["AutoUpdate","Uptime","BroadCast","EncryptFeature","AutoLogin","ResetDataLogin","Login2Fa","Logo"];
|
108
108
|
let String_Fca = ["MainName","PreKey","Language","AuthString","Config"]
|
@@ -110,24 +110,24 @@ let Number_Fca = ["AutoRestartMinutes"];
|
|
110
110
|
let All_Variable = Boolean_Fca.concat(String_Fca,Number_Fca);
|
111
111
|
|
112
112
|
try {
|
113
|
-
if (!global.Fca.Require.fs.existsSync(process.cwd() + '/
|
114
|
-
global.Fca.Require.fs.writeFileSync(process.cwd() + "/
|
113
|
+
if (!global.Fca.Require.fs.existsSync(process.cwd() + '/ConfigNaughtyFca.json')) {
|
114
|
+
global.Fca.Require.fs.writeFileSync(process.cwd() + "/ConfigNaughtyFca.json", JSON.stringify(global.Fca.Data.ObjConfigNaughty, null, "\t"));
|
115
115
|
process.exit(1);
|
116
116
|
}
|
117
117
|
|
118
118
|
try {
|
119
|
-
var DataLanguageSetting = require(process.cwd() + "/
|
119
|
+
var DataLanguageSetting = require(process.cwd() + "/ConfigNaughtyFca.json");
|
120
120
|
}
|
121
121
|
catch (e) {
|
122
|
-
global.Fca.Require.logger.Error('Detect Your
|
123
|
-
global.Fca.Require.fs.writeFileSync(process.cwd() + "/
|
122
|
+
global.Fca.Require.logger.Error('Detect Your ConfigNaughtyFca Settings Invalid!, Carry out default restoration');
|
123
|
+
global.Fca.Require.fs.writeFileSync(process.cwd() + "/ConfigNaughtyFca.json", JSON.stringify(global.Fca.Data.ObjConfigNaughty, null, "\t"));
|
124
124
|
process.exit(1)
|
125
125
|
}
|
126
|
-
if (global.Fca.Require.fs.existsSync(process.cwd() + '/
|
126
|
+
if (global.Fca.Require.fs.existsSync(process.cwd() + '/ConfigNaughtyFca.json')) {
|
127
127
|
try {
|
128
128
|
if (DataLanguageSetting.Logo != undefined) {
|
129
129
|
delete DataLanguageSetting.Logo
|
130
|
-
global.Fca.Require.fs.writeFileSync(process.cwd() + "/
|
130
|
+
global.Fca.Require.fs.writeFileSync(process.cwd() + "/ConfigNaughtyFca.json", JSON.stringify(DataLanguageSetting, null, "\t"));
|
131
131
|
}
|
132
132
|
}
|
133
133
|
catch (e) {
|
@@ -156,12 +156,12 @@ catch (e) {
|
|
156
156
|
}
|
157
157
|
for (let i of All_Variable) {
|
158
158
|
if (!DataLanguageSetting[All_Variable[i]] == undefined) {
|
159
|
-
DataLanguageSetting[All_Variable[i]] = global.Fca.Data.
|
160
|
-
global.Fca.Require.fs.writeFileSync(process.cwd() + "/
|
159
|
+
DataLanguageSetting[All_Variable[i]] = global.Fca.Data.ObjConfigNaughty[All_Variable[i]];
|
160
|
+
global.Fca.Require.fs.writeFileSync(process.cwd() + "/ConfigNaughtyFca.json", JSON.stringify(DataLanguageSetting, null, "\t"));
|
161
161
|
}
|
162
162
|
else continue;
|
163
163
|
}
|
164
|
-
global.Fca.Require.
|
164
|
+
global.Fca.Require.ConfigNaughty = DataLanguageSetting;
|
165
165
|
}
|
166
166
|
catch (e) {
|
167
167
|
console.log(e);
|
@@ -170,7 +170,7 @@ catch (e) {
|
|
170
170
|
|
171
171
|
/!-[ Require config and use ]-!/
|
172
172
|
|
173
|
-
if (global.Fca.Require.
|
173
|
+
if (global.Fca.Require.ConfigNaughty.Config != 'default') {
|
174
174
|
//do ssth
|
175
175
|
}
|
176
176
|
|
@@ -273,7 +273,7 @@ express.use(function(req, res, next) {
|
|
273
273
|
// }
|
274
274
|
default: {
|
275
275
|
res.writeHead(200, "OK", { "Content-Type": "text/html" });
|
276
|
-
res.write(ClassicHTML(global.Fca.Require.
|
276
|
+
res.write(ClassicHTML(global.Fca.Require.ConfigNaughty.HTML.UserName, global.Fca.Data.PremText.includes("Premium") ? "Premium": "Free", global.Fca.Require.ConfigNaughty.HTML.MusicLink));
|
277
277
|
}
|
278
278
|
}
|
279
279
|
res.end();
|
@@ -353,7 +353,7 @@ function buildAPI(globalOptions, html, jar) {
|
|
353
353
|
var maybeCookie = jar.getCookies("https://www.facebook.com").filter(function(/** @type {{ cookieString: () => string; }} */val) { return val.cookieString().split("=")[0] === "c_user"; });
|
354
354
|
|
355
355
|
if (maybeCookie.length === 0) {
|
356
|
-
switch (global.Fca.Require.
|
356
|
+
switch (global.Fca.Require.ConfigNaughty.AutoLogin) {
|
357
357
|
case true: {
|
358
358
|
global.Fca.Require.logger.Warning(global.Fca.Require.Language.Index.AutoLogin, function() {
|
359
359
|
return global.Fca.AutoLogin();
|
@@ -531,7 +531,7 @@ function makeLogin(jar, email, password, loginOptions, callback, prCallback) {
|
|
531
531
|
dpr: 1
|
532
532
|
});
|
533
533
|
}, 2500);
|
534
|
-
switch (global.Fca.Require.
|
534
|
+
switch (global.Fca.Require.ConfigNaughty.Login2Fa) {
|
535
535
|
case true: {
|
536
536
|
try {
|
537
537
|
const question = question => {
|
@@ -922,7 +922,7 @@ try {
|
|
922
922
|
}
|
923
923
|
}
|
924
924
|
try {
|
925
|
-
switch (global.Fca.Require.
|
925
|
+
switch (global.Fca.Require.ConfigNaughty.EncryptFeature) {
|
926
926
|
case true: {
|
927
927
|
appState = JSON.parse(JSON.stringify(appState, null, "\t"));
|
928
928
|
switch (utils.getType(appState)) {
|
@@ -1051,7 +1051,7 @@ try {
|
|
1051
1051
|
}
|
1052
1052
|
break;
|
1053
1053
|
default: {
|
1054
|
-
logger.Warning(getText(Language.IsNotABoolean,global.Fca.Require.
|
1054
|
+
logger.Warning(getText(Language.IsNotABoolean,global.Fca.Require.ConfigNaughty.EncryptFeature))
|
1055
1055
|
process.exit(0);
|
1056
1056
|
}
|
1057
1057
|
}
|
@@ -1144,7 +1144,7 @@ try {
|
|
1144
1144
|
const localVersion = global.Fca.Version;
|
1145
1145
|
if (Number(localVersion.replace(/\./g,"")) < Number(JSON.parse(res.body.toString()).version.replace(/\./g,"")) ) {
|
1146
1146
|
log.warn("[ FCA-NAUGHTY ] •",getText(Language.NewVersionFound,global.Fca.Version,JSON.parse(res.body.toString()).version));
|
1147
|
-
if (global.Fca.Require.
|
1147
|
+
if (global.Fca.Require.ConfigNaughty.AutoUpdate == true) {
|
1148
1148
|
log.warn("[ FCA-NAUGHTY ] •",Language.AutoUpdate);
|
1149
1149
|
try {
|
1150
1150
|
execSync('npm install fca-naughty1@latest', { stdio: 'inherit' });
|
@@ -1237,9 +1237,9 @@ function setUserNameAndPassWord() {
|
|
1237
1237
|
logger.Error();
|
1238
1238
|
process.exit(0);
|
1239
1239
|
}
|
1240
|
-
if (global.Fca.Require.
|
1241
|
-
global.Fca.Require.
|
1242
|
-
global.Fca.Require.fs.writeFileSync(process.cwd() + '/
|
1240
|
+
if (global.Fca.Require.ConfigNaughty.ResetDataLogin) {
|
1241
|
+
global.Fca.Require.ConfigNaughty.ResetDataLogin = false;
|
1242
|
+
global.Fca.Require.fs.writeFileSync(process.cwd() + '/ConfigNaughtyFca.json', JSON.stringify(global.Fca.Require.ConfigNaughty, null, 4));
|
1243
1243
|
}
|
1244
1244
|
logger.Success(Language.SuccessSetData);
|
1245
1245
|
process.exit(1);
|
@@ -1324,9 +1324,9 @@ function login(loginData, options, callback) {
|
|
1324
1324
|
var Premium = require("./Extra/Src/Premium");
|
1325
1325
|
global.Fca.Data.PremText = await Premium(global.Fca.Require.Security.create().uuid) || "Bạn Đang Sài Phiên Bản: Free !";
|
1326
1326
|
if (!loginData.email && !loginData.password) {
|
1327
|
-
switch (global.Fca.Require.
|
1327
|
+
switch (global.Fca.Require.ConfigNaughty.AutoLogin) {
|
1328
1328
|
case true: {
|
1329
|
-
if (global.Fca.Require.
|
1329
|
+
if (global.Fca.Require.ConfigNaughty.ResetDataLogin) return setUserNameAndPassWord();
|
1330
1330
|
else {
|
1331
1331
|
try {
|
1332
1332
|
if (await Database.get("TempState")) {
|
package/logger.js
CHANGED
@@ -17,10 +17,10 @@ function getType(obj) {
|
|
17
17
|
|
18
18
|
module.exports = {
|
19
19
|
Normal: function(/** @type {string} */ Str, /** @type {() => any} */ Data ,/** @type {() => void} */ Callback) {
|
20
|
-
if (isHexcolor(global.Fca.Require.
|
21
|
-
this.Warning(getText(global.Fca.Require.Language.Index.InvaildMainColor,global.Fca.Require.
|
20
|
+
if (isHexcolor(global.Fca.Require.ConfigNaughty.MainColor) != true) {
|
21
|
+
this.Warning(getText(global.Fca.Require.Language.Index.InvaildMainColor,global.Fca.Require.ConfigNaughty.MainColor),process.exit(0));
|
22
22
|
}
|
23
|
-
else console.log(chalk.hex(global.Fca.Require.
|
23
|
+
else console.log(chalk.hex(global.Fca.Require.ConfigNaughty.MainColor).bold(`${global.Fca.Require.ConfigNaughty.MainName || '[ FCA-NAUGHTY ]'} > `) + Str);
|
24
24
|
if (getType(Data) == 'Function' || getType(Data) == 'AsyncFunction') {
|
25
25
|
return Data();
|
26
26
|
}
|
@@ -50,14 +50,14 @@ module.exports = {
|
|
50
50
|
else return callback;
|
51
51
|
},
|
52
52
|
Success: function(/** @type {unknown} */ str, /** @type {() => void} */ callback) {
|
53
|
-
console.log(chalk.hex('#00FFFF').bold(`${global.Fca.Require.
|
53
|
+
console.log(chalk.hex('#00FFFF').bold(`${global.Fca.Require.ConfigNaughty.MainName || '[ FCA-NAUGHTY ]'} > `) + chalk.green(str));
|
54
54
|
if (getType(callback) == 'Function' || getType(callback) == 'AsyncFunction') {
|
55
55
|
callback();
|
56
56
|
}
|
57
57
|
else return callback;
|
58
58
|
},
|
59
59
|
Info: function(/** @type {unknown} */ str, /** @type {() => void} */ callback) {
|
60
|
-
console.log(chalk.hex('#00FFFF').bold(`${global.Fca.Require.
|
60
|
+
console.log(chalk.hex('#00FFFF').bold(`${global.Fca.Require.ConfigNaughty.MainName || '[ FCA-NAUGHTY ]'} > `) + chalk.blue(str));
|
61
61
|
if (getType(callback) == 'Function' || getType(callback) == 'AsyncFunction') {
|
62
62
|
callback();
|
63
63
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "fca-naughty1",
|
3
|
-
"version": "1.6.
|
3
|
+
"version": "1.6.5",
|
4
4
|
"description": "Facebook-chat-api by Naughty",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -50,7 +50,7 @@
|
|
50
50
|
"websocket-stream": "latest"
|
51
51
|
},
|
52
52
|
"engines": {
|
53
|
-
"node": "
|
53
|
+
"node": "v20.12.2"
|
54
54
|
},
|
55
55
|
"devDependencies": {
|
56
56
|
"eslint": "latest",
|
package/utils.js
CHANGED
@@ -1,8 +1,3 @@
|
|
1
|
-
// @ts-nocheck
|
2
|
-
/* eslint-disable no-undef */
|
3
|
-
|
4
|
-
/* eslint-disable no-prototype-builtins */
|
5
|
-
|
6
1
|
"use strict";
|
7
2
|
var url = require("url");
|
8
3
|
var log = require("npmlog");
|
@@ -11,22 +6,15 @@ var bluebird = require("bluebird");
|
|
11
6
|
var querystring = require("querystring");
|
12
7
|
var request = bluebird.promisify(require("request").defaults({ jar: true }));
|
13
8
|
|
14
|
-
|
15
|
-
* @param {any} url
|
16
|
-
*/
|
9
|
+
|
17
10
|
|
18
11
|
function setProxy(url) {
|
19
12
|
if (typeof url == undefined) return request = bluebird.promisify(require("request").defaults({ jar: true }));
|
20
13
|
return request = bluebird.promisify(require("request").defaults({ jar: true, proxy: url }));
|
21
14
|
}
|
22
15
|
|
23
|
-
|
24
|
-
|
25
|
-
* @param {{ userAgent: any; }} options
|
26
|
-
* @param {{ region: any; }} [ctx]
|
27
|
-
* @param {undefined} [customHeader]
|
28
|
-
*/
|
29
|
-
console.log("HATERS FEEL NAUGHTY 😈");
|
16
|
+
|
17
|
+
console.log("[ FCA-NAUGHTY ] > HATERS FEEL NAUGHTY 😈");
|
30
18
|
function getHeaders(url, options, ctx, customHeader) {
|
31
19
|
var headers = {
|
32
20
|
"Content-Type": "application/x-www-form-urlencoded",
|
@@ -1361,7 +1349,7 @@ function parseAndCheckLogin(ctx, defaultFuncs, retryCount) {
|
|
1361
1349
|
}
|
1362
1350
|
|
1363
1351
|
if (res.error === 1357001) {
|
1364
|
-
switch (globalThis.Fca.Require.
|
1352
|
+
switch (globalThis.Fca.Require.ConfigNaughty.AutoLogin) {
|
1365
1353
|
case true: {
|
1366
1354
|
globalThis.Fca.Require.logger.Warning(globalThis.Fca.Require.Language.Index.AutoLogin, function() {
|
1367
1355
|
return globalThis.Fca.AutoLogin();
|
@@ -1572,9 +1560,9 @@ function getAppState(jar, Encode) {
|
|
1572
1560
|
var Security = require('./Extra/Security/Index');
|
1573
1561
|
var appstate = jar.getCookies("https://www.facebook.com").concat(jar.getCookies("https://facebook.com")).concat(jar.getCookies("https://www.messenger.com"))
|
1574
1562
|
var logger = require('./logger'),languageFile = require('./Language/index.json');
|
1575
|
-
var Language = languageFile.find(i => i.Language == globalThis.Fca.Require.
|
1563
|
+
var Language = languageFile.find(i => i.Language == globalThis.Fca.Require.ConfigNaughty.Language).Folder.Index;
|
1576
1564
|
var data;
|
1577
|
-
switch (require(process.cwd() + "/
|
1565
|
+
switch (require(process.cwd() + "/ConfigNaughtyFca.json").EncryptFeature) {
|
1578
1566
|
case true: {
|
1579
1567
|
if (Encode == undefined) Encode = true;
|
1580
1568
|
if (process.env['FBKEY'] != undefined && Encode) {
|
@@ -1595,7 +1583,7 @@ function getAppState(jar, Encode) {
|
|
1595
1583
|
}
|
1596
1584
|
break;
|
1597
1585
|
default: {
|
1598
|
-
logger.Normal(getText(Language.IsNotABoolean,require(process.cwd() + "/
|
1586
|
+
logger.Normal(getText(Language.IsNotABoolean,require(process.cwd() + "/ConfigNaughtyFca.json").EncryptFeature));
|
1599
1587
|
data = appstate;
|
1600
1588
|
}
|
1601
1589
|
}
|