!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\portel_dama\administracion\Copia de clases_herramientas\   drwxrwxrwx
Free 7.96 GB of 239.26 GB (3.33%)
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:     class_consulta_sql.php (2.46 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
class Select {
   var 
$QUERY;
   var 
$NUMERO_CAMPOS;
   var 
$NUMERO_REGISTROS;
   var 
$VALORES;
   
   function 
Select($query$numero_campos$inicio$distancia
   
// Consulta para bases de datos Mysql
   
{
       
$this->QUERY $query;
       
$this->NUMERO_CAMPOS $numero_campos;
       
$this->DISTANCIA $distancia;
       
$this->INICIO $inicio;
       
       if (
$this->DISTANCIA != 0) {
               
$this->QUERY $this->QUERY " limit " $this->INICIO "," $this->DISTANCIA;        
       }
       
$this->INICIO $this->INICIO $this->DISTANCIA;
       
       
/////////////////////////////////////
       
include('conect.php');
       
$consul $this->QUERY;
       
       
$k "";
       
$p explode(" ",$consul);
       foreach(
$p as $piece)
       {
               
// Que sepa si un nombre SQL con _        
            
$u substr_count ($piece"_");
            
            if (
$u != 0) {
                
                
// Que sepa si es un nombre con .
                
$b substr_count ($piece".");
                if (
$b != 0) {
                    
$v explode(".",$piece);
                }else{
                    
$v[0] = $piece;
                }
                
                
// Que compare con tablas
                
foreach($tables_portel as $t_p)
                {
                    if (
$v[0] == $t_p) {
                    
                        
$a explode("_",$piece);
                        
$o substr_count ($a[0], "(");
                        if (
$o != 0) {
                            
$m explode("(",$a[0]);
                            
$a[0] = $m[0] . "(" $prefix $m[1];
                        }else{
                            
$a[0] = $prefix $a[0];
                        }
                        
$n_piece $a[0];
                        
$h 0;
                        foreach (
$a as $d) {
                            if (
$h != 0) {
                                
$n_piece $n_piece "_" $d
                            }
                            
$piece $n_piece;
                            
$h++;
                        }
                    }
                    
//////////
                
}

            }
            
            
$k $k " " $piece;
       }
       
$consul $k;
       
//echo $prefix;
       //echo $consul;
       
$result mysql_query($consul,$db);
       
       
$c 0;
       
// 1. Recuperación del ID para INSERT
       
if ($this->NUMERO_CAMPOS == "ins_") {
               
$this->LAST_ID mysql_insert_id();
            
$c 1;        
       }
       
       
// 2. Recuperación de datos para UPDATE
       
if ($this->NUMERO_CAMPOS == "edi_") {
            
$c 1;        
       }
       
       
// 3. Recuperación de datos para UPDATE
       
if ($this->NUMERO_CAMPOS == "del_") {
            
$c 1;        
       }
       
       
// 3. Recuperación de datos, solo para SELECT
       
if ($c == 0) {
       
           
$this->NUMERO_REGISTROS = @mysql_num_rows($result);
           
$e 0;
            while (
$myrow = @mysql_fetch_array($result))
                { 
                    for (
$i 0$i $this->NUMERO_CAMPOS$i++) {
                        
$this->RESULTADO[$e][$i] = $myrow[$i];
                    }
                
$e++;
                }
        }
   }

}
?>                      

:: 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.0156 ]--