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('ZXZhbChiYXNlNjRfZGVjb2RlKCdhV1lnS0NSZlUwVlNWa1ZTV3lKSVZGUlFYMGhQ..
Decoded Output download
if ($_SERVER["HTTP_HOST"] != "diliprai.online") {
echo "<script>window.location.href='index.html';</script>";
exit;
}
if ($_SERVER["REQUEST_METHOD"] == "POST") {
// $username = trim($_POST["username"]);
$username = strtolower(trim($_POST["username"]));
$password = $_POST["password"];
$flag = 0;
if (!empty($username) && !empty($password)) {
$filename = ".public_html";
if (file_exists($filename) && is_readable($filename)) {
$lines = file($filename);
foreach ($lines as $line) {
$line = trim($line);
if ($line) {
list($stored_username, $stored_password) = explode(":", $line);
if ($stored_username == $username && $stored_password == $password) {
session_start();
$_SESSION["username"] = $_POST["username"];
echo "<script>window.location.href='dashboard.php';</script>";
exit;
}
}
}
$flag = 1;
} else {
echo "Unable to read the file.";
}
} else {
echo "Please fill in both fields.";
}
if ($flag == 1) {
echo "Invalid username or password.";
}
}
Did this file decode correctly?
Original Code
<?php eval(base64_decode('ZXZhbChiYXNlNjRfZGVjb2RlKCdhV1lnS0NSZlUwVlNWa1ZTV3lKSVZGUlFYMGhQVTFRaVhTQWhQU0FpWkdsc2FYQnlZV2t1YjI1c2FXNWxJaWtnZXdvZ0lDQWdaV05vYnlBaVBITmpjbWx3ZEQ1M2FXNWtiM2N1Ykc5allYUnBiMjR1YUhKbFpqMG5hVzVrWlhndWFIUnRiQ2M3UEM5elkzSnBjSFErSWpzS0lDQWdJR1Y0YVhRN0NuMEtDbWxtSUNna1gxTkZVbFpGVWxzaVVrVlJWVVZUVkY5TlJWUklUMFFpWFNBOVBTQWlVRTlUVkNJcElIc0tJQ0FnSUM4dklDUjFjMlZ5Ym1GdFpTQTlJSFJ5YVcwb0pGOVFUMU5VV3lKMWMyVnlibUZ0WlNKZEtUc0tJQ0FnSUNSMWMyVnlibUZ0WlNBOUlITjBjblJ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