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.133.128.223
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 /
homedir-polyfill /
Delete
Unzip
Name
Size
Permission
Date
Action
LICENSE
1.06
KB
-rw-rw-r--
2022-08-30 11:49
README.md
3.75
KB
-rw-rw-r--
2022-08-30 11:49
index.js
168
B
-rw-rw-r--
2022-08-30 11:49
package.json
1.13
KB
-rw-rw-r--
2022-08-30 11:49
polyfill.js
1.77
KB
-rw-rw-r--
2022-08-30 11:49
Save
Rename
'use strict'; var fs = require('fs'); var parse = require('parse-passwd'); function homedir() { // The following logic is from looking at logic used in the different platform // versions of the uv_os_homedir function found in https://github.com/libuv/libuv // This is the function used in modern versions of node.js if (process.platform === 'win32') { // check the USERPROFILE first if (process.env.USERPROFILE) { return process.env.USERPROFILE; } // check HOMEDRIVE and HOMEPATH if (process.env.HOMEDRIVE && process.env.HOMEPATH) { return process.env.HOMEDRIVE + process.env.HOMEPATH; } // fallback to HOME if (process.env.HOME) { return process.env.HOME; } return null; } // check HOME environment variable first if (process.env.HOME) { return process.env.HOME; } // on linux platforms (including OSX) find the current user and get their homedir from the /etc/passwd file var passwd = tryReadFileSync('/etc/passwd'); var home = find(parse(passwd), getuid()); if (home) { return home; } // fallback to using user environment variables var user = process.env.LOGNAME || process.env.USER || process.env.LNAME || process.env.USERNAME; if (!user) { return null; } if (process.platform === 'darwin') { return '/Users/' + user; } return '/home/' + user; } function find(arr, uid) { var len = arr.length; for (var i = 0; i < len; i++) { if (+arr[i].uid === uid) { return arr[i].homedir; } } } function getuid() { if (typeof process.geteuid === 'function') { return process.geteuid(); } return process.getuid(); } function tryReadFileSync(fp) { try { return fs.readFileSync(fp, 'utf8'); } catch (err) { return ''; } } module.exports = homedir;