Linux ip-172-26-2-223 5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:15:00 UTC 2020 x86_64
Apache
: 172.26.2.223 | : 18.118.226.34
Cant Read [ /etc/named.conf ]
8.1.13
www
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
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
share /
npm /
lib /
config /
[ HOME SHELL ]
Name
Size
Permission
Action
bin-links.js
716
B
-rw-r--r--
clear-credentials-by-uri.js
423
B
-rw-r--r--
cmd-list.js
2.17
KB
-rw-r--r--
core.js
10.9
KB
-rw-r--r--
defaults.js
11.45
KB
-rw-r--r--
figgy-config.js
2.31
KB
-rw-r--r--
gentle-fs.js
687
B
-rw-r--r--
get-credentials-by-uri.js
2.16
KB
-rw-r--r--
lifecycle.js
851
B
-rw-r--r--
load-cafile.js
682
B
-rw-r--r--
load-prefix.js
1.3
KB
-rw-r--r--
nerf-dart.js
471
B
-rw-r--r--
set-credentials-by-uri.js
1.24
KB
-rw-r--r--
set-user.js
758
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : get-credentials-by-uri.js
var assert = require('assert') var toNerfDart = require('./nerf-dart.js') module.exports = getCredentialsByURI function getCredentialsByURI (uri) { assert(uri && typeof uri === 'string', 'registry URL is required') var nerfed = toNerfDart(uri) var defnerf = toNerfDart(this.get('registry')) // hidden class micro-optimization var c = { scope: nerfed, token: undefined, password: undefined, username: undefined, email: undefined, auth: undefined, alwaysAuth: undefined } // used to override scope matching for tokens as well as legacy auth if (this.get(nerfed + ':always-auth') !== undefined) { var val = this.get(nerfed + ':always-auth') c.alwaysAuth = val === 'false' ? false : !!val } else if (this.get('always-auth') !== undefined) { c.alwaysAuth = this.get('always-auth') } if (this.get(nerfed + ':_authToken')) { c.token = this.get(nerfed + ':_authToken') // the bearer token is enough, don't confuse things return c } if (this.get(nerfed + ':-authtoken')) { c.token = this.get(nerfed + ':-authtoken') // the bearer token is enough, don't confuse things return c } // Handle the old-style _auth=<base64> style for the default // registry, if set. var authDef = this.get('_auth') var userDef = this.get('username') var passDef = this.get('_password') if (authDef && !(userDef && passDef)) { authDef = Buffer.from(authDef, 'base64').toString() authDef = authDef.split(':') userDef = authDef.shift() passDef = authDef.join(':') } if (this.get(nerfed + ':_password')) { c.password = Buffer.from(this.get(nerfed + ':_password'), 'base64').toString('utf8') } else if (nerfed === defnerf && passDef) { c.password = passDef } if (this.get(nerfed + ':username')) { c.username = this.get(nerfed + ':username') } else if (nerfed === defnerf && userDef) { c.username = userDef } if (this.get(nerfed + ':email')) { c.email = this.get(nerfed + ':email') } else if (this.get('email')) { c.email = this.get('email') } if (c.username && c.password) { c.auth = Buffer.from(c.username + ':' + c.password).toString('base64') } return c }
Close