Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.217.80
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
nodejs /
libtap /
lib /
Delete
Unzip
Name
Size
Permission
Date
Action
base.js
8.66
KB
-rw-r--r--
2023-12-12 09:48
clean-yaml-object.js
4.04
KB
-rw-r--r--
2023-12-12 09:48
diags.js
130
B
-rw-r--r--
2023-12-12 09:48
esc.js
134
B
-rw-r--r--
2023-12-12 09:48
extra-from-error.js
1.93
KB
-rw-r--r--
2023-12-12 09:48
fake-process.js
162
B
-rw-r--r--
2023-12-12 09:48
find-main-script.js
292
B
-rw-r--r--
2023-12-12 09:48
fixture.js
2.28
KB
-rw-r--r--
2023-12-12 09:48
mock.js
2.82
KB
-rw-r--r--
2023-12-12 09:48
obj-to-yaml.js
371
B
-rw-r--r--
2023-12-12 09:48
parse-test-args.js
1.42
KB
-rw-r--r--
2023-12-12 09:48
point.js
1.12
KB
-rw-r--r--
2023-12-12 09:48
process.js
99
B
-rw-r--r--
2023-12-12 09:48
snapshot.js
3.01
KB
-rw-r--r--
2023-12-12 09:48
spawn.js
4.38
KB
-rw-r--r--
2023-12-12 09:48
stack.js
117
B
-rw-r--r--
2023-12-12 09:48
stdin.js
875
B
-rw-r--r--
2023-12-12 09:48
tap.js
6.06
KB
-rw-r--r--
2023-12-12 09:48
tap.mjs
623
B
-rw-r--r--
2023-12-12 09:48
test.js
50.31
KB
-rw-r--r--
2023-12-12 09:48
waiter.js
1.13
KB
-rw-r--r--
2023-12-12 09:48
Save
Rename
const {writeFileSync, linkSync, statSync, symlinkSync} = require('fs') const {mkdirRecursiveSync} = require('../settings') const {resolve, dirname} = require('path') class Fixture { constructor (type, content) { this.type = type this.content = content switch (type) { case 'dir': if (!content || typeof content !== 'object') throw new TypeError('dir fixture must have object content') break case 'file': if (typeof content !== 'string' && !Buffer.isBuffer(content)) throw new TypeError('file fixture must have string/buffer content') break case 'link': case 'symlink': if (typeof content !== 'string') throw new TypeError(type + ' fixture must have string target') break default: throw new Error('invalid fixture type: ' + type) } } get [Symbol.toStringTag] () { return 'Fixture<' + this.type + '>' } // have to gather up symlinks for the end static make (abs, f, symlinks = null) { if (typeof f === 'string' || Buffer.isBuffer(f)) f = new Fixture('file', f) else if (f && typeof f === 'object' && !(f instanceof Fixture)) f = new Fixture('dir', f) else if (!(f instanceof Fixture)) throw new Error('invalid fixture type: ' + f) const isRoot = symlinks === null symlinks = symlinks || {} switch (f.type) { case 'symlink': // have to gather up symlinks for the end, because windows symlinks[abs] = f.content break case 'link': linkSync(resolve(dirname(abs), f.content), abs) break case 'dir': mkdirRecursiveSync(abs) for (const [name, fixture] of Object.entries(f.content)) Fixture.make(`${abs}/${name}`, fixture, symlinks) break case 'file': writeFileSync(abs, f.content) break } // create all those symlinks we were asked for if (isRoot) { for (const [abs, target] of Object.entries(symlinks)) { symlinkSync(target, abs, isDir(abs, target) ? 'junction' : 'file') } } } } // check if a symlink target is a directory const isDir = (abs, target) => { try { return statSync(resolve(dirname(abs), target)).isDirectory() } catch (er) { return false } } module.exports = Fixture