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 : 18.119.110.206
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
node_modules /
parse-passwd /
Delete
Unzip
Name
Size
Permission
Date
Action
LICENSE
1.06
KB
-rw-rw-r--
2022-08-30 11:49
README.md
2.43
KB
-rw-rw-r--
2022-08-30 11:49
index.js
1.35
KB
-rw-rw-r--
2022-08-30 11:49
package.json
1004
B
-rw-rw-r--
2022-08-30 11:49
Save
Rename
'use strict'; /** * Parse the content of a passwd file into a list of user objects. * This function ignores blank lines and comments. * * ```js * // assuming '/etc/passwd' contains: * // doowb:*:123:123:Brian Woodward:/Users/doowb:/bin/bash * console.log(parse(fs.readFileSync('/etc/passwd', 'utf8'))); * * //=> [ * //=> { * //=> username: 'doowb', * //=> password: '*', * //=> uid: '123', * //=> gid: '123', * //=> gecos: 'Brian Woodward', * //=> homedir: '/Users/doowb', * //=> shell: '/bin/bash' * //=> } * //=> ] * ``` * @param {String} `content` Content of a passwd file to parse. * @return {Array} Array of user objects parsed from the content. * @api public */ module.exports = function(content) { if (typeof content !== 'string') { throw new Error('expected a string'); } return content .split('\n') .map(user) .filter(Boolean); }; function user(line, i) { if (!line || !line.length || line.charAt(0) === '#') { return null; } // see https://en.wikipedia.org/wiki/Passwd for field descriptions var fields = line.split(':'); return { username: fields[0], password: fields[1], uid: fields[2], gid: fields[3], // see https://en.wikipedia.org/wiki/Gecos_field for GECOS field descriptions gecos: fields[4], homedir: fields[5], shell: fields[6] }; }