Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.13
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
nodejs /
homedir-polyfill /
[ HOME SHELL ]
Name
Size
Permission
Action
index.js
168
B
-rw-r--r--
package.json
1.13
KB
-rw-r--r--
polyfill.js
1.77
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : polyfill.js
'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;
Close