Linux worldls-302.fr.planethoster.net 4.18.0-553.8.1.lve.el7h.x86_64 #1 SMP Thu Jul 4 15:19:33 UTC 2024 x86_64
LiteSpeed
Server IP : 10.185.0.203 & Your IP : 216.73.216.32
Domains :
Cant Read [ /etc/named.conf ]
User : gerathty
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
local /
lib /
node_modules /
npm /
lib /
config /
Delete
Unzip
Name
Size
Permission
Date
Action
bin-links.js
716
B
-rw-r--r--
2017-11-28 04:37
clear-credentials-by-uri.js
423
B
-rw-r--r--
2017-11-03 01:22
cmd-list.js
1.86
KB
-rw-r--r--
2017-11-28 02:58
core.js
10.98
KB
-rw-r--r--
2017-11-28 04:37
defaults.js
11.12
KB
-rw-r--r--
2017-11-28 04:37
fetch-opts.js
1.93
KB
-rw-r--r--
2017-11-28 04:37
gentle-fs.js
687
B
-rw-r--r--
2017-11-28 04:37
get-credentials-by-uri.js
2
KB
-rw-r--r--
2017-11-03 01:22
lifecycle.js
851
B
-rw-r--r--
2017-11-28 04:37
load-cafile.js
682
B
-rw-r--r--
2017-11-03 01:22
load-prefix.js
1.3
KB
-rw-r--r--
2017-11-28 04:37
load-uid.js
386
B
-rw-r--r--
2017-11-03 01:22
nerf-dart.js
471
B
-rw-r--r--
2017-11-03 01:22
pacote.js
3.99
KB
-rw-r--r--
2017-11-28 02:58
reg-client.js
788
B
-rw-r--r--
2017-11-03 01:22
set-credentials-by-uri.js
1.24
KB
-rw-r--r--
2017-11-28 02:58
set-user.js
749
B
-rw-r--r--
2017-11-03 01:22
Save
Rename
var assert = require('assert') var toNerfDart = require('./nerf-dart.js') module.exports = setCredentialsByURI function setCredentialsByURI (uri, c) { assert(uri && typeof uri === 'string', 'registry URL is required') assert(c && typeof c === 'object', 'credentials are required') var nerfed = toNerfDart(uri) if (c.token) { this.set(nerfed + ':_authToken', c.token, 'user') this.del(nerfed + ':_password', 'user') this.del(nerfed + ':username', 'user') this.del(nerfed + ':email', 'user') this.del(nerfed + ':always-auth', 'user') } else if (c.username || c.password || c.email) { assert(c.username, 'must include username') assert(c.password, 'must include password') assert(c.email, 'must include email address') this.del(nerfed + ':_authToken', 'user') var encoded = new Buffer(c.password, 'utf8').toString('base64') this.set(nerfed + ':_password', encoded, 'user') this.set(nerfed + ':username', c.username, 'user') this.set(nerfed + ':email', c.email, 'user') if (c.alwaysAuth !== undefined) { this.set(nerfed + ':always-auth', c.alwaysAuth, 'user') } else { this.del(nerfed + ':always-auth', 'user') } } else { throw new Error('No credentials to set.') } }