Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 3.15.22.62
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
node_modules /
npm /
node_modules /
pacote /
Delete
Unzip
Name
Size
Permission
Date
Action
lib
[ DIR ]
drwxr-xr-x
2022-01-26 16:43
node_modules
[ DIR ]
drwxr-xr-x
2022-01-26 16:43
CHANGELOG.md
43.39
KB
-rw-r--r--
2022-01-10 12:20
LICENSE
1.08
KB
-rw-r--r--
2022-01-10 12:20
README.md
9.6
KB
-rw-r--r--
2022-01-10 12:20
extract.js
2.99
KB
-rw-r--r--
2022-01-10 12:20
index.js
262
B
-rw-r--r--
2022-01-10 12:20
manifest.js
1.12
KB
-rw-r--r--
2022-01-10 12:20
package.json
3.35
KB
-rw-r--r--
2022-01-10 12:20
packument.js
822
B
-rw-r--r--
2022-01-10 12:20
prefetch.js
1.93
KB
-rw-r--r--
2022-01-10 12:20
tarball.js
1.97
KB
-rw-r--r--
2022-01-10 12:20
Save
Rename
'use strict' const BB = require('bluebird') const extractStream = require('./lib/extract-stream.js') const fs = require('fs') const mkdirp = BB.promisify(require('mkdirp')) const npa = require('npm-package-arg') const optCheck = require('./lib/util/opt-check.js') const path = require('path') const rimraf = BB.promisify(require('rimraf')) const withTarballStream = require('./lib/with-tarball-stream.js') const inferOwner = require('infer-owner') const chown = BB.promisify(require('chownr')) const truncateAsync = BB.promisify(fs.truncate) const readFileAsync = BB.promisify(fs.readFile) const appendFileAsync = BB.promisify(fs.appendFile) // you used to call me on my... const selfOwner = process.getuid ? { uid: process.getuid(), gid: process.getgid() } : { uid: undefined, gid: undefined } module.exports = extract function extract (spec, dest, opts) { opts = optCheck(opts) spec = npa(spec, opts.where) if (spec.type === 'git' && !opts.cache) { throw new TypeError('Extracting git packages requires a cache folder') } if (typeof dest !== 'string') { throw new TypeError('Extract requires a destination') } const startTime = Date.now() return inferOwner(dest).then(({ uid, gid }) => { opts = opts.concat({ uid, gid }) return withTarballStream(spec, opts, stream => { return tryExtract(spec, stream, dest, opts) }) .then(() => { if (!opts.resolved) { const pjson = path.join(dest, 'package.json') return readFileAsync(pjson, 'utf8') .then(str => truncateAsync(pjson) .then(() => appendFileAsync(pjson, str.replace( /}\s*$/, `\n,"_resolved": ${ JSON.stringify(opts.resolved || '') }\n,"_integrity": ${ JSON.stringify(opts.integrity || '') }\n,"_from": ${ JSON.stringify(spec.toString()) }\n}` )))) } }) .then(() => opts.log.silly( 'extract', `${spec} extracted to ${dest} (${Date.now() - startTime}ms)` )) }) } function tryExtract (spec, tarStream, dest, opts) { return new BB((resolve, reject) => { tarStream.on('error', reject) rimraf(dest) .then(() => mkdirp(dest)) .then((made) => { // respect the current ownership of unpack targets // but don't try to chown if we're not root. if (selfOwner.uid === 0 && typeof selfOwner.gid === 'number' && selfOwner.uid !== opts.uid && selfOwner.gid !== opts.gid) { return chown(made || dest, opts.uid, opts.gid) } }) .then(() => { const xtractor = extractStream(spec, dest, opts) xtractor.on('error', reject) xtractor.on('close', resolve) tarStream.pipe(xtractor) }) .catch(reject) }) .catch(err => { if (err.code === 'EINTEGRITY') { err.message = `Verification failed while extracting ${spec}:\n${err.message}` } throw err }) }