!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)

/var/www/html/laravel-crm/vendor/barryvdh/laravel-debugbar/src/Controllers/   drwxrwxrwx
Free 13.1 GB of 57.97 GB (22.59%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Barryvdh\Debugbar\Controllers;

use 
Barryvdh\Debugbar\Support\Clockwork\Converter;
use 
DebugBar\DebugBarException;
use 
DebugBar\OpenHandler;
use 
Illuminate\Http\Request;
use 
Illuminate\Http\Response;

class 
OpenHandlerController extends BaseController
{
    
/**
     * Check if the storage is open for inspecting.
     *
     * @param Request $request
     * @return bool
     */
    
protected function isStorageOpen(Request $request)
    {
        
$open config('debugbar.storage.open');

        if (
is_callable($open)) {
            return 
call_user_func($open, [$request]);
        }

        if (
is_string($open) && class_exists($open)) {
            return 
method_exists($open'resolve') ? $open::resolve($request) : false;
        }

        if (
is_bool($open)) {
            return 
$open;
        }

        
// Allow localhost request when not explicitly allowed/disallowed
        
if (in_array($request->ip(), ['127.0.0.1''::1'], true)) {
            return 
true;
        }

        return 
false;
    }

    public function 
handle(Request $request)
    {
        if (
$request->input('op') === 'get' || $this->isStorageOpen($request)) {
            
$openHandler = new OpenHandler($this->debugbar);
            
$data $openHandler->handle($request->input(), falsefalse);
        } else {
            
$data = [
                [
                    
'datetime' => date("Y-m-d H:i:s"),
                    
'id' => null,
                    
'ip' => $request->getClientIp(),
                    
'method' => 'ERROR',
                    
'uri' => '!! To enable public access to previous requests, set debugbar.storage.open to true in your config, or enable DEBUGBAR_OPEN_STORAGE if you did not publish the config. !!',
                    
'utime' => microtime(true),
                ]
            ];
        }

        return new 
Response(
            
$data,
            
200,
            [
                
'Content-Type' => 'application/json'
            
]
        );
    }

    
/**
     * Return Clockwork output
     *
     * @param $id
     * @return mixed
     * @throws \DebugBar\DebugBarException
     */
    
public function clockwork(Request $request$id)
    {
        
$request = [
            
'op' => 'get',
            
'id' => $id,
        ];

        
$openHandler = new OpenHandler($this->debugbar);
        
$data $openHandler->handle($requestfalsefalse);

        
// Convert to Clockwork
        
$converter = new Converter();
        
$output $converter->convert(json_decode($datatrue));

        return 
response()->json($output);
    }
}

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