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.1
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
/
var /
www /
html /
amatya /
node_modules /
util.promisify /
[ HOME SHELL ]
Name
Size
Permission
Action
.eslintrc
215
B
-rw-r--r--
.npmignore
936
B
-rw-r--r--
.travis.yml
5.43
KB
-rw-r--r--
CHANGELOG.md
58
B
-rw-r--r--
LICENSE
1.05
KB
-rw-r--r--
README.md
450
B
-rw-r--r--
implementation.js
2.78
KB
-rw-r--r--
index.js
615
B
-rw-r--r--
package.json
1.89
KB
-rw-r--r--
polyfill.js
236
B
-rw-r--r--
shim.js
318
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : implementation.js
'use strict'; var isES5 = typeof Object.defineProperty === 'function' && typeof Object.defineProperties === 'function' && typeof Object.getPrototypeOf === 'function' && typeof Object.setPrototypeOf === 'function'; if (!isES5) { throw new TypeError('util.promisify requires a true ES5 environment'); } var getOwnPropertyDescriptors = require('object.getownpropertydescriptors'); if (typeof Promise !== 'function') { throw new TypeError('`Promise` must be globally available for util.promisify to work.'); } var slice = Function.call.bind(Array.prototype.slice); var concat = Function.call.bind(Array.prototype.concat); var forEach = Function.call.bind(Array.prototype.forEach); var hasSymbols = typeof Symbol === 'function' && typeof Symbol('') === 'symbol'; var kCustomPromisifiedSymbol = hasSymbols ? Symbol('util.promisify.custom') : null; var kCustomPromisifyArgsSymbol = hasSymbols ? Symbol('customPromisifyArgs') : null; module.exports = function promisify(orig) { if (typeof orig !== 'function') { var error = new TypeError('The "original" argument must be of type function'); error.name = 'TypeError [ERR_INVALID_ARG_TYPE]'; error.code = 'ERR_INVALID_ARG_TYPE'; throw error; } if (hasSymbols && orig[kCustomPromisifiedSymbol]) { var customFunction = orig[kCustomPromisifiedSymbol]; if (typeof customFunction !== 'function') { throw new TypeError('The [util.promisify.custom] property must be a function'); } Object.defineProperty(customFunction, kCustomPromisifiedSymbol, { configurable: true, enumerable: false, value: customFunction, writable: false }); return customFunction; } // Names to create an object from in case the callback receives multiple // arguments, e.g. ['stdout', 'stderr'] for child_process.exec. var argumentNames = orig[kCustomPromisifyArgsSymbol]; var promisified = function fn() { var args = slice(arguments); var self = this; // eslint-disable-line no-invalid-this return new Promise(function (resolve, reject) { orig.apply(self, concat(args, function (err) { var values = arguments.length > 1 ? slice(arguments, 1) : []; if (err) { reject(err); } else if (typeof argumentNames !== 'undefined' && values.length > 1) { var obj = {}; forEach(argumentNames, function (name, index) { obj[name] = values[index]; }); resolve(obj); } else { resolve(values[0]); } })); }); }; Object.setPrototypeOf(promisified, Object.getPrototypeOf(orig)); Object.defineProperty(promisified, kCustomPromisifiedSymbol, { configurable: true, enumerable: false, value: promisified, writable: false }); return Object.defineProperties(promisified, getOwnPropertyDescriptors(orig)); }; module.exports.custom = kCustomPromisifiedSymbol; module.exports.customPromisifyArgs = kCustomPromisifyArgsSymbol;
Close