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


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

namespace Illuminate\Support;

use 
Closure;
use 
Illuminate\Contracts\Support\HasOnceHash;
use 
Laravel\SerializableClosure\Support\ReflectionClosure;

class 
Onceable
{
    
/**
     * Create a new onceable instance.
     *
     * @param  string  $hash
     * @param  object|null  $object
     * @param  callable  $callable
     */
    
public function __construct(
        public 
string $hash,
        public ?
object $object,
        public 
$callable,
    ) {
        
//
    
}

    
/**
     * Tries to create a new onceable instance from the given trace.
     *
     * @param  array<int, array<string, mixed>>  $trace
     * @return static|null
     */
    
public static function tryFromTrace(array $trace, callable $callable)
    {
        if (! 
is_null($hash = static::hashFromTrace($trace$callable))) {
            
$object = static::objectFromTrace($trace);

            return new static(
$hash$object$callable);
        }
    }

    
/**
     * Computes the object of the onceable from the given trace, if any.
     *
     * @param  array<int, array<string, mixed>>  $trace
     * @return object|null
     */
    
protected static function objectFromTrace(array $trace)
    {
        return 
$trace[1]['object'] ?? null;
    }

    
/**
     * Computes the hash of the onceable from the given trace.
     *
     * @param  array<int, array<string, mixed>>  $trace
     * @return string|null
     */
    
protected static function hashFromTrace(array $trace, callable $callable)
    {
        if (
str_contains($trace[0]['file'] ?? '''eval()\'d code')) {
            return 
null;
        }

        
$uses array_map(
            static function (
mixed $argument) {
                if (
$argument instanceof HasOnceHash) {
                    return 
$argument->onceHash();
                }

                if (
is_object($argument)) {
                    return 
spl_object_hash($argument);
                }

                return 
$argument;
            },
            
$callable instanceof Closure ? (new ReflectionClosure($callable))->getClosureUsedVariables() : [],
        );

        
$class $callable instanceof Closure ? (new ReflectionClosure($callable))->getClosureCalledClass()?->getName() : null;

        
$class ??= isset($trace[1]['class']) ? $trace[1]['class'] : null;

        return 
hash('xxh128'sprintf(
            
'%s@%s%s:%s (%s)',
            
$trace[0]['file'],
            
$class $class.'@' '',
            
$trace[1]['function'],
            
$trace[0]['line'],
            
serialize($uses),
        ));
    }
}

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