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

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/vendor/ramsey/uuid/src/Provider/Node/   drwxr-xr-x
Free 13.06 GB of 57.97 GB (22.52%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/**
 * This file is part of the ramsey/uuid library
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @copyright Copyright (c) Ben Ramsey <ben@benramsey.com>
 * @license http://opensource.org/licenses/MIT MIT
 */

declare(strict_types=1);

namespace 
Ramsey\Uuid\Provider\Node;

use 
Ramsey\Uuid\Exception\InvalidArgumentException;
use 
Ramsey\Uuid\Provider\NodeProviderInterface;
use 
Ramsey\Uuid\Type\Hexadecimal;

use function 
dechex;
use function 
hexdec;
use function 
str_pad;
use function 
substr;

use const 
STR_PAD_LEFT;

/**
 * StaticNodeProvider provides a static node value with the multicast bit set
 *
 * @link http://tools.ietf.org/html/rfc4122#section-4.5 RFC 4122, ยง 4.5: Node IDs that Do Not Identify the Host
 */
class StaticNodeProvider implements NodeProviderInterface
{
    
/**
     * @var Hexadecimal
     */
    
private $node;

    
/**
     * @param Hexadecimal $node The static node value to use
     */
    
public function __construct(Hexadecimal $node)
    {
        if (
strlen($node->toString()) > 12) {
            throw new 
InvalidArgumentException(
                
'Static node value cannot be greater than 12 hexadecimal characters'
            
);
        }

        
$this->node $this->setMulticastBit($node);
    }

    public function 
getNode(): Hexadecimal
    
{
        return 
$this->node;
    }

    
/**
     * Set the multicast bit for the static node value
     */
    
private function setMulticastBit(Hexadecimal $node): Hexadecimal
    
{
        
$nodeHex str_pad($node->toString(), 12'0'STR_PAD_LEFT);
        
$firstOctet substr($nodeHex02);

        
$firstOctet str_pad(
            
dechex(hexdec($firstOctet) | 0x01),
            
2,
            
'0',
            
STR_PAD_LEFT
        
);

        return new 
Hexadecimal($firstOctet substr($nodeHex2));
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

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