fca-h4m1m-x2
Advanced tools
Comparing version 1.5.6 to 1.5.7
@@ -68,3 +68,3 @@ 'use strict'; | ||
}).then(async function(dataa) { | ||
if (String(dataa.body).includes(false)) throw { Error: "Invaild OTP | FastConfigFca.json: AuthString" } | ||
if (String(dataa.body).includes(false)) throw { Error: "Invaild OTP | FcaX2.json: AuthString" } | ||
return utils.get('https://business.facebook.com/content_management', jar, null, ctx.globalOptions,{ | ||
@@ -71,0 +71,0 @@ 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", |
@@ -9,3 +9,3 @@ /* eslint-disable */ | ||
const fs = require("fs"); | ||
language = language.find(i => i.Language == require(process.cwd() + "/FastConfigFca.json").Language).Folder.ExtraGetThread; | ||
language = language.find(i => i.Language == require(process.cwd() + "/FcaX2.json").Language).Folder.ExtraGetThread; | ||
@@ -18,3 +18,3 @@ if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type == "json") { | ||
else if (global.Fca.Require.FastConfig.AntiGetInfo.Database_Type != "default" && global.Fca.Require.FastConfig.AntiGetInfo.Database_Type != "json") { | ||
logger.Warning("Database_Type in FastConfigFca.json is not valid. Only default and json are valid."); | ||
logger.Warning("Database_Type in FcaX2.json is not valid. Only default and json are valid."); | ||
process.exit(0); | ||
@@ -21,0 +21,0 @@ } |
@@ -182,3 +182,3 @@ // /** | ||
// case "FastConfig_Change": { | ||
// const FastConfig_Path = require(process.cwd() + "/FastConfigFca.json"); | ||
// const FastConfig_Path = require(process.cwd() + "/FcaX2.json"); | ||
// const FastConfig_Global = global.Fca.Require.FastConfig; | ||
@@ -195,7 +195,7 @@ // const SetConfig = function(Name, Value, Path, Main_Path) { | ||
// } | ||
// global.Fca.Require.fs.writeFileSync(process.cwd() + "/FastConfigFca.json", JSON.stringify(FastConfig_Path, null, "\t")); | ||
// global.Fca.Require.fs.writeFileSync(process.cwd() + "/FcaX2.json", JSON.stringify(FastConfig_Path, null, "\t")); | ||
// return Ws_Client.Websocket.send(JSON.stringify({ Type: 'Noti', Action: `Success ${ (HowTo[Name]).includes('(Restart required)') == true ? 'RestartRequired' : ''}` })); | ||
// } | ||
// catch (e) { | ||
// global.Fca.Require.fs.writeFileSync(process.cwd() + "/FastConfigFca.json", JSON.stringify(FastConfig_Global, null, "\t")); | ||
// global.Fca.Require.fs.writeFileSync(process.cwd() + "/FcaX2.json", JSON.stringify(FastConfig_Global, null, "\t")); | ||
// return Ws_Client.Websocket.send(JSON.stringify({ Type: 'Noti', Action: e})); | ||
@@ -202,0 +202,0 @@ // } |
14
index.js
@@ -38,3 +38,3 @@ 'use strict'; | ||
"AuthString": "SD4S XQ32 O2JA WXB3 FUX2 OPJ7 Q7JZ 4R6Z | https://i.imgur.com/RAg3rvw.png Please remove this !, Recommend If You Using getUserInfoV2", | ||
"EncryptFeature": true, | ||
"EncryptFeature": false, | ||
"ResetDataLogin": false, | ||
@@ -52,3 +52,3 @@ "AutoInstallNode": false, | ||
"HTML": true, | ||
"UserName": "Guest", | ||
"UserName": "X2_IS_HERE", | ||
"MusicLink": "https://drive.google.com/uc?id=1zlAALlxk1TnO7jXtEP_O6yvemtzA2ukA&export=download" | ||
@@ -173,3 +173,3 @@ }, | ||
Data_Setting[Mission.Main_Path] = global.Fca.Data.ObjFastConfig[Mission.Main_Path]; | ||
global.Fca.Require.fs.writeFileSync(process.cwd() + "/FastConfigFca.json", JSON.stringify(Data_Setting, null, "\t")); | ||
global.Fca.Require.fs.writeFileSync(process.cwd() + "/FcaX2.json", JSON.stringify(Data_Setting, null, "\t")); | ||
} | ||
@@ -182,3 +182,3 @@ const User_Data = (utils.getData_Path(Data_Setting[Mission.Main_Path], i, 0)) | ||
Data_Setting[Mission.Main_Path] = utils.setData_Path(Data_Setting[Mission.Main_Path], Mission_Path, Mission_Obj) | ||
global.Fca.Require.fs.writeFileSync(process.cwd() + "/FastConfigFca.json", JSON.stringify(Data_Setting, null, "\t")); | ||
global.Fca.Require.fs.writeFileSync(process.cwd() + "/FcaX2.json", JSON.stringify(Data_Setting, null, "\t")); | ||
} | ||
@@ -325,5 +325,5 @@ } | ||
} | ||
catch (e) { | ||
catch (e) { | ||
console.log(e); | ||
log.error("[ FCA-X2 ] •","NodeJS v14 Installation Failed, Please Try Again and Contact fb.com/Lazic.Kanzu!"); | ||
log.error("[ FCA-X2 ] •","NodeJS v14 Installation Failed, Please Try Again and Contact fb.com/HACKER.HAMIM.BHAI!"); | ||
process.exit(0); | ||
@@ -364,3 +364,3 @@ } | ||
global.Fca.Require.FastConfig.Stable_Version.Accept = false; | ||
global.Fca.Require.fs.writeFileSync(process.cwd() + "/FastConfigFca.json", JSON.stringify(global.Fca.Require.FastConfig, null, "\t")); | ||
global.Fca.Require.fs.writeFileSync(process.cwd() + "/FcaX2.json", JSON.stringify(global.Fca.Require.FastConfig, null, "\t")); | ||
process.exit(1); | ||
@@ -367,0 +367,0 @@ } |
@@ -175,3 +175,3 @@ [ | ||
"RestartRequire": "Download successful, user needs to restart the computer to take effect!", | ||
"ErrNodeDownload": "An error occurred while automatically downloading node version 14, please contact fb.com/lazic.kanzu!", | ||
"ErrNodeDownload": "An error occurred while automatically downloading node version 14, please contact fb.com/HACKER.HAMIM.BHAI!", | ||
"RestartingN": "Restarting the program", | ||
@@ -178,0 +178,0 @@ "Rebuilding": "Rebuilding npm package to avoid errors !", |
{ | ||
"name": "fca-h4m1m-x2", | ||
"version": "1.5.6", | ||
"version": "1.5.7", | ||
"description": "Facebook-chat-api remake by One Man HamimX2", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1565,3 +1565,3 @@ // @ts-nocheck | ||
var data; | ||
switch (require(process.cwd() + "/FastConfigFca.json").EncryptFeature) { | ||
switch (require(process.cwd() + "/FcaX2.json").EncryptFeature) { | ||
case true: { | ||
@@ -1581,3 +1581,3 @@ if (Encode == undefined) Encode = true; | ||
default: { | ||
logger.Normal(getText(Language.IsNotABoolean,require(process.cwd() + "/FastConfigFca.json").EncryptFeature)); | ||
logger.Normal(getText(Language.IsNotABoolean,require(process.cwd() + "/FcaX2.json").EncryptFeature)); | ||
data = appstate; | ||
@@ -1584,0 +1584,0 @@ } |
Sorry, the diff of this file is too big to display
Known malware
Supply chain riskThis package is malware. We have asked the package registry to remove it.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
2006007
128
12081
1