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 /* Cdigo fonte protegido - Pblica Tecnologia */$OOO000000=urldecode('%66%67%36%73%62..
Decoded Output download
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
session_start();
include "../funcoes/funcoes.php";
if (isset($_SESSION['redefinicao_senha'])) {
if ($_SESSION['redefinicao_senha'] == 'Sim') {
include("../bd/conexao_transp.php");
$host = $_SERVER['HTTP_HOST'];
$endereco = "/transparencia/index.php?link=admin/redefinesenha";
$cpf = somentenumeros($_POST['txtcpf']);
$cpf_string = ($_POST['txtcpf']);
$login = $_POST['txtlogin'];
$data_validade = base64_encode(date('Ymd'));
$achou = 0;
$query = ibase_prepare("
SELECT
NOME,
CPF,
LOGIN,
EMAIL,
SENHA FROM LOGIN
WHERE (CPF = '$cpf' OR CPF = '$cpf_string') AND LOGIN = '$login'
AND ADM IN ('S','P','E','O','A','I','V')");
$exequery = ibase_execute($query);
while ($linha = ibase_fetch_assoc($exequery)) {
$achou = 1;
$nome = $linha['NOME'];
$cpfbd = $linha['CPF'];
$senhabd = $linha['SENHA'];
$login_bd = $linha['LOGIN'];
$email = $linha['EMAIL'];
$senha_cpf_sha1 = "$cpfbd$senhabd";
$criptografia_campo = sha1($senha_cpf_sha1);
$cpf_criptografado = base64_encode($cpfbd);
$login_criptografado = base64_encode($login_bd);
$linkativacao = "http://$host$endereco&chave=$criptografia_campo&1=$login_criptografado&11=$cpf_criptografado&111=$data_validade";
}
ibase_close();
if ($achou == 1) {
unset($_SESSION['redefinicao_senha']);
include '../bd/conexao_transp.php';
$sqlentidade = ibase_prepare("SELECT
UPPER(A.NOME) AS NOME,
A.ENDERECO,
A.CNPJ,
A.TELEFONE
FROM ENTIDADE A");
$qryentidade = ibase_execute($sqlentidade) or die('Erro ao conectar: '.ibase_errmsg());
$dadosentidade = ibase_fetch_assoc($qryentidade);
$nomeentidade = $dadosentidade['NOME'];
$endereco = htmlentities_($dadosentidade['ENDERECO']);
$cnpj = htmlentities_($dadosentidade['CNPJ']);
ibase_close();
require('../class/PHPMailer/src/Exception.php');
require('../class/PHPMailer/src/PHPMailer.php');
require('../class/PHPMailer/src/SMTP.php');
$mail = new PHPMailer();
$corpo = "<b>$nomeentidade</b><br><br>
Clique no link para alterar sua senha do acesso ao Portal da Transparncia<br><br>
<a href='$linkativacao'>Clique aqui para redefinir sua senha</a>
ou copie o link abaixo e cole na barra de endereo do seu navegador
</br></br>
<b> $linkativacao </b>;
<br><br>
<b>Endereo:</b> $endereco
";
$corpoSimples = $corpo;
$mail->IsSMTP();
$mail->Host = "email-ssl.com.br";
$mail->SMTPSecure = 'TLS';
$mail->SMTPAuth = true;
$mail->Port = 587;
$mail->Username = "[email protected]";
$mail->Password = "Transp1302135!";
$mail->From = '[email protected]';
$mail->FromName = 'Alterao senha Portal da Transparncia';
$mail->Subject = "Alterao de Senha Portal da Transparncia";
if ($email != '')
$mail->AddAddress($email);
$mail->Body = $corpo;
$mail->IsHTML(true);
if (!$mail->Send()) {
echo 'Erro:'.$mail->ErrorInfo;
}else {
echo "<script type='text/javascript'>
alert('Email com o link para alterar sua senha enviado com sucesso');
window.location.href = '../';
</script>";
}
}else {
echo "<script type='text/javascript'>
alert('Dados no confere');
window.location.href = '../index.php?link=admin/parametroredefinicao';
</script>";
}
}else {
mensagem("Usurio sem permisso",'../index.php');
}
}else {
mensagem("Usurio no esta logado",'../index.php');
};
Did this file decode correctly?
Original Code
<?php /* Cdigo fonte protegido - Pblica Tecnologia */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$GLOBALS['OOO0000O0']=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5}.$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$GLOBALS['OOO0000O0'].=$GLOBALS['OOO0000O0']{3}.$OOO000000{11}.$OOO000000{12}.$GLOBALS['OOO0000O0']{7}.$OOO000000{5};$GLOBALS['OOO000O00']=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$GLOBALS['O0O000O00']=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14};$GLOBALS['O0O000O00']=$O0O000O00.$OOO000000{3};$GLOBALS['O0O00OO00']=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$GLOBALS['OOO00000O']=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14}.$OOO000000{8};$OOO0O0O00=__FILE__;$OO00O0000=0x1418;eval($GLOBALS['OOO0000O0']('JE8wMDBPME8wMD0kR0xPQkFMU1snT09PMDAwTzAwJ10oJE9PTzBPME8wMCwncmInKTskR0xPQkFMU1snTzBPMDBPTzAwJ10oJE8wMDBPME8wMCwweDUzOCk7JE9PMDBPMDBPMD0kR0xPQkFMU1snT09PMDAwME8wJ10oJEdMT0JBTFNbJ09PTzAwMDAwTyddKCRHTE9CQUxTWydPME8wME9PMDAnXSgkTzAwME8wTzAwLDB4MWE4KSwnRW50ZXJ5b3V3a2hSSFlLTldPVVRBYUJiQ2NEZEZmR2dJaUpqTGxNbVBwUXFTc1Z2WHhaejAxMjM0NTY3ODkrLz0nLCdBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWmFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6MDEyMzQ1Njc4OSsvJykpO2V2YWwoJE9PMDBPMDBPMCk7'));return;?>M\FwG^sRMHC{Kkr9NHenNHenNHe1zfukgFMaXdoyjcUImb19oUAxyb18mRtwmwJ4LT09NHr8XTzEXRJwmwJXLO0xNWLyHA1SmT09NHeEXHr8Xk10PkrfHT0knTyYdk09NTzEXHeEXTZffhtOuTr9tWAxTBZfNHr8XHr9NHeEmbUILTzEXHr8XTzEXRtONTzEXTzEXHeEpRtfydmOlFmlvfbfqDykwBAsKa09aaryiWMkeC0OLOMcuc0lpUMpHdr1sAunO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YtMlMwtILcB1iDBXIwT0IkZFpeWPLdBypdt0+WBOLWBOLFMazFZILcB1iDBXpKX0hko1iDBXsNLkvcuLINUELC29ZFo87eWPLdBypdt0+UbYwar1HhuOZfBApKX0hDBCIhtrLdBypdt0+A2aVctIphUn7eWplC2ivwtfyFmkvKJFVko1iDBXsNLaZFM9ZUB5MdzSYtm1lduYlwuSYtMajDo8IwjxzC3kpFuWIfulXcT0mfoa4ft9QCbciF2YZDbn0kz4IeWPIwtEIwtEIwtEIwtEIwtEIwtEIwoyScbk0htfydBypdtnjd20IdZnSDB5qwuniFMrICBx0cbkiFJnzfBrIF2aVDorIcB52DByLdZnjd20IF3ajcbYzdZFpKZEYtJEIwtEIwtEIwtEIwtEIwtEIwtEIf2lVco93RMxvC2y0DB9VRMiZcBCINUEmRJ4vkzSYtJEIwtEIwtEIwtEIwtEIwtE8R3YjFMlXfe4JKX0hgW0hgBaSF2AIGX0hcBYPdZEJNuYjFMlXftn0GbnlNUf0cbi0R2pifMyzC3kpFuWmNJEYtJEIwtEIwtEIwtEIwtEIwoyScbk0htfrCBOvFZnV428IC29VcMaZcUFpKZEYtJEIwtEIwtEIwtEIwtEIwufpdMOvfZ5Sd2YifolvdJ5PFMaMwe0IkZ4VR2lVcoa4RmnPFe9SDB5qNByLdBlVR3niFMyscbOZd3klcoaMDB5pC2yvkzSYtJEIwtEIwtEIwtEIwtEIwtE8R3YjFMlXfe4JKX0hgW0hgBaSF2AIGX0hdBaVF2ymcB0PwlazfGyZDB8IF2aswunlFM1pF3NjdZwSkZ4VR2lVcoa4RmnPFtFpKX0hgW0hgBaSF2AIGX0hdBaVF2ymcB0PwlazfGyZDB8IdVYvwoazforIdo9mCBOvwJXmRJ4vDB5LcbIVFoiXkZL7eWp9KX==f_C
Function Calls
fopen | 1 |
fread | 3 |
strtr | 2 |
fclose | 1 |
urldecode | 1 |
str_replace | 1 |
base64_decode | 3 |
Stats
MD5 | b84e5914bfa2b38ac9658f969d154fb4 |
Eval Count | 3 |
Decode Time | 116 ms |