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.47
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 /
@nodelib /
fs.scandir /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
adapters
[ DIR ]
drwxr-xr-x
providers
[ DIR ]
drwxr-xr-x
types
[ DIR ]
drwxr-xr-x
utils
[ DIR ]
drwxr-xr-x
constants.ts
629
B
-rw-r--r--
index.spec.ts
2
KB
-rw-r--r--
index.ts
1.58
KB
-rw-r--r--
settings.spec.ts
940
B
-rw-r--r--
settings.ts
1.18
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : index.spec.ts
import * as assert from 'assert'; import * as fs from 'fs'; import * as rimraf from 'rimraf'; import { scandir, scandirSync, Settings } from '.'; describe('Package', () => { before(() => { rimraf.sync('fixtures'); fs.mkdirSync('fixtures'); fs.writeFileSync('fixtures/file.txt', ''); }); after(() => { rimraf.sync('fixtures'); }); describe('.scandir', () => { it('should work without options or settings', (done) => { scandir('fixtures', (error, entries) => { assert.strictEqual(error, null); assert.ok(entries[0].name); assert.ok(entries[0].path); assert.ok(entries[0].dirent); done(); }); }); it('should work with options', (done) => { scandir('fixtures', { stats: true }, (error, entries) => { assert.strictEqual(error, null); assert.ok(entries[0].name); assert.ok(entries[0].path); assert.ok(entries[0].dirent); assert.ok(entries[0].stats); done(); }); }); it('should work with settings', (done) => { const settings = new Settings({ stats: true }); scandir('fixtures', settings, (error, entries) => { assert.strictEqual(error, null); assert.ok(entries[0].name); assert.ok(entries[0].path); assert.ok(entries[0].dirent); assert.ok(entries[0].stats); done(); }); }); }); describe('.scandirSync', () => { it('should work without options or settings', () => { const actual = scandirSync('fixtures'); assert.ok(actual[0].name); assert.ok(actual[0].path); assert.ok(actual[0].dirent); }); it('should work with options', () => { const actual = scandirSync('fixtures', { stats: true }); assert.ok(actual[0].name); assert.ok(actual[0].path); assert.ok(actual[0].dirent); assert.ok(actual[0].stats); }); it('should work with settings', () => { const settings = new Settings({ stats: true }); const actual = scandirSync('fixtures', settings); assert.ok(actual[0].name); assert.ok(actual[0].path); assert.ok(actual[0].dirent); assert.ok(actual[0].stats); }); }); });
Close