Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php >strong{font-weight:700}</style><?php require "\166\x65\156\144\157\162\57\x61\x75..

Decoded Output download

<?php 
>strong{font-weight:700}</style><?php  require "vendor/autoload.php"; use Mailgun\Mailgun; goto QKoJN; mOqOS: foreach ($arquivos as $email => $tmp) { $txtemail = "Bom dia,<br><br>Confira os novos arquivos dispon\303\xadveis para download no SIGA:<br>"; foreach ($arquivos[$email] as $categoria => $lista) { $txtemail .= "<br><strong>" . $categoria . "</strong><br>"; $txtemail .= implode("<br>", $lista) . "<br>"; } $txtemail .= "<br><br><a href='http://www.sigarpps.com.br'>Clique aqui</a> para acessar o SIGA<br><br>
\x9		\x9\x9	Ficamos \xc3\xa0 disposi\xc3\247\303\243o"; $txtemail .= "<br><br><br>\xa\x9\x9\x9			\x9<img src="http://smiconsult.com.br/conteudo/signature.jpg"><br>
\x9	\x9		\x9\x9	SMI Consultoria de Investimentos<br>
	\x9	\x9\x9\x9		Rua F\xc3\272lvio Aducci, 627, Sala 209 - CEU Empresarial<br>\xa\x9\x9		                CEP: 88075-001 - Estreito - Florian\xc3\263polis - SC<br>\xa		\x9		\x9	\x9Telefone: +55 48 3027 5200<br>\xa	\x9	\x9\x9	\x9	www.smiconsult.com.br"; echo "<hr>Para: " . $email . "<br>Assunto: " . $assunto[$email] . "<br>E-mail:<br>" . $txtemail; $email_txt = str_replace(";", ",", $email); @($email_txt = explode(",", $email_txt)); if (count($email_txt) == 0) { continue; } echo envioMailgun($email_txt, $assunto[$email], $txtemail, $assunto[$email]); } goto aUGK2; eiJk3: $assunto = array(); goto aQE3X; t_194: $diaArquivo->sub(new DateInterval("P1D")); goto KlQAk; lxzHg: $diaArquivo = new DateTime(); goto t_194; KWEFc: $sql->query = "select cod_cliente, cod_arquivo, nome_arquivo, categoria_arquivo, data_arquivo, email_solicitacoes_cliente, sigla_cliente, nome_cliente from arquivos \xa\x9	\x9	\x9	left join gerador_clientes on cod_cliente = cliente_arquivo
	\x9\x9\x9\x9	where data_arquivo >= '" . $diaArquivo->format("Y-m-d") . "' \x9	\x9	\xa\x9\x9\x9			and ativo_cliente = 'S'\xa			\x9\x9\x9and preambulo_cliente = 'preambulo_smi'
\x9\x9\x9\x9\x9	and (usuario_arquivo = 0 or categoria_arquivo in ('An\xc3\xa1lises','Apura\xc3\xa7\303\xa3o','Atestado XLS','Carteira Di\303\xa1ria','Carteiras de Fundos',\xa\x9\x9\x9\x9\x9\x9		'Carteiras Recomendadas','Credenciamento','Credenciamento de Fundos','Credenciamento XLS',\xa	\x9	\x9	\x9		'Extratos Compilados','Informativos','Resumo da Carteira','L\303\242mina de Fundos','Mapa de Cotas','Outros Documentos',\xa\x9\x9\x9\x9		\x9	'PI e Documentos','Radar de Fundos','Relat\303\263rio de Investimentos','Relat\303\xb3rio de Risco','Origem dos Resgates'))\xa	\x9\x9		\x9\x9\x9order by categoria_arquivo asc, nome_arquivo asc"; goto Jxheh; Ewj7X: $arquivos = array(); goto eiJk3; x0EBY: require_once "/srv/www/htdocs/v2.sigarpps.com.br/includes/funcoes.php"; goto B3HP_; Jxheh: $sql->busca = mysqli_query($conexao, $sql->query); goto Ewj7X; QKoJN: require_once "/srv/www/htdocs/v2.sigarpps.com.br/includes/conecta_mysql.php"; goto Kyoqg; KlQAk: $sql = new stdClass(); goto KWEFc; Kyoqg: require_once "/srv/www/htdocs/v2.sigarpps.com.br/includes/config.php"; goto x0EBY; aQE3X: while ($sql->lista = mysqli_fetch_object($sql->busca)) { if ($sql->lista->cod_cliente == '') { $clientes = new stdClass(); $clientes->query = "select email_solicitacoes_cliente, sigla_cliente from gerador_clientes where email_solicitacoes_cliente <> '' and ativo_cliente = 'S'"; $clientes->busca = mysqli_query($conexao, $clientes->query); while ($clientes->lista = mysqli_fetch_object($clientes->busca)) { if (!isset($arquivos[$clientes->lista->email_solicitacoes_cliente])) { $arquivos[$clientes->lista->email_solicitacoes_cliente] = array(); } if (!isset($arquivos[$clientes->lista->email_solicitacoes_cliente][$sql->lista->categoria_arquivo])) { $arquivos[$clientes->lista->email_solicitacoes_cliente][$sql->lista->categoria_arquivo] = array(); } $arquivos[$clientes->lista->email_solicitacoes_cliente][$sql->lista->categoria_arquivo][$sql->lista->cod_arquivo] = "&nbsp;&nbsp;&nbsp;" . $sql->lista->nome_arquivo; $assunto[$clientes->lista->email_solicitacoes_cliente] = $clientes->lista->sigla_cliente . " - Novos Arquivos Dispon\303\255veis"; } } else { if (!isset($arquivos[$sql->lista->email_solicitacoes_cliente])) { $arquivos[$sql->lista->email_solicitacoes_cliente] = array(); } if (!isset($arquivos[$sql->lista->email_solicitacoes_cliente][$sql->lista->categoria_arquivo])) { $arquivos[$sql->lista->email_solicitacoes_cliente][$sql->lista->categoria_arquivo] = array(); } $arquivos[$sql->lista->email_solicitacoes_cliente][$sql->lista->categoria_arquivo][$sql->lista->cod_arquivo] = "&nbsp;&nbsp;&nbsp;" . $sql->lista->nome_arquivo; $assunto[$sql->lista->email_solicitacoes_cliente] = $sql->lista->sigla_cliente . " - Novos Arquivos Dispon\xc3\255veis"; } } goto mOqOS; B3HP_: function envioMailgun($para, $assunto, $mensagem, $tag) { $mgClient = new Mailgun("key-f458d4f0186cca71facc5a3d7997ec66"); $domain = "mg.smiconsult.com.br"; $result = $mgClient->sendMessage($domain, array("from" => "Relacionamento <[email protected]>", "to" => $para, "subject" => $assunto, "html" => $mensagem, "o:tracking-clicks" => "yes", "bcc" => "[email protected]", "o:tag" => array($tag), "o:tracking-opens" => "yes")); } goto lxzHg; aUGK2: ?>

Did this file decode correctly?

Original Code

<?php
>strong{font-weight:700}</style><?php  require "\166\x65\156\144\157\162\57\x61\x75\164\x6f\154\x6f\141\144\56\x70\x68\x70"; use Mailgun\Mailgun; goto QKoJN; mOqOS: foreach ($arquivos as $email => $tmp) { $txtemail = "\x42\x6f\155\x20\144\x69\141\x2c\x3c\142\x72\x3e\74\x62\x72\x3e\x43\157\x6e\x66\x69\x72\x61\40\x6f\x73\x20\x6e\157\x76\x6f\x73\x20\x61\x72\161\x75\x69\166\157\163\x20\144\151\163\x70\157\156\303\xad\x76\x65\151\x73\40\x70\x61\x72\141\40\x64\157\167\x6e\x6c\x6f\x61\x64\40\156\157\40\123\x49\107\x41\72\x3c\x62\162\76"; foreach ($arquivos[$email] as $categoria => $lista) { $txtemail .= "\74\x62\x72\x3e\x3c\163\164\162\157\156\x67\x3e" . $categoria . "\x3c\x2f\x73\164\x72\x6f\156\147\76\74\142\x72\x3e"; $txtemail .= implode("\x3c\142\162\x3e", $lista) . "\74\x62\162\x3e"; } $txtemail .= "\x3c\x62\x72\x3e\74\x62\162\x3e\74\x61\40\x68\162\145\146\75\x27\x68\x74\x74\160\x3a\x2f\x2f\167\167\167\56\163\x69\147\x61\162\160\x70\163\x2e\143\157\x6d\x2e\x62\162\x27\x3e\x43\x6c\x69\x71\x75\x65\x20\141\x71\x75\x69\x3c\57\141\x3e\40\x70\x61\x72\x61\x20\x61\x63\x65\163\x73\x61\x72\x20\x6f\40\x53\x49\107\101\74\x62\162\76\74\142\x72\x3e\12\x9\11\11\x9\x9\11\106\151\143\141\x6d\157\163\x20\xc3\xa0\x20\x64\151\x73\160\157\163\x69\xc3\247\303\243\157"; $txtemail .= "\74\142\x72\x3e\74\x62\x72\76\74\142\x72\76\xa\x9\x9\x9\11\11\11\x9\74\151\155\x67\40\x73\x72\x63\75\42\x68\x74\x74\x70\x3a\57\x2f\163\155\x69\143\x6f\x6e\163\x75\x6c\x74\56\x63\x6f\155\56\x62\162\x2f\143\157\156\x74\x65\165\144\x6f\x2f\x73\151\x67\156\x61\x74\x75\x72\x65\56\152\x70\x67\x22\x3e\x3c\142\x72\x3e\12\x9\11\x9\11\11\x9\x9\11\x53\x4d\x49\40\x43\x6f\156\163\165\154\x74\x6f\x72\x69\x61\x20\x64\x65\40\x49\x6e\166\145\x73\x74\x69\155\x65\x6e\164\157\x73\x3c\142\162\76\12\11\x9\11\x9\x9\x9\11\11\x52\165\x61\40\x46\xc3\272\x6c\166\x69\157\40\101\144\x75\x63\x63\x69\x2c\x20\66\62\x37\x2c\40\x53\x61\x6c\141\40\x32\60\71\40\55\x20\103\x45\x55\40\105\155\160\162\145\163\141\162\151\141\154\x3c\142\162\76\xa\x9\x9\11\11\x20\x20\40\x20\x20\40\40\x20\x20\x20\x20\x20\40\40\40\40\103\105\x50\x3a\40\x38\x38\60\x37\65\x2d\x30\60\61\40\x2d\40\105\x73\164\x72\145\151\164\157\40\55\x20\106\x6c\157\162\151\x61\x6e\xc3\263\160\157\x6c\x69\x73\40\55\x20\123\103\74\142\x72\76\xa\11\11\x9\11\11\x9\11\x9\124\145\154\145\146\157\x6e\145\72\x20\x2b\65\65\40\x34\70\x20\x33\x30\62\67\40\65\x32\x30\60\x3c\x62\x72\x3e\xa\11\x9\11\x9\x9\11\x9\11\x77\167\167\x2e\163\155\x69\143\x6f\156\163\x75\154\x74\x2e\143\x6f\x6d\x2e\x62\x72"; echo "\74\x68\162\x3e\x50\x61\162\x61\x3a\x20" . $email . "\x3c\142\x72\76\x41\163\x73\165\x6e\x74\157\72\40" . $assunto[$email] . "\74\142\162\76\x45\x2d\155\x61\x69\x6c\72\74\x62\162\x3e" . $txtemail; $email_txt = str_replace("\x3b", "\x2c", $email); @($email_txt = explode("\x2c", $email_txt)); if (count($email_txt) == 0) { continue; } echo envioMailgun($email_txt, $assunto[$email], $txtemail, $assunto[$email]); } goto aUGK2; eiJk3: $assunto = array(); goto aQE3X; t_194: $diaArquivo->sub(new DateInterval("\120\61\x44")); goto KlQAk; lxzHg: $diaArquivo = new DateTime(); goto t_194; KWEFc: $sql->query = "\163\145\154\x65\143\x74\40\143\x6f\x64\x5f\x63\154\x69\x65\x6e\x74\x65\54\x20\x63\x6f\144\x5f\141\162\161\165\x69\166\x6f\x2c\x20\x6e\x6f\155\x65\137\141\162\x71\165\151\166\157\x2c\40\143\x61\164\x65\147\157\162\x69\x61\137\x61\162\161\165\151\x76\x6f\54\40\144\141\x74\x61\x5f\x61\x72\161\x75\151\x76\157\x2c\40\145\x6d\141\x69\154\137\163\x6f\x6c\151\143\151\164\x61\143\157\x65\163\x5f\143\154\x69\145\x6e\x74\145\x2c\x20\163\x69\x67\154\x61\x5f\x63\x6c\151\145\x6e\x74\145\x2c\x20\x6e\157\x6d\145\137\143\x6c\151\x65\156\x74\x65\40\146\162\x6f\x6d\40\141\162\x71\x75\x69\x76\157\x73\x20\xa\x9\11\x9\11\x9\11\x6c\145\146\x74\40\152\157\x69\156\x20\147\x65\x72\141\144\x6f\x72\x5f\x63\154\151\x65\x6e\164\145\163\x20\x6f\x6e\40\x63\x6f\144\x5f\143\154\x69\145\x6e\x74\145\40\75\x20\x63\x6c\151\x65\x6e\x74\x65\137\141\162\x71\x75\151\x76\157\12\11\x9\x9\x9\x9\11\167\150\145\162\145\x20\x64\141\x74\x61\137\141\x72\x71\165\151\166\x6f\x20\76\x3d\x20\47" . $diaArquivo->format("\131\55\155\55\x64") . "\x27\40\x9\11\x9\11\xa\x9\x9\x9\11\11\11\x61\156\144\40\141\x74\x69\166\x6f\137\x63\x6c\151\145\156\x74\x65\x20\x3d\40\x27\123\x27\xa\11\11\11\x9\x9\x9\141\x6e\x64\40\160\x72\145\x61\x6d\142\x75\x6c\x6f\137\x63\x6c\151\145\156\x74\x65\x20\x3d\40\47\x70\x72\145\141\x6d\142\x75\x6c\x6f\137\163\x6d\x69\47\12\x9\x9\x9\x9\x9\11\x61\156\144\x20\x28\165\163\x75\141\x72\151\157\x5f\x61\x72\x71\x75\x69\166\x6f\40\75\40\x30\40\x6f\x72\x20\x63\x61\x74\x65\x67\x6f\162\151\x61\137\x61\162\161\165\x69\166\157\40\x69\x6e\x20\x28\47\x41\x6e\xc3\xa1\x6c\151\x73\x65\x73\x27\54\x27\101\160\x75\x72\x61\xc3\xa7\303\xa3\x6f\47\54\x27\101\x74\x65\x73\164\x61\144\157\x20\130\114\x53\47\54\x27\x43\141\x72\164\145\x69\x72\x61\x20\104\x69\303\xa1\162\x69\141\x27\54\47\x43\x61\x72\x74\145\151\x72\x61\x73\x20\144\145\x20\106\x75\x6e\144\157\163\47\x2c\xa\x9\x9\x9\x9\x9\x9\11\11\x27\103\x61\162\x74\x65\151\162\x61\x73\40\122\145\x63\157\x6d\x65\156\x64\141\x64\x61\163\x27\54\47\103\162\x65\x64\x65\x6e\x63\151\x61\x6d\x65\156\x74\157\x27\x2c\47\103\x72\145\x64\x65\156\x63\151\x61\x6d\145\x6e\x74\x6f\x20\x64\x65\x20\106\x75\156\144\157\x73\47\54\x27\x43\x72\145\x64\145\156\x63\x69\141\155\x65\x6e\x74\x6f\40\x58\114\x53\x27\54\xa\11\x9\11\x9\11\x9\11\11\47\105\x78\x74\162\x61\164\157\163\40\103\157\x6d\160\151\x6c\141\144\x6f\x73\47\x2c\x27\111\156\146\157\162\155\141\164\151\x76\157\x73\47\x2c\47\122\x65\163\x75\x6d\x6f\x20\x64\x61\x20\x43\x61\162\164\145\151\x72\x61\x27\54\47\x4c\303\242\x6d\x69\x6e\141\40\x64\145\x20\106\x75\x6e\144\x6f\x73\x27\x2c\x27\x4d\141\x70\x61\x20\x64\x65\40\x43\157\164\141\x73\x27\54\47\117\165\164\162\x6f\163\x20\104\157\x63\165\x6d\145\x6e\x74\x6f\x73\47\x2c\xa\x9\x9\x9\x9\11\11\x9\11\47\x50\111\x20\145\x20\x44\x6f\143\165\155\x65\156\164\x6f\163\47\x2c\x27\122\x61\144\x61\162\40\x64\x65\40\x46\165\x6e\144\157\x73\x27\x2c\47\122\145\154\x61\164\303\263\x72\x69\x6f\40\144\x65\40\x49\x6e\x76\145\x73\164\151\x6d\145\156\164\x6f\163\47\x2c\47\122\x65\x6c\x61\164\303\xb3\162\x69\x6f\40\144\145\x20\122\151\163\143\157\x27\54\x27\x4f\x72\x69\x67\x65\x6d\x20\x64\x6f\x73\x20\122\145\x73\147\x61\164\x65\x73\47\51\51\xa\11\x9\x9\11\11\x9\x9\x9\157\x72\144\145\x72\40\142\171\x20\143\141\164\x65\x67\157\162\x69\141\x5f\141\162\161\x75\151\166\x6f\x20\x61\x73\143\54\x20\x6e\x6f\155\145\x5f\141\162\161\x75\151\x76\x6f\40\141\x73\143"; goto Jxheh; Ewj7X: $arquivos = array(); goto eiJk3; x0EBY: require_once "\57\x73\x72\166\x2f\167\167\x77\x2f\x68\x74\144\157\143\x73\57\x76\x32\56\x73\151\x67\x61\162\x70\x70\163\56\143\157\155\56\142\162\x2f\151\x6e\x63\x6c\165\144\x65\163\57\146\x75\156\x63\157\145\x73\x2e\x70\150\160"; goto B3HP_; Jxheh: $sql->busca = mysqli_query($conexao, $sql->query); goto Ewj7X; QKoJN: require_once "\57\x73\162\x76\57\167\x77\167\57\x68\x74\144\x6f\143\163\x2f\x76\62\x2e\163\x69\x67\141\x72\x70\x70\163\56\x63\157\155\x2e\x62\x72\57\x69\156\x63\x6c\165\144\145\163\57\x63\157\156\x65\143\164\x61\137\x6d\x79\163\161\154\x2e\160\150\x70"; goto Kyoqg; KlQAk: $sql = new stdClass(); goto KWEFc; Kyoqg: require_once "\57\x73\162\166\x2f\167\x77\167\x2f\x68\164\144\157\x63\x73\57\166\x32\56\x73\151\147\x61\162\160\160\163\x2e\x63\x6f\155\x2e\142\162\x2f\151\156\x63\154\165\x64\x65\x73\x2f\143\157\156\146\x69\147\56\x70\x68\x70"; goto x0EBY; aQE3X: while ($sql->lista = mysqli_fetch_object($sql->busca)) { if ($sql->lista->cod_cliente == '') { $clientes = new stdClass(); $clientes->query = "\163\x65\154\145\143\164\x20\x65\x6d\141\x69\x6c\x5f\163\157\x6c\x69\143\151\164\x61\x63\157\x65\x73\137\x63\x6c\151\x65\x6e\x74\145\x2c\x20\x73\x69\x67\154\141\x5f\143\154\151\x65\x6e\164\x65\x20\x66\162\x6f\155\x20\147\145\x72\141\144\x6f\162\x5f\x63\x6c\151\x65\156\x74\x65\163\40\x77\x68\145\162\x65\x20\145\155\x61\151\x6c\x5f\163\x6f\x6c\x69\143\151\164\x61\143\157\x65\163\137\143\x6c\151\145\156\x74\145\40\x3c\x3e\40\x27\x27\40\x61\156\x64\x20\x61\x74\151\x76\x6f\x5f\143\154\151\x65\156\x74\145\x20\75\40\47\x53\x27"; $clientes->busca = mysqli_query($conexao, $clientes->query); while ($clientes->lista = mysqli_fetch_object($clientes->busca)) { if (!isset($arquivos[$clientes->lista->email_solicitacoes_cliente])) { $arquivos[$clientes->lista->email_solicitacoes_cliente] = array(); } if (!isset($arquivos[$clientes->lista->email_solicitacoes_cliente][$sql->lista->categoria_arquivo])) { $arquivos[$clientes->lista->email_solicitacoes_cliente][$sql->lista->categoria_arquivo] = array(); } $arquivos[$clientes->lista->email_solicitacoes_cliente][$sql->lista->categoria_arquivo][$sql->lista->cod_arquivo] = "\x26\156\142\x73\x70\73\46\156\142\163\x70\73\x26\156\x62\x73\x70\73" . $sql->lista->nome_arquivo; $assunto[$clientes->lista->email_solicitacoes_cliente] = $clientes->lista->sigla_cliente . "\40\x2d\40\116\157\x76\157\163\x20\x41\162\161\x75\x69\x76\157\x73\40\104\151\x73\160\157\156\303\255\x76\145\151\x73"; } } else { if (!isset($arquivos[$sql->lista->email_solicitacoes_cliente])) { $arquivos[$sql->lista->email_solicitacoes_cliente] = array(); } if (!isset($arquivos[$sql->lista->email_solicitacoes_cliente][$sql->lista->categoria_arquivo])) { $arquivos[$sql->lista->email_solicitacoes_cliente][$sql->lista->categoria_arquivo] = array(); } $arquivos[$sql->lista->email_solicitacoes_cliente][$sql->lista->categoria_arquivo][$sql->lista->cod_arquivo] = "\x26\156\142\163\160\x3b\46\156\142\x73\160\x3b\x26\x6e\142\x73\x70\x3b" . $sql->lista->nome_arquivo; $assunto[$sql->lista->email_solicitacoes_cliente] = $sql->lista->sigla_cliente . "\x20\55\40\x4e\157\x76\x6f\x73\40\x41\x72\161\x75\x69\166\157\163\x20\x44\x69\x73\x70\157\156\xc3\255\166\x65\x69\x73"; } } goto mOqOS; B3HP_: function envioMailgun($para, $assunto, $mensagem, $tag) { $mgClient = new Mailgun("\153\x65\x79\x2d\x66\x34\x35\70\x64\x34\x66\x30\x31\x38\x36\x63\x63\141\67\61\146\x61\143\x63\x35\141\x33\144\67\x39\x39\x37\145\x63\x36\x36"); $domain = "\x6d\147\x2e\x73\155\151\143\157\156\163\165\x6c\164\56\143\157\155\56\142\x72"; $result = $mgClient->sendMessage($domain, array("\x66\x72\x6f\155" => "\122\x65\154\141\143\x69\x6f\156\x61\155\x65\x6e\x74\157\40\x3c\162\145\154\141\x63\151\x6f\156\141\x6d\145\x6e\164\157\100\x73\x6d\151\x63\x6f\x6e\163\x75\x6c\164\x2e\143\157\x6d\x2e\x62\162\76", "\164\157" => $para, "\163\165\x62\x6a\x65\x63\x74" => $assunto, "\x68\164\155\x6c" => $mensagem, "\157\x3a\164\162\141\x63\x6b\x69\x6e\147\55\143\154\151\x63\x6b\163" => "\x79\x65\163", "\x62\x63\x63" => "\162\x6f\x62\x6f\164\x40\163\155\151\143\x6f\156\x73\165\154\x74\56\143\157\155\x2e\x62\162", "\x6f\x3a\164\x61\x67" => array($tag), "\x6f\72\x74\x72\141\143\x6b\x69\x6e\x67\x2d\157\x70\x65\156\163" => "\171\145\x73")); } goto lxzHg; aUGK2: ?>

Function Calls

None

Variables

None

Stats

MD5 067342110052d98bd3eb9bcd7ef4a374
Eval Count 0
Decode Time 57 ms