!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-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC
2025 x86_64
 

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

Safe-mode: OFF (not secure)

/home/picotech/domains/test.sms.picotech.app/public_html/vendor/alexandr-mironov/php8-smpp/src/   drwxr-xr-x
Free 23.52 GB of 117.98 GB (19.94%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

declare(strict_types=1);


namespace 
Smpp;

use 
Psr\Log\LoggerInterface;
use 
Psr\Log\NullLogger;
use 
Smpp\Configs\SmppConfig;
use 
Smpp\Configs\SocketTransportConfig;
use 
Smpp\Contracts\Transport\TransportInterface;
use 
Smpp\Transport\SCTPTransport;
use 
Smpp\Transport\SocketTransport;
use 
Smpp\Utils\Network\DSNParser;

class 
ClientBuilder
{
    
/**
     * @var LoggerInterface
     */
    
private LoggerInterface $logger;
    
/**
     * @var TransportInterface
     */
    
private TransportInterface $transport;
    
/**
     * @var SmppConfig
     */
    
private SmppConfig $config;
    
/**
     * @var string
     */
    
private string $systemId;
    
/**
     * @var string
     */
    
private string $password;

    final private function 
__construct()
    {
        
$this->logger = new NullLogger();
        
$this->config = new SmppConfig();
    }

    
/**
     * @param string[] $dsnEntries
     * @param SocketTransportConfig|null $config
     *
     * @return static
     * @throws Exceptions\SmppInvalidArgumentException
     */
    
public static function createForSockets(array $dsnEntriesSocketTransportConfig $config null): static
    {
        
$self = new static();

        if (!isset(
$config)) {
            
$config = new SocketTransportConfig();
        }

        
$self->transport = new SocketTransport(DSNParser::parseDSNEntries(...$dsnEntries), $config);

        return 
$self;
    }

    
/**
     * @param string[] $dsnEntries
     * @param SocketTransportConfig|null $config
     *
     * @return static
     * @throws Exceptions\SmppInvalidArgumentException
     */
    
public static function createForSCTP(array $dsnEntriesSocketTransportConfig $config null): static
    {
        
$self = new static();

        if (!isset(
$config)) {
            
$config = new SocketTransportConfig();
        }

        
$self->transport = new SCTPTransport(DSNParser::parseDSNEntries(...$dsnEntries), $config);

        return 
$self;
    }

    
/**
     * @param LoggerInterface $logger
     *
     * @return $this
     */
    
public function setLogger(LoggerInterface $logger): self
    
{
        
$this->logger $logger;

        return 
$this;
    }

    
/**
     * @param SmppConfig $config
     *
     * @return $this
     */
    
public function setClientConfig(SmppConfig $config): self
    
{
        
$this->config $config;

        return 
$this;
    }

    
/**
     * @param string $systemId
     * @param string $password
     *
     * @return $this
     */
    
public function setCredentials(string $systemIdstring $password): self
    
{
        
$this->systemId $systemId;
        
$this->password $password;
        return 
$this;
    }

    
/**
     * @return Client
     */
    
public function buildClient(): Client
    
{
        if (isset(
$this->transport->logger) && $this->transport->logger instanceof LoggerInterface) {
            
$this->transport->logger $this->logger;
        }

        
$client = new Client(
            
$this->transport,
            
$this->systemId,
            
$this->password,
        );

        
$client->logger $this->logger;
        
$client->config $this->config;

        return 
$client;
    }
}

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