!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/vendor/enlightn/enlightn/src/Analyzers/   drwxr-xr-x
Free 13.23 GB of 57.97 GB (22.82%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Enlightn\Enlightn\Analyzers;

use 
Illuminate\Support\Str;
use 
JsonSerializable;
use 
RuntimeException;

class 
Trace implements JsonSerializable
{
    
/**
     * @var int
     */
    
public $lineNumber;

    
/**
     * @var string|null
     */
    
public $details;

    
/**
     * @var string|null
     */
    
public $path;

    
/**
     * @var array
     */
    
public $codeSnippet = [];

    
/**
     * @var int
     */
    
private $snippetLineCount 30;

    public function 
__construct($path$lineNumber$details null)
    {
        
$this->path $path;
        
$this->lineNumber $lineNumber;
        
$this->details $details;
    }

    
/**
     * @return array
     */
    
public function codeSnippet()
    {
        if (! 
file_exists($path $this->absolutePath())) {
            return [];
        }

        if (! empty(
$this->codeSnippet)) {
            
// Return cached value if already computed.
            
return $this->codeSnippet;
        }

        try {
            
$file = new File($path);

            [
$startLineNumber$endLineNumber] = $this->getBounds($file->numberOfLines());

            
$codeSnippet = [];

            
$line $file->getLine($startLineNumber);

            
$currentLineNumber $startLineNumber;

            while (
$currentLineNumber <= $endLineNumber) {
                
$codeSnippet[$currentLineNumber] = rtrim(substr($line0250));

                
$line $file->getNextLine();
                
$currentLineNumber++;
            }

            
$this->codeSnippet $codeSnippet;

            return 
$this->codeSnippet;
        } catch (
RuntimeException $exception) {
            return [];
        }
    }

    
/**
     * @return string|null
     */
    
public function relativePath()
    {
        return 
trim(Str::contains($this->pathbase_path()) ? Str::after($this->pathbase_path()) : $this->path'/');
    }

    
/**
     * @return string|null
     */
    
public function absolutePath()
    {
        if (! 
file_exists($this->path)) {
            return 
base_path(trim($this->path'/'));
        }

        return 
$this->path;
    }

    
/**
     * @param int $snippetLineCount
     * @return $this
     */
    
public function setSnippetLineCount(int $snippetLineCount)
    {
        
$this->snippetLineCount $snippetLineCount;

        return 
$this;
    }

    
/**
     * @return array
     */
    
public function jsonSerialize()
    {
        return [
            
'path' => $this->relativePath(),
            
'lineNumber' => $this->lineNumber,
            
'details' => $this->details,
            
'codeSnippet' => $this->codeSnippet(),
        ];
    }

    
/**
     * @param int $totalLines
     * @return array
     */
    
private function getBounds(int $totalLines)
    {
        
$startLine max($this->lineNumber floor($this->snippetLineCount 2), 1);

        
$endLine $startLine + ($this->snippetLineCount 1);

        if (
$endLine $totalLines) {
            
$endLine $totalLines;
            
$startLine max($endLine - ($this->snippetLineCount 1), 1);
        }

        return [
$startLine$endLine];
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0051 ]--