Linux host2.homegym.sg 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64
Apache
Server IP : 159.223.38.192 & Your IP : 159.223.38.192
Domains : 20 Domain
User : eachadea
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Lock Shell
Lock File++
Readme
/
home /
eachadea /
public_html /
m2 /
vendor /
bin /
Delete
Unzip
Name
Size
Permission
Date
Action
codecept
83
B
-rwxrwxr-x
2021-05-28 17:43
composer
1.72
KB
-rwxrwxr-x
2021-04-27 11:10
cssmin
754
B
-rwxrwxr-x
2018-01-15 15:26
jp.php
2.36
KB
-rwxrwxr-x
2020-07-31 21:01
jsonlint
2.94
KB
-rwxrwxr-x
2020-11-11 09:19
lessc
3.95
KB
-rwxrwxr-x
2019-11-06 18:30
mftf
1.38
KB
-rwxrwxr-x
2021-05-05 15:01
pdepend
2.77
KB
-rwxrwxr-x
2020-02-08 12:06
php-cs-fixer
2.92
KB
-rwxrwxr-x
2020-12-17 16:34
php-parse
6.1
KB
-rwxrwxr-x
2020-04-10 16:34
phpcbf
572
B
-rwxrwxr-x
2020-10-23 02:01
phpcpd
1.33
KB
-rwxrwxr-x
2020-02-22 06:03
phpcs
559
B
-rwxrwxr-x
2020-10-23 02:01
phpmd
1.89
KB
-rwxrwxr-x
2020-09-23 22:06
phpstan
14.21
MB
-rwxrwxr-x
2020-05-05 12:55
phpstan.phar
14.21
MB
-rwxrwxr-x
2020-05-05 12:55
phpunit
1.4
KB
-rwxrwxr-x
2020-05-22 13:54
templatemap_generator.php
4.61
KB
-rwxrwxr-x
2020-12-15 14:57
validate-json
6.66
KB
-rwxrwxr-x
2020-05-27 16:41
yaml-lint
1.12
KB
-rwxrwxr-x
2021-06-06 09:51
Save
Rename
#!/usr/bin/env php <?php if (file_exists(__DIR__ . '/../vendor/autoload.php')) { require __DIR__ . '/../vendor/autoload.php'; } elseif (file_exists(__DIR__ . '/../../../autoload.php')) { require __DIR__ . '/../../../autoload.php'; } elseif (file_exists(__DIR__ . '/../autoload.php')) { require __DIR__ . '/../autoload.php'; } else { throw new RuntimeException('Unable to locate autoload.php file.'); } use JmesPath\Env; use JmesPath\DebugRuntime; $description = <<<EOT Runs a JMESPath expression on the provided input or a test case. Provide the JSON input and expression: echo '{}' | jp.php expression Or provide the path to a compliance script, a suite, and test case number: jp.php --script path_to_script --suite test_suite_number --case test_case_number [expression] EOT; $args = []; $currentKey = null; for ($i = 1, $total = count($argv); $i < $total; $i++) { if ($i % 2) { if (substr($argv[$i], 0, 2) == '--') { $currentKey = str_replace('--', '', $argv[$i]); } else { $currentKey = trim($argv[$i]); } } else { $args[$currentKey] = $argv[$i]; $currentKey = null; } } $expression = $currentKey; if (isset($args['file']) || isset($args['suite']) || isset($args['case'])) { if (!isset($args['file']) || !isset($args['suite']) || !isset($args['case'])) { die($description); } // Manually run a compliance test $path = realpath($args['file']); file_exists($path) or die('File not found at ' . $path); $json = json_decode(file_get_contents($path), true); $set = $json[$args['suite']]; $data = $set['given']; if (!isset($expression)) { $expression = $set['cases'][$args['case']]['expression']; echo "Expects\n=======\n"; if (isset($set['cases'][$args['case']]['result'])) { echo json_encode($set['cases'][$args['case']]['result'], JSON_PRETTY_PRINT) . "\n\n"; } elseif (isset($set['cases'][$args['case']]['error'])) { echo "{$set['cases'][$argv['case']]['error']} error\n\n"; } else { echo "NULL\n\n"; } } } elseif (isset($expression)) { // Pass in an expression and STDIN as a standalone argument $data = json_decode(stream_get_contents(STDIN), true); } else { die($description); } $runtime = new DebugRuntime(Env::createRuntime()); $runtime($expression, $data);