!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/ircmaxell/security-lib/test/Unit/Core/   drwxrwxr-x
Free 11.5 GB of 61.93 GB (18.56%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


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

use SecurityLib\BaseConverter;

class 
Unit_Core_BaseConverterTest extends PHPUnit_Framework_TestCase {

    public static function 
provideConvertFromBinary() {
        
$return = array(
            array(
''''''),
            array(
chr(0), '012''0'),
            array(
chr(9), '01''1001'),
            array(
chr(1) . chr(2) . chr(3), '0123456789''66051'),
        );
        return 
$return;
    }

    public static function 
provideConvertToFromBinary() {
        
$return = array();
        
$str chr(1) . chr(0);
        for (
$i 2$i 256$i++) {
             
$str .= chr($i);
             
$return[] = array($strstrrev($str));
        }
        return 
$return;
    }

    
/**
     * @covers SecurityLib\BaseConverter::convertFromBinary
     * @covers SecurityLib\BaseConverter::baseConvert
     * @dataProvider provideConvertFromBinary
     */
    
public function testConvertFromBinary($from$to$expect) {
        
$result BaseConverter::convertFromBinary($from$to);
        
$this->assertEquals($expect$result);
    }

    
/**
     * @covers SecurityLib\BaseConverter::convertToBinary
     * @covers SecurityLib\BaseConverter::baseConvert
     * @dataProvider provideConvertFromBinary
     */
    
public function testConvertToBinary($expect$from$str) {
        
$result BaseConverter::convertToBinary($str$from);
        
$result ltrim($resultchr(0));
        
$expect ltrim($expectchr(0));
        
$this->assertEquals($expect$result);
    }

    
/**
     * @covers SecurityLib\BaseConverter::convertToBinary
     * @covers SecurityLib\BaseConverter::convertFromBinary
     * @covers SecurityLib\BaseConverter::baseConvert
     * @dataProvider provideConvertToFromBinary
     */
    
public function testConvertToAndFromBinary($str$from) {
return 
false;
        
$result1 BaseConverter::convertFromBinary($str$from);
        
$result BaseConverter::convertToBinary($result1$from);
        
$this->assertEquals($str$result);
    }

    
/**
     * @covers SecurityLib\BaseConverter::baseConvert
     * @expectedException InvalidArgumentException
     */
    
public function testBaseConvertFailure() {
        
BaseConverter::baseConvert(array(1), 11);
    }
}

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