Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.159
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
amatya /
quiz1 /
node_modules /
eslint /
lib /
config /
[ HOME SHELL ]
Name
Size
Permission
Action
default-config.js
1.76
KB
-rw-rw-rw-
flat-config-array.js
12.08
KB
-rw-rw-rw-
flat-config-helpers.js
2.71
KB
-rw-rw-rw-
flat-config-schema.js
17.35
KB
-rw-rw-rw-
rule-validator.js
4.94
KB
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : flat-config-helpers.js
/** * @fileoverview Shared functions to work with configs. * @author Nicholas C. Zakas */ "use strict"; //----------------------------------------------------------------------------- // Functions //----------------------------------------------------------------------------- /** * Parses a ruleId into its plugin and rule parts. * @param {string} ruleId The rule ID to parse. * @returns {{pluginName:string,ruleName:string}} The plugin and rule * parts of the ruleId; */ function parseRuleId(ruleId) { let pluginName, ruleName; // distinguish between core rules and plugin rules if (ruleId.includes("/")) { // mimic scoped npm packages if (ruleId.startsWith("@")) { pluginName = ruleId.slice(0, ruleId.lastIndexOf("/")); } else { pluginName = ruleId.slice(0, ruleId.indexOf("/")); } ruleName = ruleId.slice(pluginName.length + 1); } else { pluginName = "@"; ruleName = ruleId; } return { pluginName, ruleName }; } /** * Retrieves a rule instance from a given config based on the ruleId. * @param {string} ruleId The rule ID to look for. * @param {FlatConfig} config The config to search. * @returns {import("../shared/types").Rule|undefined} The rule if found * or undefined if not. */ function getRuleFromConfig(ruleId, config) { const { pluginName, ruleName } = parseRuleId(ruleId); const plugin = config.plugins && config.plugins[pluginName]; let rule = plugin && plugin.rules && plugin.rules[ruleName]; // normalize function rules into objects if (rule && typeof rule === "function") { rule = { create: rule }; } return rule; } /** * Gets a complete options schema for a rule. * @param {{create: Function, schema: (Array|null)}} rule A new-style rule object * @returns {Object} JSON Schema for the rule's options. */ function getRuleOptionsSchema(rule) { if (!rule) { return null; } const schema = rule.schema || rule.meta && rule.meta.schema; if (Array.isArray(schema)) { if (schema.length) { return { type: "array", items: schema, minItems: 0, maxItems: schema.length }; } return { type: "array", minItems: 0, maxItems: 0 }; } // Given a full schema, leave it alone return schema || null; } //----------------------------------------------------------------------------- // Exports //----------------------------------------------------------------------------- module.exports = { parseRuleId, getRuleFromConfig, getRuleOptionsSchema };
Close