!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 

uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 

uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) 

Safe-mode: OFF (not secure)

/var/www/html/site/ipanel/app/cms/   drwxr-xr-x
Free 9.32 GB of 93.48 GB (9.97%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     geraBackup.php (1.71 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
    $backupFile 
"backup"."_".date("Ymd")."_".date("Hi").".txt";
    
    
//
    //Abre o arquivo SQL
    //
    
mkdir("../../uploads/backups/".$objectId."/"0777);
    
$fopen fopen("../../uploads/backups/".$objectId."/".$backupFile"w+");
    
    
//
    // Percorre a lista de tabelas da base de dados
    // Conexão realizada com informações do arquvivo config.php Doctrine
    //
    
$dbc mysql_connect(DB_HOSTDB_USERDB_PASSWORD);
    
$sel mysql_select_db(DB_NAME$dbc);
    
$res mysql_list_tables(DB_NAME) or die(mysql_error()); 
    while(
$row mysql_fetch_row($res)){ 
        
$table $row[0]; // cada uma das tabelas 
        
$res2 mysql_query("SHOW CREATE TABLE $table"); 
        while(
$lin =  mysql_fetch_row($res2)){ // Para cada tabela 
        
$linhaAdd.= "-- Criando tabela : $table\n";
        
$linhaAdd.= "$lin[1]\n--Dump de Dados\n";
            
$res3 mysql_query("SELECT * FROM $table"); 
            while(
$r =  mysql_fetch_row($res3)){ // Dump de todos os dados das tabelas 
                
$linhaAdd.="INSERT INTO $table VALUES ('"
                
$linhaAdd.= implode("','",$r); 
                
$linhaAdd.= "')\n"
            } 
        } 
     } 
     
fwrite($fopen$linhaAdd); 
     
fclose($fopen);
     
$backupFileSize $util->getFileSize($backupFile);
     
mysql_close($dbc);
/*
    
    if($_POST['md'] == "Zip"){
    $zip= new zipfile;
    $zip -> addFile($linhaAdd,$ArquivoNovo); //adiciona um arquivo ao zip
    $strzip = $zip->file(); //string contendo o arquivo zip
    $ArquivoZip = "../model/backup/Backup_Muralha"."_".date("dmY").".zip";
    $abre = fopen($ArquivoZip, "w");
    $salva = fwrite($abre, $strzip);
    unlink("../model/backup/".$ArquivoNovo);
         */
?>

:: 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 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0041 ]--