Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.171
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
nodejs /
globalyzer /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
index.js
2.5
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : index.js
const path = require('path'); const CHARS = { '{': '}', '(': ')', '[': ']'}; const STRICT = /\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\)|(\\).|([@?!+*]\(.*\)))/; const RELAXED = /\\(.)|(^!|[*?{}()[\]]|\(\?)/; /** * Detect if a string cointains glob * @param {String} str Input string * @param {Object} [options] Configuration object * @param {Boolean} [options.strict=true] Use relaxed regex if true * @returns {Boolean} true if string contains glob */ function isglob(str, { strict = true } = {}) { if (str === '') return false; let match, rgx = strict ? STRICT : RELAXED; while ((match = rgx.exec(str))) { if (match[2]) return true; let idx = match.index + match[0].length; // if an open bracket/brace/paren is escaped, // set the index to the next closing character let open = match[1]; let close = open ? CHARS[open] : null; if (open && close) { let n = str.indexOf(close, idx); if (n !== -1) idx = n + 1; } str = str.slice(idx); } return false; } /** * Find the static part of a glob-path, * split path and return path part * @param {String} str Path/glob string * @returns {String} static path section of glob */ function parent(str, { strict = false } = {}) { str = path.normalize(str).replace(/\/|\\/, '/'); // special case for strings ending in enclosure containing path separator if (/[\{\[].*[\/]*.*[\}\]]$/.test(str)) str += '/'; // preserves full path in case of trailing path separator str += 'a'; do {str = path.dirname(str)} while (isglob(str, {strict}) || /(^|[^\\])([\{\[]|\([^\)]+$)/.test(str)); // remove escape chars and return result return str.replace(/\\([\*\?\|\[\]\(\)\{\}])/g, '$1'); }; /** * Parse a glob path, and split it by static/glob part * @param {String} pattern String path * @param {Object} [opts] Options * @param {Object} [opts.strict=false] Use strict parsing * @returns {Object} object with parsed path */ function globalyzer(pattern, opts = {}) { let base = parent(pattern, opts); let isGlob = isglob(pattern, opts); let glob; if (base != '.') { glob = pattern.substr(base.length); if (glob.startsWith('/')) glob = glob.substr(1); } else { glob = pattern; } if (!isGlob) { base = path.dirname(pattern); glob = base !== '.' ? pattern.substr(base.length) : pattern; } if (glob.startsWith('./')) glob = glob.substr(2); if (glob.startsWith('/')) glob = glob.substr(1); return { base, glob, isGlob }; } module.exports = globalyzer;
Close