!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/smm.picotech.app/public_html/vendor/symfony/mime/Part/Multipart/   drwxr-xr-x
Free 28.69 GB of 117.98 GB (24.32%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     FormDataPart.php (3.2 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\Component\Mime\Part\Multipart;

use 
Symfony\Component\Mime\Exception\InvalidArgumentException;
use 
Symfony\Component\Mime\Part\AbstractMultipartPart;
use 
Symfony\Component\Mime\Part\DataPart;
use 
Symfony\Component\Mime\Part\TextPart;

/**
 * Implements RFC 7578.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 */
final class FormDataPart extends AbstractMultipartPart
{
    private 
$fields = [];

    
/**
     * @param array<string|array|DataPart> $fields
     */
    
public function __construct(array $fields = [])
    {
        
parent::__construct();

        foreach (
$fields as $name => $value) {
            if (!
\is_string($value) && !\is_array($value) && !$value instanceof TextPart) {
                throw new 
InvalidArgumentException(sprintf('A form field value can only be a string, an array, or an instance of TextPart ("%s" given).'get_debug_type($value)));
            }

            
$this->fields[$name] = $value;
        }
        
// HTTP does not support \r\n in header values
        
$this->getHeaders()->setMaxLineLength(\PHP_INT_MAX);
    }

    public function 
getMediaSubtype(): string
    
{
        return 
'form-data';
    }

    public function 
getParts(): array
    {
        return 
$this->prepareFields($this->fields);
    }

    private function 
prepareFields(array $fields): array
    {
        
$values = [];

        
$prepare = function ($item$key$root null) use (&$values, &$prepare) {
            if (
null === $root && \is_int($key) && \is_array($item)) {
                if (
!== \count($item)) {
                    throw new 
InvalidArgumentException(sprintf('Form field values with integer keys can only have one array element, the key being the field name and the value being the field value, %d provided.'\count($item)));
                }

                
$key key($item);
                
$item $item[$key];
            }

            
$fieldName null !== $root sprintf('%s[%s]'$root$key) : $key;

            if (
\is_array($item)) {
                
array_walk($item$prepare$fieldName);

                return;
            }

            
$values[] = $this->preparePart($fieldName$item);
        };

        
array_walk($fields$prepare);

        return 
$values;
    }

    private function 
preparePart(string $name$value): TextPart
    
{
        if (
\is_string($value)) {
            return 
$this->configurePart($name, new TextPart($value'utf-8''plain''8bit'));
        }

        return 
$this->configurePart($name$value);
    }

    private function 
configurePart(string $nameTextPart $part): TextPart
    
{
        static 
$r;

        if (
null === $r) {
            
$r = new \ReflectionProperty(TextPart::class, 'encoding');
            
$r->setAccessible(true);
        }

        
$part->setDisposition('form-data');
        
$part->setName($name);
        
// HTTP does not support \r\n in header values
        
$part->getHeaders()->setMaxLineLength(\PHP_INT_MAX);
        
$r->setValue($part'8bit');

        return 
$part;
    }
}

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