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("PD8NCnNlc3Npb25fc3RhcnQoKTsNCmluY2x1ZGUgImNvbm5lY3QvZnVuY3..
Decoded Output download
?>b'<?
session_start();
include "connect/function.php";
include "connect/dbconfig.php";
conndb();
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<?
if ($_SERVER[\'REQUEST_METHOD\'] == \'POST\' ) {
$username = $_POST[\'username\'];
$password = $_POST[\'password\'];
$sql_login = "select * from user_tb where username = \'$username\' AND password = \'$password\'";
$result_login = mysql_query($sql_login);
$total_login = mysql_num_rows($result_login);
$row_login = mysql_fetch_array($result_login);
if($row_login > 0)
{
$datetime_login = date("d/m/Y H:i:s");
if($row_login[\'role\'] == "")
{
$_SESSION[\'login\'] = "true";
$_SESSION[\'role\'] = "";
$_SESSION[\'username\'] = $row_login[\'username\'];
echo "<meta http-equiv=\'refresh\' content=\'0;url=FOLDER1/FORM022.php\'>" ;
}
if($row_login[\'role\'] == "")
{
$_SESSION[\'login\'] = "true";
$_SESSION[\'role\'] = "";
$_SESSION[\'username\'] = $row_login[\'username\'];
echo "<meta http-equiv=\'refresh\' content=\'0;url=FOLDER1/FORM022.php\'>" ;
}
}
else
{
echo "<meta http-equiv=\'refresh\' content=\'0;url=login.php\'>" ;
}
}
?>
</body>
</html>'
Did this file decode correctly?
Original Code
<?php @eval("?>".base64_decode("PD8NCnNlc3Npb25fc3RhcnQoKTsNCmluY2x1ZGUgImNvbm5lY3QvZnVuY3Rpb24ucGhwIjsNCmluY2x1ZGUgImNvbm5lY3QvZGJjb25maWcucGhwIjsNCmNvbm5kYigpOw0KDQo/Pg0KPGhlYWQ+DQo8bWV0YSBodHRwLWVxdWl2PSJDb250ZW50LVR5cGUiIGNvbnRlbnQ9InRleHQvaHRtbDsgY2hhcnNldD11dGYtOCIgLz4NCjwvaGVhZD4NCjxib2R5Pg0KDQo8P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AgICB9DQoNCiAgICAgICAgICAgICAgaWYoJHJvd19sb2dpblsncm9sZSddID09ICLguJzguLnguYnguYPguIrguYnguIfguLLguJnguJfguLHguYjguKfguYTguJsiKQ0KICAgICAgICAgICAgICB7DQoJICAkX1NFU1NJT05bJ2xvZ2luJ10gPSAidHJ1ZSI7DQoJICAkX1NFU1NJT05bJ3JvbGUnXSA9ICLguJzguLnguYnguYPguIrguYnguIfguLLguJnguJfguLHguYjguKfguYTguJsiOw0KCSAgJF9TRVNTSU9OWyd1c2VybmFtZSddID0gJHJvd19sb2dpblsndXNlcm5hbWUnXTsNCgkgIGVjaG8gIjxtZXRhIGh0dHAtZXF1aXY9J3JlZnJlc2gnIGNvbnRlbnQ9JzA7dXJsPUZPTERFUjEvRk9STTAyMi5waHAnPiIgOw0KICAgICAgICAgICAgICB9DQoNCiAgICAgICAgIH0NCiAgICAgICAgIGVsc2UNCiAgICAgICAgIHsNCiAgICAgICAgICAgICANCg0KICAgICAgICAgICAgICBlY2hvICI8bWV0YSBodHRwLWVxdWl2PSdyZWZyZXNoJyBjb250ZW50PScwO3VybD1sb2dpbi5waHAnPiIgOw0KICAgICAgICAgfQ0KDQp9DQo/Pg0KPC9ib2R5Pg0KPC9odG1sPg=="));//Generated by Ampare PHP Encoder. For more security please use php protect before encode the php program
Function Calls
base64_decode | 1 |
Stats
MD5 | 79110d08942965e7551a37b31976f024 |
Eval Count | 1 |
Decode Time | 49 ms |