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 /
@nodelib /
fs.walk /
out /
readers /
[ HOME SHELL ]
Name
Size
Permission
Action
async.d.ts
1.12
KB
-rw-r--r--
async.d.ts.map
1.07
KB
-rw-r--r--
async.js
3.13
KB
-rw-r--r--
async.spec.d.ts
52
B
-rw-r--r--
async.spec.d.ts.map
125
B
-rw-r--r--
async.spec.js
7.86
KB
-rw-r--r--
common.d.ts
499
B
-rw-r--r--
common.d.ts.map
559
B
-rw-r--r--
common.js
1.06
KB
-rw-r--r--
common.spec.d.ts
53
B
-rw-r--r--
common.spec.d.ts.map
127
B
-rw-r--r--
common.spec.js
4.07
KB
-rw-r--r--
reader.d.ts
245
B
-rw-r--r--
reader.d.ts.map
306
B
-rw-r--r--
reader.js
369
B
-rw-r--r--
reader.spec.d.ts
53
B
-rw-r--r--
reader.spec.d.ts.map
127
B
-rw-r--r--
reader.spec.js
912
B
-rw-r--r--
sync.d.ts
521
B
-rw-r--r--
sync.d.ts.map
560
B
-rw-r--r--
sync.js
1.9
KB
-rw-r--r--
sync.spec.d.ts
51
B
-rw-r--r--
sync.spec.d.ts.map
123
B
-rw-r--r--
sync.spec.js
4.69
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : common.spec.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const assert = require("assert"); const path = require("path"); const settings_1 = require("../settings"); const tests = require("../tests"); const common = require("./common"); describe('Readers → Common', () => { describe('.isFatalError', () => { it('should return true when filter is not defined', () => { const settings = new settings_1.default(); const actual = common.isFatalError(settings, tests.EPERM_ERRNO); assert.ok(actual); }); it('should return true when the error cannot be suppressed', () => { const settings = new settings_1.default({ errorFilter: (error) => error.code === 'ENOENT' }); const actual = common.isFatalError(settings, tests.EPERM_ERRNO); assert.ok(actual); }); it('should return false when the error can be suppressed', () => { const settings = new settings_1.default({ errorFilter: (error) => error.code === 'EPERM' }); const actual = common.isFatalError(settings, tests.EPERM_ERRNO); assert.ok(!actual); }); }); describe('.isAppliedFilter', () => { it('should return true when the filter is not defined', () => { const settings = new settings_1.default(); const entry = tests.buildFakeFileEntry(); const actual = common.isAppliedFilter(settings.entryFilter, entry); assert.ok(actual); }); it('should return true when the entry will be applied', () => { const settings = new settings_1.default({ entryFilter: (entry) => entry.name === 'fake.txt' }); const fakeEntry = tests.buildFakeFileEntry(); const actual = common.isAppliedFilter(settings.entryFilter, fakeEntry); assert.ok(actual); }); it('should return false when the entry will be skipped', () => { const settings = new settings_1.default({ entryFilter: (entry) => entry.name !== 'fake.txt' }); const fakeEntry = tests.buildFakeFileEntry(); const actual = common.isAppliedFilter(settings.entryFilter, fakeEntry); assert.ok(!actual); }); }); describe('.replacePathSegmentSeparator', () => { it('should replace path segment separator', () => { const filepath = path.join('directory', 'file.txt'); const expected = 'directory_file.txt'; const actual = common.replacePathSegmentSeparator(filepath, '_'); assert.strictEqual(actual, expected); }); }); describe('.joinPathSegments', () => { it('should return concatenated string', () => { const expected = 'a&b'; const actual = common.joinPathSegments('a', 'b', '&'); assert.strictEqual(actual, expected); }); it('should return second part of path when the first path is an empty string', () => { const expected = 'b'; const actual = common.joinPathSegments('', 'b', '&'); assert.strictEqual(actual, expected); }); it('should return correct string when the first segment ens with the separator symbol', () => { // Unix assert.strictEqual(common.joinPathSegments('/', 'a', '/'), '/a'); assert.strictEqual(common.joinPathSegments('//', 'a', '/'), '//a'); assert.strictEqual(common.joinPathSegments('/a/', 'b', '/'), '/a/b'); // Windows assert.strictEqual(common.joinPathSegments('C:/', 'Users', '/'), 'C:/Users'); assert.strictEqual(common.joinPathSegments('C:\\', 'Users', '\\'), 'C:\\Users'); assert.strictEqual(common.joinPathSegments('//?/C:/', 'Users', '/'), '//?/C:/Users'); assert.strictEqual(common.joinPathSegments('\\\\?\\C:\\', 'Users', '\\'), '\\\\?\\C:\\Users'); }); }); });
Close