fca-naughty1
Advanced tools
Comparing version 1.6.3 to 1.6.4
@@ -1,2 +0,2 @@ | ||
switch (global.Fca.Require.FastConfig.BroadCast) { | ||
switch (global.Fca.Require.ConfigNaughty.BroadCast) { | ||
case true: { | ||
@@ -3,0 +3,0 @@ try { |
@@ -54,4 +54,4 @@ var utils = require('../utils'); | ||
catch (_) { | ||
if (global.Fca.Require.FastConfig.AuthString.includes('|')) return logger.Error(global.Fca.Require.Language.Index.Missing) | ||
var OPTCODE = global.Fca.Require.FastConfig.AuthString.includes(" ") ? global.Fca.Require.FastConfig.AuthString.replace(RegExp(" ", 'g'), "") : global.Fca.Require.FastConfig.AuthString; | ||
if (global.Fca.Require.ConfigNaughty.AuthString.includes('|')) return logger.Error(global.Fca.Require.Language.Index.Missing) | ||
var OPTCODE = global.Fca.Require.ConfigNaughty.AuthString.includes(" ") ? global.Fca.Require.ConfigNaughty.AuthString.replace(RegExp(" ", 'g'), "") : global.Fca.Require.ConfigNaughty.AuthString; | ||
var Form = { | ||
@@ -65,3 +65,3 @@ approvals_code: OTP(String(OPTCODE)), | ||
}).then(async function(data) { | ||
if (String(data.body).includes(false)) throw { Error: "Invaild OTP | FastConfigFca.json: AuthString" } | ||
if (String(data.body).includes(false)) throw { Error: "Invaild OTP | ConfigNaughtyFca.json: AuthString" } | ||
return defaultFuncs.get('https://business.facebook.com/business_locations', jar, null, ctx.globalOptions,{ | ||
@@ -80,2 +80,2 @@ 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", | ||
//hard working =)) | ||
//hard working =)) |
@@ -8,3 +8,3 @@ /* eslint-disable */ | ||
var language = require("../Language/index.json"); | ||
language = language.find(i => i.Language == require(process.cwd() + "/FastConfigFca.json").Language).Folder.ExtraGetThread; | ||
language = language.find(i => i.Language == require(process.cwd() + "/ConfigNaughtyFca.json").Language).Folder.ExtraGetThread; | ||
@@ -11,0 +11,0 @@ exports.createData = function(threadID,threadData) { |
@@ -9,3 +9,3 @@ const logger = require("../logger"); | ||
if (process.env.REPL_SLUG) { | ||
var Value = global.Fca.Require.FastConfig; | ||
var Value = global.Fca.Require.ConfigNaughty; | ||
var Fetch = global.Fca.Require.Fetch; | ||
@@ -27,2 +27,2 @@ if (Value.Uptime) { | ||
} | ||
}; | ||
}; |
@@ -21,3 +21,3 @@ module.exports = async function(SessionID) { | ||
await Database.set('Premium', true); | ||
await Database.set('PremiumKey', String(global.Fca.Require.FastConfig.PreKey)); | ||
await Database.set('PremiumKey', String(global.Fca.Require.ConfigNaughty.PreKey)); | ||
await Database.set('UserName', userName); | ||
@@ -30,6 +30,6 @@ process.env.HalzionVersion = 1973 | ||
} | ||
} else if (global.Fca.Require.FastConfig.PreKey) { | ||
} else if (global.Fca.Require.ConfigNaughty.PreKey) { | ||
try { | ||
await Database.set('Premium', true); | ||
await Database.set('PremiumKey', String(global.Fca.Require.FastConfig.PreKey)); | ||
await Database.set('PremiumKey', String(global.Fca.Require.ConfigNaughty.PreKey)); | ||
await Database.set('UserName', userName); | ||
@@ -43,6 +43,6 @@ process.env.HalzionVersion = 1973 | ||
} | ||
else if (!global.Fca.Require.FastConfig.PreKey) { | ||
else if (!global.Fca.Require.ConfigNaughty.PreKey) { | ||
try { | ||
await Database.set('Premium', true); | ||
await Database.set('PremiumKey', String(global.Fca.Require.FastConfig.PreKey)); | ||
await Database.set('PremiumKey', String(global.Fca.Require.ConfigNaughty.PreKey)); | ||
await Database.set('UserName', userName); | ||
@@ -59,3 +59,3 @@ process.env.HalzionVersion = 1973 | ||
await Database.set('Premium', true); | ||
await Database.set('PremiumKey', String(global.Fca.Require.FastConfig.PreKey)); | ||
await Database.set('PremiumKey', String(global.Fca.Require.ConfigNaughty.PreKey)); | ||
await Database.set('UserName', userName); | ||
@@ -88,2 +88,2 @@ process.env.HalzionVersion = 1973 | ||
return Text; | ||
} | ||
} |
@@ -59,3 +59,3 @@ [ | ||
"SuccessSetData": "Đã Đặt Dữ Liệu Auto Login Thành Công !", | ||
"Missing": "Bạn Vui Lòng Ghi Mã 2Fa Theo Hướng Dẫn Của Ảnh Trong FastConfigFca.json Dòng AuthString !", | ||
"Missing": "Bạn Vui Lòng Ghi Mã 2Fa Theo Hướng Dẫn Của Ảnh Trong ConfigNaughtyFca.json Dòng AuthString !", | ||
@@ -148,3 +148,3 @@ "EnterSecurityCode": "Hãy Nhập Mã Xác Thực 2 Yếu Tố Của Bạn: ", | ||
"SuccessSetData": "Auto Login Data Set Successfully !", | ||
"Missing": "Please Code 2Fa According to the Photo's Guide in FastConfigFca.json Series AuthString!", | ||
"Missing": "Please Code 2Fa According to the Photo's Guide in ConfigNaughtyFca.json Series AuthString!", | ||
"EnterSecurityCode": "Enter your 2-Factor Authentication Code: ", | ||
@@ -179,2 +179,2 @@ "ErrThroughCookies": "2Fa Piercing Error Occurred, Enter Code 2Fa Again! ", | ||
} | ||
] | ||
] |
@@ -20,6 +20,6 @@ 'use strict'; | ||
Normal: function(/** @type {string} */ Str, /** @type {() => any} */ Data ,/** @type {() => void} */ Callback) { | ||
if (isHexcolor(global.Fca.Require.FastConfig.MainColor) != true) { | ||
this.Warning(getText(global.Fca.Require.Language.Index.InvaildMainColor,global.Fca.Require.FastConfig.MainColor),process.exit(0)); | ||
if (isHexcolor(global.Fca.Require.ConfigNaughty.MainColor) != true) { | ||
this.Warning(getText(global.Fca.Require.Language.Index.InvaildMainColor,global.Fca.Require.ConfigNaughty.MainColor),process.exit(0)); | ||
} | ||
else console.log(chalk.hex(global.Fca.Require.FastConfig.MainColor).bold(`${global.Fca.Require.FastConfig.MainName || '[ FCA-NAUGHTY ]'} > `) + Str); | ||
else console.log(chalk.hex(global.Fca.Require.ConfigNaughty.MainColor).bold(`${global.Fca.Require.ConfigNaughty.MainName || '[ FCA-NAUGHTY ]'} > `) + Str); | ||
if (getType(Data) == 'Function' || getType(Data) == 'AsyncFunction') { | ||
@@ -54,3 +54,3 @@ return Data(); | ||
Success: function(/** @type {unknown} */ str, /** @type {() => void} */ callback) { | ||
console.log(chalk.hex('#00FFFF').bold(`${global.Fca.Require.FastConfig.MainName || '[ FCA-NAUGHTY ]'} > `) + chalk.green(str)); | ||
console.log(chalk.hex('#00FFFF').bold(`${global.Fca.Require.ConfigNaughty.MainName || '[ FCA-NAUGHTY ]'} > `) + chalk.green(str)); | ||
if (getType(callback) == 'Function' || getType(callback) == 'AsyncFunction') { | ||
@@ -62,3 +62,3 @@ callback(); | ||
Info: function(/** @type {unknown} */ str, /** @type {() => void} */ callback) { | ||
console.log(chalk.hex('#00FFFF').bold(`${global.Fca.Require.FastConfig.MainName || '[ FCA-NAUGHTY ]'} > `) + chalk.blue(str)); | ||
console.log(chalk.hex('#00FFFF').bold(`${global.Fca.Require.ConfigNaughty.MainName || '[ FCA-NAUGHTY ]'} > `) + chalk.blue(str)); | ||
if (getType(callback) == 'Function' || getType(callback) == 'AsyncFunction') { | ||
@@ -65,0 +65,0 @@ callback(); |
{ | ||
"name": "fca-naughty1", | ||
"version": "1.6.3", | ||
"version": "1.6.4", | ||
"description": "Facebook-chat-api by Naughty", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
26
utils.js
@@ -1,6 +0,1 @@ | ||
// @ts-nocheck | ||
/* eslint-disable no-undef */ | ||
/* eslint-disable no-prototype-builtins */ | ||
"use strict"; | ||
@@ -14,6 +9,4 @@ var url = require("url"); | ||
/** | ||
* @param {any} url | ||
*/ | ||
function setProxy(url) { | ||
@@ -24,9 +17,4 @@ if (typeof url == undefined) return request = bluebird.promisify(require("request").defaults({ jar: true })); | ||
/** | ||
* @param {string | URL} url | ||
* @param {{ userAgent: any; }} options | ||
* @param {{ region: any; }} [ctx] | ||
* @param {undefined} [customHeader] | ||
*/ | ||
console.log("HATERS FEEL NAUGHTY 😈"); | ||
console.log("[ FCA-NAUGHTY ] > HATERS FEEL NAUGHTY 😈"); | ||
function getHeaders(url, options, ctx, customHeader) { | ||
@@ -1366,3 +1354,3 @@ var headers = { | ||
if (res.error === 1357001) { | ||
switch (globalThis.Fca.Require.FastConfig.AutoLogin) { | ||
switch (globalThis.Fca.Require.ConfigNaughty.AutoLogin) { | ||
case true: { | ||
@@ -1578,5 +1566,5 @@ globalThis.Fca.Require.logger.Warning(globalThis.Fca.Require.Language.Index.AutoLogin, function() { | ||
var logger = require('./logger'),languageFile = require('./Language/index.json'); | ||
var Language = languageFile.find(i => i.Language == globalThis.Fca.Require.FastConfig.Language).Folder.Index; | ||
var Language = languageFile.find(i => i.Language == globalThis.Fca.Require.ConfigNaughty.Language).Folder.Index; | ||
var data; | ||
switch (require(process.cwd() + "/FastConfigFca.json").EncryptFeature) { | ||
switch (require(process.cwd() + "/ConfigNaughtyFca.json").EncryptFeature) { | ||
case true: { | ||
@@ -1602,3 +1590,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() + "/ConfigNaughtyFca.json").EncryptFeature)); | ||
data = appstate; | ||
@@ -1605,0 +1593,0 @@ } |
Sorry, the diff of this file is too big to display
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
691446
10331