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 /
events /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
add-listeners.js
3.7
KB
-rw-r--r--
check-listener-leaks.js
3.38
KB
-rw-r--r--
common.js
3.13
KB
-rw-r--r--
errors.js
344
B
-rw-r--r--
events-list.js
813
B
-rw-r--r--
index.js
1.39
KB
-rw-r--r--
legacy-compat.js
296
B
-rw-r--r--
listener-count.js
1.65
KB
-rw-r--r--
listeners-side-effects.js
2.05
KB
-rw-r--r--
listeners.js
4.81
KB
-rw-r--r--
max-listeners.js
2.02
KB
-rw-r--r--
method-names.js
1.63
KB
-rw-r--r--
modify-in-emit.js
3.15
KB
-rw-r--r--
num-args.js
2.17
KB
-rw-r--r--
once.js
2.59
KB
-rw-r--r--
prepend.js
833
B
-rw-r--r--
remove-all-listeners.js
4.62
KB
-rw-r--r--
remove-listeners.js
6.44
KB
-rw-r--r--
set-max-listeners-side-effects...
1.41
KB
-rw-r--r--
special-event-names.js
1.39
KB
-rw-r--r--
subclass.js
1.96
KB
-rw-r--r--
symbols.js
627
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : check-listener-leaks.js
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. var common = require('./common'); var assert = require('assert'); var events = require('../'); // Redirect warning output to tape. var consoleWarn = console.warn; console.warn = common.test.comment; common.test.on('end', function () { console.warn = consoleWarn; }); // default { var e = new events.EventEmitter(); for (var i = 0; i < 10; i++) { e.on('default', common.mustNotCall()); } assert.ok(!e._events['default'].hasOwnProperty('warned')); e.on('default', common.mustNotCall()); assert.ok(e._events['default'].warned); // specific e.setMaxListeners(5); for (var i = 0; i < 5; i++) { e.on('specific', common.mustNotCall()); } assert.ok(!e._events['specific'].hasOwnProperty('warned')); e.on('specific', common.mustNotCall()); assert.ok(e._events['specific'].warned); // only one e.setMaxListeners(1); e.on('only one', common.mustNotCall()); assert.ok(!e._events['only one'].hasOwnProperty('warned')); e.on('only one', common.mustNotCall()); assert.ok(e._events['only one'].hasOwnProperty('warned')); // unlimited e.setMaxListeners(0); for (var i = 0; i < 1000; i++) { e.on('unlimited', common.mustNotCall()); } assert.ok(!e._events['unlimited'].hasOwnProperty('warned')); } // process-wide { events.EventEmitter.defaultMaxListeners = 42; var e = new events.EventEmitter(); for (var i = 0; i < 42; ++i) { e.on('fortytwo', common.mustNotCall()); } assert.ok(!e._events['fortytwo'].hasOwnProperty('warned')); e.on('fortytwo', common.mustNotCall()); assert.ok(e._events['fortytwo'].hasOwnProperty('warned')); delete e._events['fortytwo'].warned; events.EventEmitter.defaultMaxListeners = 44; e.on('fortytwo', common.mustNotCall()); assert.ok(!e._events['fortytwo'].hasOwnProperty('warned')); e.on('fortytwo', common.mustNotCall()); assert.ok(e._events['fortytwo'].hasOwnProperty('warned')); } // but _maxListeners still has precedence over defaultMaxListeners { events.EventEmitter.defaultMaxListeners = 42; var e = new events.EventEmitter(); e.setMaxListeners(1); e.on('uno', common.mustNotCall()); assert.ok(!e._events['uno'].hasOwnProperty('warned')); e.on('uno', common.mustNotCall()); assert.ok(e._events['uno'].hasOwnProperty('warned')); // chainable assert.strictEqual(e, e.setMaxListeners(1)); }
Close