Linux business72.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
LiteSpeed
: 162.0.229.97 | : 18.119.117.231
Cant Read [ /etc/named.conf ]
8.1.30
temmmp
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
/
opt /
alt /
alt-nodejs16 /
root /
usr /
lib /
node_modules /
npm /
lib /
utils /
[ HOME SHELL ]
Name
Size
Permission
Action
completion
[ DIR ]
drwxr-xr-x
config
[ DIR ]
drwxr-xr-x
ansi-trim.js
173
B
-rw-r--r--
audit-error.js
978
B
-rw-r--r--
cmd-list.js
2.46
KB
-rw-r--r--
completion.sh
1.85
KB
-rwxr-xr-x
did-you-mean.js
1.46
KB
-rw-r--r--
display.js
2.84
KB
-rw-r--r--
error-message.js
12.64
KB
-rw-r--r--
exit-handler.js
6.77
KB
-rw-r--r--
explain-dep.js
3.73
KB
-rw-r--r--
explain-eresolve.js
2.56
KB
-rw-r--r--
format-bytes.js
629
B
-rw-r--r--
format-search-stream.js
3.93
KB
-rw-r--r--
get-identity.js
740
B
-rw-r--r--
is-windows.js
233
B
-rw-r--r--
log-file.js
7.64
KB
-rw-r--r--
log-shim.js
1.68
KB
-rw-r--r--
npm-usage.js
1.95
KB
-rw-r--r--
open-url-prompt.js
1.54
KB
-rw-r--r--
open-url.js
1.17
KB
-rw-r--r--
otplease.js
1.23
KB
-rw-r--r--
ping.js
252
B
-rw-r--r--
pulse-till-done.js
412
B
-rw-r--r--
queryable.js
9.58
KB
-rw-r--r--
read-user-info.js
1.99
KB
-rw-r--r--
reify-finish.js
876
B
-rw-r--r--
reify-output.js
4.96
KB
-rw-r--r--
replace-info.js
807
B
-rw-r--r--
tar.js
3.73
KB
-rw-r--r--
timers.js
3.18
KB
-rw-r--r--
update-notifier.js
4.45
KB
-rw-r--r--
validate-lockfile.js
1023
B
-rw-r--r--
web-auth.js
558
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : timers.js
const EE = require('events') const { resolve } = require('path') const fs = require('@npmcli/fs') const log = require('./log-shim') const _timeListener = Symbol('timeListener') const _timeEndListener = Symbol('timeEndListener') const _init = Symbol('init') // This is an event emiiter but on/off // only listen on a single internal event that gets // emitted whenever a timer ends class Timers extends EE { file = null #unfinished = new Map() #finished = {} #onTimeEnd = Symbol('onTimeEnd') #initialListener = null #initialTimer = null constructor ({ listener = null, start = 'npm' } = {}) { super() this.#initialListener = listener this.#initialTimer = start this[_init]() } get unfinished () { return this.#unfinished } get finished () { return this.#finished } [_init] () { this.on() if (this.#initialListener) { this.on(this.#initialListener) } process.emit('time', this.#initialTimer) this.started = this.#unfinished.get(this.#initialTimer) } on (listener) { if (listener) { super.on(this.#onTimeEnd, listener) } else { process.on('time', this[_timeListener]) process.on('timeEnd', this[_timeEndListener]) } } off (listener) { if (listener) { super.off(this.#onTimeEnd, listener) } else { this.removeAllListeners(this.#onTimeEnd) process.off('time', this[_timeListener]) process.off('timeEnd', this[_timeEndListener]) } } time (name, fn) { process.emit('time', name) const end = () => process.emit('timeEnd', name) if (typeof fn === 'function') { const res = fn() return res && res.finally ? res.finally(end) : (end(), res) } return end } load ({ dir } = {}) { if (dir) { this.file = resolve(dir, '_timing.json') } } writeFile (fileData) { if (!this.file) { return } try { const globalStart = this.started const globalEnd = this.#finished.npm || Date.now() const content = { ...fileData, ...this.#finished, // add any unfinished timers with their relative start/end unfinished: [...this.#unfinished.entries()].reduce((acc, [name, start]) => { acc[name] = [start - globalStart, globalEnd - globalStart] return acc }, {}), } // we append line delimited json to this file...forever // XXX: should we also write a process specific timing file? // with similar rules to the debug log (max files, etc) fs.withOwnerSync( this.file, () => fs.appendFileSync(this.file, JSON.stringify(content) + '\n'), { owner: 'inherit' } ) } catch (e) { this.file = null log.warn('timing', `could not write timing file: ${e}`) } } [_timeListener] = (name) => { this.#unfinished.set(name, Date.now()) } [_timeEndListener] = (name) => { if (this.#unfinished.has(name)) { const ms = Date.now() - this.#unfinished.get(name) this.#finished[name] = ms this.#unfinished.delete(name) this.emit(this.#onTimeEnd, name, ms) } else { log.silly('timing', "Tried to end timer that doesn't exist:", name) } } } module.exports = Timers
Close