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 @eval("?>".base64_decode("PD9waHANCnNlc3Npb25fc3RhcnQoKTsNCnJlcXVpcmVfb25jZSgnY29udH..
Decoded Output download
?>b'<?php
session_start();
require_once(\'controles/usuarios.php\');
if (!checarUsuario()) {
?>
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Login | <?php echo $nome; ?></title>
<link href="css/login.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.bundle.min.js"></script>
</head>
<style>
#random{
background-image: url(\'\');
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
a:link, a:visited {
background-color: green;
color: white;
padding: 5px 25px;
text-align: center;
text-decoration: none;
display: inline-block;
}
a:hover, a:active {
background-color: #B22222;
}
</style>
<body>
<body onload="randombg()" id="random">
<form style="background-color:white;border-radius: 15px;" id="login" class="form-signin">
<img class="mx-auto d-block mb-4" src="<?php echo $img; ?>" alt="logo">
<label for="inputEmail" class="sr-only">Usurio</label>
<input name="usuario" type="text" id="inputEmail" class="form-control" placeholder="Usurio" required autofocus>
<label for="inputPassword" class="sr-only">Senha</label>
<input name="senha" type="password" id="inputPassword" class="form-control" placeholder="Senha" required>
<button class="btn btn-lg btn-danger btn-block" type="submit">Entrar</button>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div style="text-align: center;">
<br />
© <?php echo date("Y"); ?> <?php echo $copy; ?> -</span><br />
Desenvolvido por PJT</span></font></center>
</form>
<!-- Alerta Inicio -->
<div class="modal fade" id="alerta" tabindex="-1" role="dialog" aria-labelledby="Alerta" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-body">
<button type="button" class="close" data-dismiss="modal" aria-label="Fechar">
<span aria-hidden="true">×</span>
</button>
<div class="text-center">
<h5 id="textoAlerta" class="h5"></h5>
</div>
</div>
</div>
</div>
</div>
<!-- Alerta Fim-->
</body>
<script>
function randombg(){
var random= Math.floor(Math.random() * 2) + 0;
var bigSize = ["url(\'img/fundo1.jpg\')",
"url(\'img/fundo2.jpg\')"];
document.getElementById("random").style.backgroundImage=bigSize[random];
}
$( "#login" ).submit(function( event ) {
$.ajax({
type: "POST",
url: "controles/login.php",
data: $("#login").serialize(),
success: function(data) {
location = "dashboard.php";
},
error: function(data) {
$("#textoAlerta").text(data.responseText);
$("#alerta").modal();
}
});
event.preventDefault();
});
</script>
</html>
<?php
} else {
header("Location: dashboard.php");
die();
}
?>'
Did this file decode correctly?
Original Code
<?php @eval("?>".base64_decode("PD9waHANCnNlc3Npb25fc3RhcnQoKTsNCnJlcXVpcmVfb25jZSgnY29udHJvbGVzL3VzdWFyaW9zLnBocCcpOw0KaWYgKCFjaGVjYXJVc3VhcmlvKCkpIHsNCj8+DQo8IURPQ1RZUEUgaHRtbD4NCg0KPGh0bWwgbGFuZz0icHQtQlIiPg0KPGhlYWQ+DQogICAgPG1ldGEgY2hhcnNldD0idXRmLTgiPg0KICAgIDxtZXRhIG5hbWU9InZpZXdwb3J0IiBjb250ZW50PSJ3aWR0aD1kZXZpY2Utd2lkdGgsIGluaXRpYWwtc2NhbGU9MSwgc2hyaW5rLXRvLWZpdD1ubyI+DQogICAgPHRpdGxlPkxvZ2luIHwgPD9waHAgZWNobyAkbm9tZTsgPz48L3RpdGxlPg0KICAgIDxsaW5rIGhyZWY9ImNzcy9sb2dpbi5jc3MiIHJlbD0ic3R5bGVzaGVldCI+DQogICAgPGxpbmsgaHJlZj0iY3NzL2Jvb3RzdHJhcC5taW4uY3NzIiByZWw9InN0eWxlc2hlZXQiPg0KICAgIDxsaW5rIHJlbD0iaWNvbiIgaHJlZj0iZmF2aWNvbi5pY28iIHR5cGU9ImltYW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U6ICJQT1NUIiwNCiAgICAgICAgICAgIHVybDogImNvbnRyb2xlcy9sb2dpbi5waHAiLA0KICAgICAgICAgICAgZGF0YTogJCgiI2xvZ2luIikuc2VyaWFsaXplKCksDQogICAgICAgICAgICBzdWNjZXNzOiBmdW5jdGlvbihkYXRhKSB7DQogICAgICAgICAgICAgICAgbG9jYXRpb24gPSAiZGFzaGJvYXJkLnBocCI7DQogICAgICAgICAgICB9LA0KICAgICAgICAgICAgZXJyb3I6IGZ1bmN0aW9uKGRhdGEpIHsNCiAgICAgICAgICAgICAgICAkKCIjdGV4dG9BbGVydGEiKS50ZXh0KGRhdGEucmVzcG9uc2VUZXh0KTsNCiAgICAgICAgICAgICAgICAkKCIjYWxlcnRhIikubW9kYWwoKTsNCiAgICAgICAgICAgIH0NCiAgICAgICAgfSk7DQogICAgICAgIGV2ZW50LnByZXZlbnREZWZhdWx0KCk7DQogICAgfSk7DQo8L3NjcmlwdD4NCjwvaHRtbD4NCjw/cGhwDQp9IGVsc2Ugew0KICAgIGhlYWRlcigiTG9jYXRpb246IGRhc2hib2FyZC5waHAiKTsNCiAgICBkaWUoKTsNCn0NCj8+"));//Generated by Ampare PHP Encoder. For more security please use php protect before encode the php program
Function Calls
base64_decode | 1 |
Stats
MD5 | f99e2caaa61dcee906b61f394aff76aa |
Eval Count | 1 |
Decode Time | 49 ms |