[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
wp-optimize
/
vendor
/
rosell-dk
/
exec-with-fallback
/
src
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
π Availability.php
1,074 B
SET
[ EDIT ]
|
[ DEL ]
π ExecWithFallback.php
4,503 B
SET
[ EDIT ]
|
[ DEL ]
π ExecWithFallbackNoMercy.php
1,855 B
SET
[ EDIT ]
|
[ DEL ]
π POpen.php
1,575 B
SET
[ EDIT ]
|
[ DEL ]
π Passthru.php
1,613 B
SET
[ EDIT ]
|
[ DEL ]
π ProcOpen.php
2,105 B
SET
[ EDIT ]
|
[ DEL ]
π ShellExec.php
2,139 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: ExecWithFallbackNoMercy.php
<?php namespace ExecWithFallback; /** * Execute command with exec(), open_proc() or whatever available * * @package ExecWithFallback * @author BjΓΈrn Rosell <it@rosell.dk> */ class ExecWithFallbackNoMercy { /** * Execute. - A substitute for exec() * * Same signature and results as exec(): https://www.php.net/manual/en/function.exec.php * * This is our hardcore version of our exec(). It does not merely throw an Exception, if * no methods are available. It calls exec(). * This ensures exactly same behavior as normal exec() - the same error is thrown. * You might want that. But do you really? * DANGER: On some systems, calling a disabled exec() results in a fatal (non-catchable) error. * * @param string $command The command to execute * @param string &$output (optional) * @param int &$result_code (optional) * * @return string | false The last line of output or false in case of failure * @throws \Exception|\Error If no methods are available. Note: On some systems, it is FATAL! */ public static function exec($command, &$output = null, &$result_code = null) { foreach (self::$methods as $method) { if (self::functionEnabled($method)) { if (func_num_args() >= 3) { if ($method == 'shell_exec') { continue; } $result = self::runExec($method, $command, $output, $result_code); } else { $result = self::runExec($method, $command, $output); } if ($result !== false) { return $result; } } } if (isset($result) && ($result === false)) { return false; } // MIGHT THROW FATAL! return exec($command, $output, $result_code); } }