Linux bear.hostingplus.cl 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
LiteSpeed
Server IP : 192.140.57.17 & Your IP : 216.73.216.106
Domains :
Cant Read [ /etc/named.conf ]
User : explo
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
bitninja-dispatcher /
node_modules /
redis /
lib /
Delete
Unzip
Name
Size
Permission
Date
Action
command.js
436
B
-rw-r--r--
2026-02-18 13:02
commands.js
3.99
KB
-rw-r--r--
2026-02-18 13:02
createClient.js
3.43
KB
-rw-r--r--
2026-02-18 13:02
customErrors.js
1.62
KB
-rw-r--r--
2026-02-18 13:02
debug.js
272
B
-rw-r--r--
2026-02-18 13:02
extendedApi.js
4.23
KB
-rw-r--r--
2026-02-18 13:02
individualCommands.js
22.8
KB
-rw-r--r--
2026-02-18 13:02
multi.js
6.36
KB
-rw-r--r--
2026-02-18 13:02
utils.js
4.2
KB
-rw-r--r--
2026-02-18 13:02
Save
Rename
'use strict'; var utils = require('./utils'); var debug = require('./debug'); var RedisClient = require('../').RedisClient; var Command = require('./command'); var noop = function () {}; /********************************************** All documented and exposed API belongs in here **********************************************/ // Redirect calls to the appropriate function and use to send arbitrary / not supported commands RedisClient.prototype.send_command = RedisClient.prototype.sendCommand = function (command, args, callback) { // Throw to fail early instead of relying in order in this case if (typeof command !== 'string') { throw new TypeError('Wrong input type "' + (command !== null && command !== undefined ? command.constructor.name : command) + '" for command name'); } command = command.toLowerCase(); if (!Array.isArray(args)) { if (args === undefined || args === null) { args = []; } else if (typeof args === 'function' && callback === undefined) { callback = args; args = []; } else { throw new TypeError('Wrong input type "' + args.constructor.name + '" for args'); } } if (typeof callback !== 'function' && callback !== undefined) { throw new TypeError('Wrong input type "' + (callback !== null ? callback.constructor.name : 'null') + '" for callback function'); } // Using the raw multi command is only possible with this function // If the command is not yet added to the client, the internal function should be called right away // Otherwise we need to redirect the calls to make sure the internal functions don't get skipped // The internal functions could actually be used for any non hooked function // but this might change from time to time and at the moment there's no good way to distinguish them // from each other, so let's just do it do it this way for the time being if (command === 'multi' || typeof this[command] !== 'function') { return this.internal_send_command(new Command(command, args, callback)); } if (typeof callback === 'function') { args = args.concat([callback]); // Prevent manipulating the input array } return this[command].apply(this, args); }; RedisClient.prototype.end = function (flush) { // Flush queue if wanted if (flush) { this.flush_and_error({ message: 'Connection forcefully ended and command aborted.', code: 'NR_CLOSED' }); } else if (arguments.length === 0) { this.warn( 'Using .end() without the flush parameter is deprecated and throws from v.3.0.0 on.\n' + 'Please check the doku (https://github.com/NodeRedis/node_redis) and explictly use flush.' ); } // Clear retry_timer if (this.retry_timer) { clearTimeout(this.retry_timer); this.retry_timer = null; } this.stream.removeAllListeners(); this.stream.on('error', noop); this.connected = false; this.ready = false; this.closing = true; return this.stream.destroySoon(); }; RedisClient.prototype.unref = function () { if (this.connected) { debug("Unref'ing the socket connection"); this.stream.unref(); } else { debug('Not connected yet, will unref later'); this.once('connect', function () { this.unref(); }); } }; RedisClient.prototype.duplicate = function (options, callback) { if (typeof options === 'function') { callback = options; options = null; } var existing_options = utils.clone(this.options); options = utils.clone(options); for (var elem in options) { existing_options[elem] = options[elem]; } var client = new RedisClient(existing_options); client.selected_db = options.db || this.selected_db; if (typeof callback === 'function') { var ready_listener = function () { callback(null, client); client.removeAllListeners(error_listener); }; var error_listener = function (err) { callback(err); client.end(true); }; client.once('ready', ready_listener); client.once('error', error_listener); return; } return client; };