Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
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
README
+ Create Folder
+ Create File
/
usr /
share /
nodejs /
@npmcli /
fs /
lib /
[ HOME SHELL ]
Name
Size
Permission
Action
common
[ DIR ]
drwxr-xr-x
cp
[ DIR ]
drwxr-xr-x
mkdir
[ DIR ]
drwxr-xr-x
rm
[ DIR ]
drwxr-xr-x
copy-file.js
607
B
-rw-r--r--
errors.js
3.32
KB
-rw-r--r--
fs.js
377
B
-rw-r--r--
index.js
310
B
-rw-r--r--
mkdtemp.js
891
B
-rw-r--r--
with-temp-dir.js
1009
B
-rw-r--r--
write-file.js
507
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : with-temp-dir.js
const { join, sep } = require('path') const getOptions = require('./common/get-options.js') const mkdir = require('./mkdir/index.js') const mkdtemp = require('./mkdtemp.js') const rm = require('./rm/index.js') // create a temp directory, ensure its permissions match its parent, then call // the supplied function passing it the path to the directory. clean up after // the function finishes, whether it throws or not const withTempDir = async (root, fn, opts) => { const options = getOptions(opts, { copy: ['tmpPrefix'], }) // create the directory, and fix its ownership await mkdir(root, { recursive: true, owner: 'inherit' }) const target = await mkdtemp(join(`${root}${sep}`, options.tmpPrefix || ''), { owner: 'inherit' }) let err let result try { result = await fn(target) } catch (_err) { err = _err } try { await rm(target, { force: true, recursive: true }) } catch (err) {} if (err) { throw err } return result } module.exports = withTempDir
Close