!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/laravel-crm/packages/Webkul/Email/src/Helpers/   drwxrwxrwx
Free 12.97 GB of 57.97 GB (22.38%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Webkul\Email\Helpers;

class 
Attachment
{
    
/**
     * Content.
     *
     * @var File Content
     */
    
private $content null;

    
/**
     * Create an helper instance
     */
    
public function __construct(
        public 
$filename,
        public 
$contentType,
        public 
$stream,
        public 
$contentDisposition 'attachment',
        public 
$contentId '',
        public 
$headers = []
    ) {}

    
/**
     * Retrieve the attachment filename.
     *
     * @return string
     */
    
public function getFilename()
    {
        return 
$this->filename;
    }

    
/**
     * Retrieve the attachment content type.
     *
     * @return string
     */
    
public function getContentType()
    {
        return 
$this->contentType;
    }

    
/**
     * Retrieve the attachment content disposition.
     *
     * @return string
     */
    
public function getContentDisposition()
    {
        return 
$this->contentDisposition;
    }

    
/**
     * Retrieve the attachment content ID.
     *
     * @return string
     */
    
public function getContentID()
    {
        return 
$this->contentId;
    }

    
/**
     * Retrieve the attachment headers.
     *
     * @return string
     */
    
public function getHeaders()
    {
        return 
$this->headers;
    }

    
/**
     * Read the contents a few bytes at a time until completed.
     *
     * Once read to completion, it always returns false.
     *
     * @param  int  $bytes
     * @return string
     */
    
public function read($bytes 2082)
    {
        return 
feof($this->stream) ? false fread($this->stream$bytes);
    }

    
/**
     * Retrieve the file content in one go.
     *
     * Once you retrieve the content you cannot use MimeMailParser_attachment::read().
     *
     * @return string
     */
    
public function getContent()
    {
        if (
$this->content === null) {
            
fseek($this->stream0);

            while ((
$buf $this->read()) !== false) {
                
$this->content .= $buf;
            }
        }

        return 
$this->content;
    }
}

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