!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/vendor/paragonie/random_compat/other/   drwxr-xr-x
Free 13.43 GB of 61.93 GB (21.68%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     build_phar.php (1.59 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
$dist 
dirname(__DIR__).'/dist';
if (!
is_dir($dist)) {
    
mkdir($dist0755);
}
if (
file_exists($dist.'/random_compat.phar')) {
    
unlink($dist.'/random_compat.phar');
}
$phar = new Phar(
    
$dist.'/random_compat.phar',
    
FilesystemIterator::CURRENT_AS_FILEINFO | \FilesystemIterator::KEY_AS_FILENAME,
    
'random_compat.phar'
);
rename(
    
dirname(__DIR__).'/lib/random.php'
    
dirname(__DIR__).'/lib/index.php'
);
$phar->buildFromDirectory(dirname(__DIR__).'/lib');
rename(
    
dirname(__DIR__).'/lib/index.php'
    
dirname(__DIR__).'/lib/random.php'
);

/**
 * If we pass an (optional) path to a private key as a second argument, we will
 * sign the Phar with OpenSSL.
 * 
 * If you leave this out, it will produce an unsigned .phar!
 */
if ($argc 1) {
    if (!@
is_readable($argv[1])) {
        echo 
'Could not read the private key file:'$argv[1], "\n";
        exit(
255);
    }
    
$pkeyFile file_get_contents($argv[1]);
    
    
$private openssl_get_privatekey($pkeyFile);
    if (
$private !== false) {
        
$pkey '';
        
openssl_pkey_export($private$pkey);
        
$phar->setSignatureAlgorithm(Phar::OPENSSL$pkey);
        
        
/**
         * Save the corresponding public key to the file
         */
        
if (!@is_readable($dist.'/random_compat.phar.pubkey')) {
            
$details openssl_pkey_get_details($private);
            
file_put_contents(
                
$dist.'/random_compat.phar.pubkey',
                
$details['key']
            );
        }
    } else {
        echo 
'An error occurred reading the private key from OpenSSL.'"\n";
        exit(
255);
    }
}

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