!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/lampp/phpmyadmin/libraries/classes/   drwxr-xr-x
Free 13.79 GB of 61.93 GB (22.27%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

declare(strict_types=1);

namespace 
PhpMyAdmin;

use function 
__;
use function 
is_scalar;
use function 
preg_match;
use function 
strlen;

/**
 * URL redirector to avoid leaking Referer with some sensitive information.
 */
final class UrlRedirector
{
    
/**
     * @psalm-return never
     */
    
public static function redirect(): void
    
{
        global 
$containerBuilder$dbi;

        
// Load database service because services.php is not available here
        
$dbi DatabaseInterface::load();
        
$containerBuilder->set(DatabaseInterface::class, $dbi);

        
// Only output the http headers
        
$response ResponseRenderer::getInstance();
        
$response->getHeader()->sendHttpHeaders();
        
$response->disable();

        if (
            ! isset(
$_GET['url']) || ! is_scalar($_GET['url']) || strlen((string) $_GET['url']) === 0
            
|| ! preg_match('/^https:\/\/[^\n\r]*$/', (string) $_GET['url'])
            || ! 
Core::isAllowedDomain((string) $_GET['url'])
        ) {
            
Core::sendHeaderLocation('./');

            exit;
        }

        
/**
         * JavaScript redirection is necessary. Because if header() is used then web browser sometimes does not change
         * the HTTP_REFERER field and so with old URL as Referer, token also goes to external site.
         *
         * @var Template $template
         */
        
$template $containerBuilder->get('template');
        echo 
$template->render('javascript/redirect', [
            
'url' => Sanitize::escapeJsString((string) $_GET['url']),
        ]);
        
// Display redirecting msg on screen.
        // Do not display the value of $_GET['url'] to avoid showing injected content
        
echo __('Taking you to the target site.');

        exit;
    }
}

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