!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_tdfonline/proyectos/toba_testing/php/testing/test_varios/   drwxr-xr-x
Free 14.23 GB of 61.93 GB (22.98%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     test_sql.php (2.03 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

class test_sql extends test_toba
{

    function 
get_descripcion()
    {
        return 
"Manipulación de sentencias SQL";
    }

    function 
consultar_sql($sql)
    {
        try {
            
toba::db()->consultar($sql);
            
$this->pass();
        } catch (
toba_error $e) {
            
$this->fail($e->getMessage());
        }
    }

    function 
test_sin_where()
    {
        
$where = array();
        
$sql 'SELECT 1 FROM apex_instancia';
        
$sql sql_concatenar_where($sql$where);
        
$this->consultar_sql($sql);
    }
    
    function 
test_where_existente()
    {
        
$where = array('2=2''3=3');
        
$sql 'SELECT 1 FROM apex_instancia WHERE 1=1';
        
$sql sql_concatenar_where($sql$where);
        
$this->consultar_sql($sql);        
    }
    
    function 
test_varios_where_existentes()
    {
        
$where = array('3=3''4=4');
        
$sql 'SELECT 1 FROM apex_instancia WHERE 1=1 AND 2=2';
        
$sql sql_concatenar_where($sql$where);
        
$this->consultar_sql($sql);        
    }    

    function 
test_where_espaciados()
    {
        
$where = array('3=3''4=4');
        
$sql 'SELECT 1 FROM apex_instancia WHERE 1 = 1 AND 2 = 2';
        
$sql sql_concatenar_where($sql$where);
        
$this->consultar_sql($sql);        
    }    


    
//------------------------ CON ORDER --------------------------------
    
    
function test_sin_where_con_order()
    {
        
$where = array();
        
$sql 'SELECT 1 FROM apex_instancia ORDER BY 1';
        
$sql sql_concatenar_where($sql$where);
        
$this->consultar_sql($sql);        
    }
        
    
    function 
test_where_existente_con_order()
    {
        
$where = array('2=2''3=3');
        
$sql 'SELECT 1 FROM apex_instancia WHERE 1=1 ORDER BY 1';
        
$sql sql_concatenar_where($sql$where);
        
$this->consultar_sql($sql);        
    }    
    
    function 
test_varios_where_existentes_con_order()
    {
        
$where = array('3=3''4=4');
        
$sql 'SELECT 1,2 FROM apex_instancia WHERE 1=1 AND 2=2 ORDER BY 1,2';
        
$sql sql_concatenar_where($sql$where);
        
$this->consultar_sql($sql);        
    }        
    
    function 
test_varios_where_espaciados_con_order()
    {
        
$where = array('3=3''4=4');
        
$sql 'SELECT 1,2 FROM apex_instancia WHERE 1 = 1 AND 2 = 2 ORDER BY 1,2';
        
$sql sql_concatenar_where($sql$where);
        
$this->consultar_sql($sql);        
    }
    
}

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.6027 ]--