!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/lampp/lib/php/test/Net_IPv4/tests/   drwxr-xr-x
Free 13.65 GB of 61.93 GB (22.04%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     IPv4Test.php (1.5 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
require_once 'PHPUnit/Framework/TestCase.php';
require_once 
'Net/IPv4.php';
require_once 
'MyIPv4.php';

class 
IPv4Test extends PHPUnit_Framework_TestCase {
    protected 
$net;
    protected 
$quadIPs;
    protected 
$hexIPs;
    
    protected function 
setUp() {
        
$this->net = new Net_IPv4();
        
$this->quadIPs = array('10.0.0.15' => 167772175'172.16.0.155' => 2886729883,
        
'192.168.0.255' => 3232235775'1.2.3.4' => 16909060'1.0.0.0' => 16777216,
        
'255.255.255.255' => 4294967295'127.0.0.1' => 2130706433);
        
$this->hexIPs = array('0a00000f''ac10009b''c0a800ff''01020304'
        
'01000000''ffffffff''7f000001');
    }
    
    protected function 
tearDown() {
        
$this->net null;
    }
    
    public function 
test_atoh() {
        foreach (
$this->quadIPs as $ip => $v) {
            
$this->assertTrue(Net_IPv4::atoh($ip) === MyIPv4::atoh($ip));
        }
    }
    
    public function 
test_htoa() {
        foreach (
$this->hexIPs as $ip => $v) {
            
$this->assertTrue(Net_IPv4::htoa($ip) === MyIPv4::htoa($ip));
        }
    }
    
    public function 
test_validateIP() {
        foreach (
$this->quadIPs as $ip => $v) {
            
$this->assertTrue(Net_IPv4::validateIP($ip) === MyIPv4::validateIP($ip));
        }
    }
    public function 
test_ip2double() {
        foreach (
$this->quadIPs as $k => $v) {
            
$this->assertTrue(Net_IPv4::ip2double($k) == $v);
        }
    }
    
    
}

    
?>

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