!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_tdfonline/php/3ros/guzzle/guzzle/guzzle/src/Guzzle/Plugin/Md5/   drwxr-xr-x
Free 13.82 GB of 61.93 GB (22.32%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

namespace Guzzle\Plugin\Md5;

use 
Guzzle\Common\Event;
use 
Guzzle\Http\Message\EntityEnclosingRequestInterface;
use 
Symfony\Component\EventDispatcher\EventSubscriberInterface;

/**
 * Listener used to add a ContentMD5 header to the body of a command and adds ContentMD5 validation if the
 * ValidateMD5 option is not set to false on a command
 */
class CommandContentMd5Plugin  implements EventSubscriberInterface
{
    
/** @var string Parameter used to check if the ContentMD5 value is being added */
    
protected $contentMd5Param;

    
/** @var string Parameter used to check if validation should occur on the response */
    
protected $validateMd5Param;

    
/**
     * @param string $contentMd5Param  Parameter used to check if the ContentMD5 value is being added
     * @param string $validateMd5Param Parameter used to check if validation should occur on the response
     */
    
public function __construct($contentMd5Param 'ContentMD5'$validateMd5Param 'ValidateMD5')
    {
        
$this->contentMd5Param $contentMd5Param;
        
$this->validateMd5Param $validateMd5Param;
    }

    public static function 
getSubscribedEvents()
    {
        return array(
'command.before_send' => array('onCommandBeforeSend', -255));
    }

    public function 
onCommandBeforeSend(Event $event)
    {
        
$command $event['command'];
        
$request $command->getRequest();

        
// Only add an MD5 is there is a MD5 option on the operation and it has a payload
        
if ($request instanceof EntityEnclosingRequestInterface && $request->getBody()
            && 
$command->getOperation()->hasParam($this->contentMd5Param)) {
            
// Check if an MD5 checksum value should be passed along to the request
            
if ($command[$this->contentMd5Param] === true) {
                if (
false !== ($md5 $request->getBody()->getContentMd5(truetrue))) {
                    
$request->setHeader('Content-MD5'$md5);
                }
            }
        }

        
// Check if MD5 validation should be used with the response
        
if ($command[$this->validateMd5Param] === true) {
            
$request->addSubscriber(new Md5ValidatorPlugin(truefalse));
        }
    }
}

:: 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: 1.055 ]--