Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.218.60.55
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-musonza /
node_modules /
node-gyp /
test /
Delete
Unzip
Name
Size
Permission
Date
Action
fixtures
[ DIR ]
drwxr-xr-x
2021-02-04 21:24
docker.sh
6.48
KB
-rwxr-xr-x
1985-10-26 08:15
process-exec-sync.js
3.05
KB
-rw-r--r--
1985-10-26 08:15
simple-proxy.js
643
B
-rw-r--r--
1985-10-26 08:15
test-addon.js
3.35
KB
-rw-r--r--
1985-10-26 08:15
test-configure-python.js
1.94
KB
-rw-r--r--
1985-10-26 08:15
test-download.js
2.51
KB
-rw-r--r--
1985-10-26 08:15
test-find-accessible-sync.js
2.52
KB
-rw-r--r--
1985-10-26 08:15
test-find-node-directory.js
4.29
KB
-rw-r--r--
1985-10-26 08:15
test-find-python.js
8.53
KB
-rw-r--r--
1985-10-26 08:15
test-install.js
705
B
-rw-r--r--
1985-10-26 08:15
test-options.js
713
B
-rw-r--r--
1985-10-26 08:15
test-process-release.js
21.11
KB
-rw-r--r--
1985-10-26 08:15
Save
Rename
'use strict' var test = require('tape') var path = require('path') var requireInject = require('require-inject') var configure = requireInject('../lib/configure', { 'graceful-fs': { 'closeSync': function (fd) { return undefined }, 'openSync': function (path) { if (readableFiles.some(function (f) { return f === path} )) { return 0 } else { var error = new Error('ENOENT - not found') throw error } } } }) var dir = path.sep + 'testdir' var readableFile = 'readable_file' var anotherReadableFile = 'another_readable_file' var readableFileInDir = 'somedir' + path.sep + readableFile var readableFiles = [ path.resolve(dir, readableFile), path.resolve(dir, anotherReadableFile), path.resolve(dir, readableFileInDir) ] test('find accessible - empty array', function (t) { t.plan(1) var candidates = [] var found = configure.test.findAccessibleSync('test', dir, candidates) t.strictEqual(found, undefined) }) test('find accessible - single item array, readable', function (t) { t.plan(1) var candidates = [ readableFile ] var found = configure.test.findAccessibleSync('test', dir, candidates) t.strictEqual(found, path.resolve(dir, readableFile)) }) test('find accessible - single item array, readable in subdir', function (t) { t.plan(1) var candidates = [ readableFileInDir ] var found = configure.test.findAccessibleSync('test', dir, candidates) t.strictEqual(found, path.resolve(dir, readableFileInDir)) }) test('find accessible - single item array, unreadable', function (t) { t.plan(1) var candidates = [ 'unreadable_file' ] var found = configure.test.findAccessibleSync('test', dir, candidates) t.strictEqual(found, undefined) }) test('find accessible - multi item array, no matches', function (t) { t.plan(1) var candidates = [ 'non_existent_file', 'unreadable_file' ] var found = configure.test.findAccessibleSync('test', dir, candidates) t.strictEqual(found, undefined) }) test('find accessible - multi item array, single match', function (t) { t.plan(1) var candidates = [ 'non_existent_file', readableFile ] var found = configure.test.findAccessibleSync('test', dir, candidates) t.strictEqual(found, path.resolve(dir, readableFile)) }) test('find accessible - multi item array, return first match', function (t) { t.plan(1) var candidates = [ 'non_existent_file', anotherReadableFile, readableFile ] var found = configure.test.findAccessibleSync('test', dir, candidates) t.strictEqual(found, path.resolve(dir, anotherReadableFile)) })