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 fs = require('graceful-fs') var child_process = require('child_process') var addonPath = path.resolve(__dirname, 'node_modules', 'hello_world') var nodeGyp = path.resolve(__dirname, '..', 'bin', 'node-gyp.js') var execFileSync = child_process.execFileSync || require('./process-exec-sync') var execFile = child_process.execFile function runHello() { var testCode = "console.log(require('hello_world').hello())" return execFileSync(process.execPath, ['-e', testCode], { cwd: __dirname }).toString() } function getEncoding() { var code = 'import locale;print locale.getdefaultlocale()[1]' return execFileSync('python', ['-c', code]).toString().trim() } function checkCharmapValid() { var data try { data = execFileSync('python', ['fixtures/test-charmap.py'], { cwd: __dirname }) } catch (err) { return false } var lines = data.toString().trim().split('\n') return lines.pop() === 'True' } test('build simple addon', function (t) { t.plan(3) // Set the loglevel otherwise the output disappears when run via 'npm test' var cmd = [nodeGyp, 'rebuild', '-C', addonPath, '--loglevel=verbose'] var proc = execFile(process.execPath, cmd, function (err, stdout, stderr) { var logLines = stderr.toString().trim().split(/\r?\n/) var lastLine = logLines[logLines.length-1] t.strictEqual(err, null) t.strictEqual(lastLine, 'gyp info ok', 'should end in ok') t.strictEqual(runHello().trim(), 'world') }) proc.stdout.setEncoding('utf-8') proc.stderr.setEncoding('utf-8') }) test('build simple addon in path with non-ascii characters', function (t) { t.plan(1) if (!checkCharmapValid()) { return t.skip('python console app can\'t encode non-ascii character.') } var testDirNames = { 'cp936': '文件夹', 'cp1252': 'Latīna', 'cp932': 'フォルダ' } // Select non-ascii characters by current encoding var testDirName = testDirNames[getEncoding()] // If encoding is UTF-8 or other then no need to test if (!testDirName) { return t.skip('no need to test') } t.plan(3) var data, configPath = path.join(addonPath, 'build', 'config.gypi') try { data = fs.readFileSync(configPath, 'utf8') } catch (err) { t.error(err) return } var config = JSON.parse(data.replace(/\#.+\n/, '')) var nodeDir = config.variables.nodedir var testNodeDir = path.join(addonPath, testDirName) // Create symbol link to path with non-ascii characters try { fs.symlinkSync(nodeDir, testNodeDir, 'dir') } catch (err) { switch (err.code) { case 'EEXIST': break case 'EPERM': t.error(err, 'Please try to running console as an administrator') return default: t.error(err) return } } var cmd = [nodeGyp, 'rebuild', '-C', addonPath, '--loglevel=verbose', '-nodedir=' + testNodeDir] var proc = execFile(process.execPath, cmd, function (err, stdout, stderr) { try { fs.unlink(testNodeDir) } catch (err) { t.error(err) } var logLines = stderr.toString().trim().split(/\r?\n/) var lastLine = logLines[logLines.length-1] t.strictEqual(err, null) t.strictEqual(lastLine, 'gyp info ok', 'should end in ok') t.strictEqual(runHello().trim(), 'world') }) proc.stdout.setEncoding('utf-8') proc.stderr.setEncoding('utf-8') })