Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.10
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
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 /
npm /
lib /
utils /
[ HOME SHELL ]
Name
Size
Permission
Action
completion
[ DIR ]
drwxr-xr-x
ansi-trim.js
211
B
-rw-r--r--
child-path.js
290
B
-rw-r--r--
completion.sh
1.73
KB
-rw-r--r--
correct-mkdir.js
3.04
KB
-rw-r--r--
deep-sort-object.js
363
B
-rw-r--r--
depr-check.js
451
B
-rw-r--r--
did-you-mean.js
495
B
-rw-r--r--
error-handler.js
6.15
KB
-rw-r--r--
error-message.js
11.54
KB
-rw-r--r--
escape-arg.js
673
B
-rw-r--r--
escape-exec-path.js
777
B
-rw-r--r--
gently-rm.js
484
B
-rw-r--r--
get-publish-config.js
919
B
-rw-r--r--
git.js
1.26
KB
-rw-r--r--
gunzip-maybe.js
552
B
-rw-r--r--
is-registry.js
295
B
-rw-r--r--
is-windows-bash.js
129
B
-rw-r--r--
is-windows-shell.js
153
B
-rw-r--r--
is-windows.js
59
B
-rw-r--r--
lifecycle-cmd.js
496
B
-rw-r--r--
lifecycle.js
364
B
-rw-r--r--
link.js
234
B
-rw-r--r--
locker.js
1.81
KB
-rw-r--r--
map-to-registry.js
2.79
KB
-rw-r--r--
metrics-launch.js
1.05
KB
-rw-r--r--
metrics.js
2.03
KB
-rw-r--r--
module-name.js
935
B
-rw-r--r--
move.js
290
B
-rw-r--r--
no-progress-while-running.js
541
B
-rw-r--r--
output.js
210
B
-rw-r--r--
package-id.js
399
B
-rw-r--r--
parse-json.js
663
B
-rw-r--r--
perf.js
562
B
-rw-r--r--
pick-manifest-from-registry-me...
905
B
-rw-r--r--
pulse-till-done.js
783
B
-rw-r--r--
read-local-package.js
329
B
-rw-r--r--
read-user-info.js
1.75
KB
-rw-r--r--
replace-info.js
552
B
-rw-r--r--
save-stack.js
349
B
-rw-r--r--
spawn.js
1.38
KB
-rw-r--r--
stringify-package.js
328
B
-rw-r--r--
temp-filename.js
173
B
-rw-r--r--
umask.js
343
B
-rw-r--r--
unix-format-path.js
85
B
-rw-r--r--
unsupported.js
2.21
KB
-rw-r--r--
usage.js
576
B
-rw-r--r--
warn-deprecated.js
556
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : map-to-registry.js
var url = require('url') var log = require('npmlog') var npa = require('npm-package-arg') var config module.exports = mapToRegistry function mapToRegistry (name, config, cb) { log.silly('mapToRegistry', 'name', name) var registry // the name itself takes precedence var data = npa(name) if (data.scope) { // the name is definitely scoped, so escape now name = name.replace('/', '%2f') log.silly('mapToRegistry', 'scope (from package name)', data.scope) registry = config.get(data.scope + ':registry') if (!registry) { log.verbose('mapToRegistry', 'no registry URL found in name for scope', data.scope) } } // ...then --scope=@scope or --scope=scope var scope = config.get('scope') if (!registry && scope) { // I'm an enabler, sorry if (scope.charAt(0) !== '@') scope = '@' + scope log.silly('mapToRegistry', 'scope (from config)', scope) registry = config.get(scope + ':registry') if (!registry) { log.verbose('mapToRegistry', 'no registry URL found in config for scope', scope) } } // ...and finally use the default registry if (!registry) { log.silly('mapToRegistry', 'using default registry') registry = config.get('registry') } log.silly('mapToRegistry', 'registry', registry) var auth = config.getCredentialsByURI(registry) // normalize registry URL so resolution doesn't drop a piece of registry URL var normalized = registry.slice(-1) !== '/' ? registry + '/' : registry var uri log.silly('mapToRegistry', 'data', data) if (data.type === 'remote') { uri = data.fetchSpec } else { uri = url.resolve(normalized, name) } log.silly('mapToRegistry', 'uri', uri) cb(null, uri, scopeAuth(uri, registry, auth), normalized) } function scopeAuth (uri, registry, auth) { var cleaned = { scope: auth.scope, email: auth.email, alwaysAuth: auth.alwaysAuth, token: undefined, username: undefined, password: undefined, auth: undefined } var requestHost var registryHost if (auth.token || auth.auth || (auth.username && auth.password)) { requestHost = url.parse(uri).hostname registryHost = url.parse(registry).hostname if (requestHost === registryHost) { cleaned.token = auth.token cleaned.auth = auth.auth cleaned.username = auth.username cleaned.password = auth.password } else if (auth.alwaysAuth) { log.verbose('scopeAuth', 'alwaysAuth set for', registry) cleaned.token = auth.token cleaned.auth = auth.auth cleaned.username = auth.username cleaned.password = auth.password } else { log.silly('scopeAuth', uri, "doesn't share host with registry", registry) } if (!config) config = require('../npm').config if (config.get('otp')) cleaned.otp = config.get('otp') } return cleaned }
Close