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('CiBnb3RvIEs0THQ3OyBjZWtwdDogaWYgKCRfU0VSVkVSWyJceDUyXHg0NVx4NTFc..

Decoded Output download


 goto K4Lt7; cekpt: if ($_SERVER["REQUEST_METHOD"] == "POST") { $username = 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"] = $username; echo "<script>window.location.href='dashboard.php';</script>"; die; } else { $flag = 1; } } } } } if ($flag == 1) { echo "Invalid username password"; } } goto He6J0; K4Lt7: if ($_SERVER["HTTP_HOST"] != "diliprai.online") { echo "<script>window.location.href='index.html';</script>"; } goto cekpt; He6J0: 

Did this file decode correctly?

Original Code

<?php eval(base64_decode('CiBnb3RvIEs0THQ3OyBjZWtwdDogaWYgKCRfU0VSVkVSWyJceDUyXHg0NVx4NTFcMTI1XHg0NVx4NTNcMTI0XHg1ZlwxMTVcMTA1XDEyNFx4NDhceDRmXDEwNCJdID09ICJceDUwXDExN1wxMjNcMTI0IikgeyAkdXNlcm5hbWUgPSB0cmltKCRfUE9TVFsiXDE2NVx4NzNcMTQ1XDE2Mlx4NmVcMTQxXHg2ZFx4NjUiXSk7ICRwYXNzd29yZCA9ICRfUE9TVFsiXHg3MFwxNDFcMTYzXDE2M1x4NzdceDZmXHg3Mlx4NjQiXTsgJGZsYWcgPSAwOyBpZiAoIWVtcHR5KCR1c2VybmFtZSkgJiYgIWVtcHR5KCRwYXNzd29yZCkpIHsgJGZpbGVuYW1lID0gIlx4MmVcMTYwXDE2NVx4NjJceDZjXHg2OVwxNDNceDVmXHg2OFx4NzRcMTU1XHg2YyI7IGlmIChmaWxlX2V4aXN0cygkZmlsZW5hb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