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 /* // DESENVOLVIMENTO WILLIAN SANTOS // CRIPTOGRAFIA FEITA POR WILLIAN SANTOS EMAIL:..
Decoded Output download
$decode_chave = base64_decode($_POST["chave"]);
$verifica_dados_chave = mysqli_fetch_array(mysqli_query($conn,"SELECT * FROM revendas WHERE chave_api = '".$decode_chave."'"));
if($verifica_dados_chave["email"] == ''||$verifica_dados_chave["senha"] == '') {
$_SESSION[status_login_erro] = "<i class='mdi mdi-email-open'></i>Digite o E-mail e a <i class='mdi mdi-lock-alert'></i> senha ";
unset($_SESSION["tipo_usuario_logado"]);
unset($_SESSION["codigo_usuario_logado"]);
header("Location: /admin/login");
exit;
}
$verifica_dados_revenda = mysqli_fetch_array(mysqli_query($conn,"SELECT * FROM revendas WHERE email = '".$verifica_dados_chave["email"]."'"));
if($verifica_dados_revenda[status] != 1) {
$_SESSION[status_login_erro] = "<i class='fe-alert-triangle'></i> Revenda $verifica_dados_chave[email] Bloqueado";
unset($_SESSION["tipo_usuario_logado"]);
unset($_SESSION["codigo_usuario_logado"]);
header("Location: /admin/login");
exit;
}
$valida_revenda = mysqli_num_rows(mysqli_query($conn,"SELECT * FROM revendas WHERE email = '".$verifica_dados_chave["email"]."' AND senha = '".$verifica_dados_chave["senha"]."' AND status = 1 "));
if($valida_revenda == 1) {
$dados_revenda = mysqli_fetch_array(mysqli_query($conn,"SELECT * FROM revendas WHERE email = '".$verifica_dados_chave["email"]."'"));
$ip = $_SERVER["REMOTE_ADDR"];
$xml = @simplexml_load_file('http://www.geoplugin.net/xml.gp?ip='.$ip.'');
date_default_timezone_set('America/Sao_Paulo');
$hora = date('H:i:s');
$date = date('d-m-Y');
$dados_data = mysqli_num_rows(mysqli_query($conn,"SELECT * FROM logs_ips_revenda where ip = '".$ip."'"));
if ($dados_data == "1"){
mysqli_query($conn,"UPDATE logs_ips_revenda SET hora='".$hora."', data= '".$date."', codigo= '".$dados_revenda[codigo]."', nome_revenda= '".$dados_revenda[empresa]."' WHERE ip = '".$ip."' ") or die("".$a95.".<br>Mensagem do servidor: ".mysqli_error());
}else{
mysqli_query($conn,"INSERT INTO logs_ips_revenda (ip,nome_revenda,codigo,cidade,estado,hora,data) VALUES ('".$_SERVER["REMOTE_ADDR"]."','".$dados_revenda[empresa]."','".$dados_revenda[codigo]."','".$xml->geoplugin_city."','".$xml->geoplugin_region."','".$hora."','".$date."')");
}
$_SESSION["tipo_usuario_logado"] = "cliente";
$_SESSION["codigo_usuario_logado"] = $dados_revenda[codigo];
header("Location: /admin/painel");
exit;
}else {
$_SESSION['status_login_erro'] = "<i class='mdi mdi-email-open'></i> E-mail ou <i class='mdi mdi-lock-alert'></i> senha Invlido";
unset($_SESSION["tipo_usuario_logado"]);
unset($_SESSION["codigo_usuario_logado"]);
header("Location: /admin/login");
exit;
}
;
Did this file decode correctly?
Original Code
<?php /* // DESENVOLVIMENTO WILLIAN SANTOS // CRIPTOGRAFIA FEITA POR WILLIAN SANTOS EMAIL: [email protected] */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$OOO000O00=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$O0O000O00=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14};$O0O000O0O=$O0O000O00.$OOO000000{11};$O0O000O00=$O0O000O00.$OOO000000{3};$O0O00OO00=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$OOO00000O=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14}.$OOO000000{8};$OO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 1 |
fread | 3 |
strtr | 2 |
fclose | 1 |
urldecode | 1 |
str_replace | 1 |
base64_decode | 3 |
Stats
MD5 | c7c4d26079285ee6c14d4e12f86dd029 |
Eval Count | 3 |
Decode Time | 136 ms |