!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/apex_led/php/vendor/ircmaxell/random-lib/lib/RandomLib/Source/   drwxrwxr-x
Free 11.55 GB of 61.93 GB (18.65%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     MicroTime.php (4.09 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * The RandomLib library for securely generating random numbers and strings in PHP
 *
 * @author     Anthony Ferrara <ircmaxell@ircmaxell.com>
 * @copyright  2011 The Authors
 * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
 * @version    Build @@version@@
 */

/**
 * The Microtime Random Number Source
 *
 * This uses the current micro-second (looped several times) for a **very** weak
 * random number source.  This is only useful when combined with several other
 * stronger sources
 *
 * PHP version 5.3
 *
 * @category   PHPCryptLib
 * @package    Random
 * @subpackage Source
 *
 * @author     Anthony Ferrara <ircmaxell@ircmaxell.com>
 * @copyright  2011 The Authors
 * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
 *
 * @version    Build @@version@@
 */
namespace RandomLib\Source;

use 
SecurityLib\Strength;
use 
SecurityLib\Util;

/**
 * The Microtime Random Number Source
 *
 * This uses the current micro-second (looped several times) for a **very** weak
 * random number source.  This is only useful when combined with several other
 * stronger sources
 *
 * @category   PHPCryptLib
 * @package    Random
 * @subpackage Source
 *
 * @author     Anthony Ferrara <ircmaxell@ircmaxell.com>
 * @codeCoverageIgnore
 */
final class MicroTime extends \RandomLib\AbstractSource
{

    
/**
     * A static counter to ensure unique hashes and prevent state collisions
     *
     * @var int A counter
     */
    
private static $counter null;

    
/**
     * The current state of the random number generator.
     *
     * @var string The state of the PRNG
     */
    
private static $state '';

    public function 
__construct()
    {
        
$state self::$state;
        if (
function_exists('posix_times')) {
            
$state .= serialize(posix_times());
        }
        if (!
defined('HHVM_VERSION') && function_exists('zend_thread_id')) {
            
$state .= zend_thread_id();
        }
        if (
function_exists('hphp_get_thread_id')) {
            
$state .= hphp_get_thread_id();
        }
        
$state      .= getmypid() . memory_get_usage();
        
$state      .= serialize($_ENV);
        
$state      .= serialize($_SERVER);
        
$state      .= count(debug_backtrace(false));
        
self::$state hash('sha512'$statetrue);
        if (
is_null(self::$counter)) {
            list(, 
self::$counter) = unpack("i"Util::safeSubstr(self::$state04));
            
$seed $this->generate(Util::safeStrlen(dechex(PHP_INT_MAX)));
            list(, 
self::$counter) = unpack("i"$seed);
        }
    }

    
/**
     * Generate a random string of the specified size
     *
     * @param int $size The size of the requested random string
     *
     * @return string A string of the requested size
     */
    
public function generate($size)
    {
        
$result      '';
        
$seed        microtime() . memory_get_usage();
        
self::$state hash('sha512'self::$state $seedtrue);
        
/**
         * Make the generated randomness a bit better by forcing a GC run which
         * should complete in a indeterminate amount of time, hence improving
         * the strength of the randomness a bit. It's still not crypto-safe,
         * but at least it's more difficult to predict.
         */
        
gc_collect_cycles();
        for (
$i 0$i $size$i += 8) {
            
$seed self::$state .
                    
microtime() .
                    
pack('Ni'$iself::counter());
            
self::$state hash('sha512'$seedtrue);
            
/**
             * We only use the first 8 bytes here to prevent exposing the state
             * in its entirety, which could potentially expose other random
             * generations in the future (in the same process)...
             */
            
$result .= Util::safeSubstr(self::$state08);
        }

        return 
Util::safeSubstr($result0$size);
    }

    private static function 
counter()
    {
        if (
self::$counter >= PHP_INT_MAX) {
            
self::$counter = -PHP_INT_MAX 1;
        } else {
            
self::$counter++;
        }

        return 
self::$counter;
    }
}

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