!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/var/softaculous/sitepad/editor/site-data/plugins/gosmtp/main/mailer/   drwxr-xr-x
Free 292.44 GB of 429.69 GB (68.06%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     smtp.php (4.02 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Class GOSMTP_Mailer_SMTP.
 *
 * @since 1.0.0
 */
 
namespace GOSMTP\Mailer;
 
use 
GOSMTP\Mailer\Loader;

class 
SMTP extends Loader{
    
    var 
$title 'Other SMTP';
    var 
$mailer 'smtp';
    
    
/**
     * Override default mail send function.
     * @since 1.0.0
     */
    
public function send(){
        global 
$phpmailer;
        
        
$phpmailer->isSMTP();
        
        
$encryption $this->getOption('encryption'$this->mailer);
        
        if ( !empty(
$encryption) && 'none' !== $encryption) {
            
$phpmailer->SMTPSecure $encryption;
        }

        
// Set the other options
        
$phpmailer->Host $this->getOption('smtp_host'$this->mailer);
        
$phpmailer->Port $this->getOption('smtp_port'$this->mailer);

        
// If we're using smtp auth, set the username & password
        
$smtp_auth $this->getOption('smtp_auth'$this->mailer);
        if(!empty(
$smtp_auth) && $smtp_auth == 'Yes'){
            
$phpmailer->SMTPAuth true;
            
$phpmailer->Username $this->getOption('smtp_username'$this->mailer);
            
$phpmailer->Password $this->getOption('smtp_password'$this->mailer);
        }
        
        
//PHPMailer 5.2.10 introduced this option. However, this might cause issues if the server is advertising TLS with an invalid certificate.
        
$phpmailer->SMTPAutoTLS false;
        
        
$ssl_verification $this->getOption('disable_ssl_verification'$this->mailer);
        
        if(!empty( 
$ssl_verification )) {
            
// Insecure SSL option enabled
            
$phpmailer->SMTPOptions = array(
                
'ssl' => array(
                    
'verify_peer'       => false,
                    
'verify_peer_name'  => false,
                    
'allow_self_signed' => true,
                ),
            );
        }

        
//set reasonable timeout
        
$phpmailer->Timeout 10;
        
        if(
$phpmailer->preSend()){
            try{
                if(
$phpmailer->postSend()){
                    
$response = [
                        
'status' => true,
                        
'code' => 200,
                        
'messageId' => '',
                        
'message' => 'Mail sent successfully',
                    ];
                    return 
$this->handle_response($response);
                }
            }catch( \
Exception $e ){
                return 
$this->handle_response(new \WP_Error(400,  $e->getMessage(), []));
            }
        }
        return 
$this->handle_response(new \WP_Error(400'Unable to send mail for some reason!', []));
    }
    
    public function 
load_field(){
        
        
$fields = array(
            
'smtp_host' => array(
                
'title' => __('SMTP Host'),
                
'type' => 'text',
                
'place_holder' => 'smtp.example.com',
                
'desc' => __'Your mail server' ),
            ),
            
'encryption' => array(
                
'title' => __('Type of Encryption'),
                
'type' => 'radio',
                
'desc' => __'For most servers TLS is the recommended option. If your SMTP provider offers both SSL and TLS options, we recommend using TLS.' ),
                
'list' => array(
                    
'none' => 'None',
                    
'ssl' => 'SSL',
                    
'tls' => 'TLS',    
                ),
            ),
            
'smtp_port' => array(
                
'title' => __('SMTP Port'),
                
'type' => 'text',
                
'place_holder' => '465',
                
'desc' => __'The port to your mail server' ),
            ),
            
'smtp_auth' => array(
                
'title' => __('SMTP Authentication'),
                
'type' => 'radio',
                
'desc' => __'This options should always be checked Yes' ),
                
'list' => array(
                    
'No' => 'No',
                    
'Yes' => 'Yes',
                ),
            ),
            
'smtp_username' => array(
                
'title' => __('SMTP Username'),
                
'type' => 'text',
                
'place_holder' => 'admin',
                
'tr_class' => 'smtp-authentication',
                
'desc' => __'The username to login to your mail server'),
            ),
            
'smtp_password' => array(
                
'title' => __('SMTP Password'),
                
'type' => 'password',
                
'place_holder' => 'Password',
                
'tr_class' => 'smtp-authentication',
                
'desc' => __'The SMTP Password to login to your mail server. The saved password is not shown for security reasons. You need enter it every time you update the settings.'),
            ),
            
'disable_ssl_verification' => array(
                
'title' => __('Disable SSL Certificate Verification'),
                
'type' => 'checkbox',
                
'desc' => __'As of PHP 5.6 you will get a warning/error if the SSL certificate on the server is not properly configured. You can check this option to disable that default behaviour. Please note that PHP 5.6 made this change for a good reason. So you should get your host to fix the SSL configurations instead of bypassing it'),
            ),
        );
        
        return 
$fields;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0035 ]--