!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

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

Safe-mode: OFF (not secure)

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


Viewing file:     TwoFactorPlugin.php (3.4 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * Two authentication factor handling
 *
 * @package PhpMyAdmin
 */
namespace PhpMyAdmin\Plugins;

use 
PhpMyAdmin\Core;
use 
PhpMyAdmin\Message;
use 
PhpMyAdmin\TwoFactor;

/**
 * Two factor authentication plugin class
 *
 * This is basic implementation which does no
 * additional authentication, subclasses are expected
 * to implement this.
 */
class TwoFactorPlugin
{
    
/**
     * @var string
     */
    
public static $id '';

    
/**
     * Whether to show submit button in form
     */
    
public static $showSubmit true;

    
/**
     * @var TwoFactor
     */
    
protected $_twofactor;

    
/**
     * @var boolean
     */
    
protected $_provided;

    
/**
     * @var string
     */
    
protected $_message;

    
/**
     * Creates object
     *
     * @param TwoFactor $twofactor TwoFactor instance
     */
    
public function __construct(TwoFactor $twofactor)
    {
        
$this->_twofactor $twofactor;
        
$this->_provided false;
        
$this->_message '';
    }

    
/**
     * Returns authentication error message
     *
     * @return string
     */
    
public function getError()
    {
        if (
$this->_provided) {
            if (!empty(
$this->_message)) {
                return 
Message::rawError(
                    
sprintf(__('Two-factor authentication failed: %s'), $this->_message)
                )->
getDisplay();
            }
            return 
Message::rawError(
                
__('Two-factor authentication failed.')
            )->
getDisplay();
        }
        return 
'';
    }

    
/**
     * Checks authentication, returns true on success
     *
     * @return boolean
     */
    
public function check()
    {
        return 
true;
    }

    
/**
     * Renders user interface to enter two-factor authentication
     *
     * @return string HTML code
     */
    
public function render()
    {
        return 
'';
    }

    
/**
     * Renders user interface to configure two-factor authentication
     *
     * @return string HTML code
     */
    
public function setup()
    {
        return 
'';
    }

    
/**
     * Performs backend configuration
     *
     * @return boolean
     */
    
public function configure()
    {
        return 
true;
    }

    
/**
     * Get user visible name
     *
     * @return string
     */
    
public static function getName()
    {
        return 
__('No Two-Factor');
    }

    
/**
     * Get user visible description
     *
     * @return string
     */
    
public static function getDescription()
    {
        return 
__('Login using password only.');
    }

    
/**
     * Return an applicaiton ID
     *
     * Either hostname or hostname with scheme.
     *
     * @param boolean $return_url Whether to generate URL
     *
     * @return string
     */
    
public function getAppId($return_url)
    {
        global 
$PMA_Config;

        
$url $PMA_Config->get('PmaAbsoluteUri');
        
$parsed = [];
        if (!empty(
$url)) {
            
$parsed parse_url($url);
        }
        if (empty(
$parsed['scheme'])) {
            
$parsed['scheme'] = $PMA_Config->isHttps() ? 'https' 'http';
        }
        if (empty(
$parsed['host'])) {
            
$parsed['host'] = Core::getenv('HTTP_HOST');
        }
        if (
$return_url) {
            return 
$parsed['scheme'] . '://' $parsed['host'] . (!empty($parsed['port']) ? ':' $parsed['port'] : '');
        } else {
            return 
$parsed['host'];
        }
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0191 ]--