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 goto Fumxv; Fumxv: session_start(); goto XLt6_; XLt6_: include "\x64\x62\137\143\x..
Decoded Output download
<?php
goto Fumxv; Fumxv: session_start(); goto XLt6_; XLt6_: include "db_conn.php"; goto EJKh7; EJKh7: if (isset($_POST["uname"]) && isset($_POST["password"])) { function validate($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } $uname = validate($_POST["uname"]); $pass = validate($_POST["password1"]); $pass2 = validate($_POST["password2"]); $license = validate($_POST["license"]); if (empty($uname)) { header("Location: index.php?error=Empty username text area!"); die; } else { if (empty($pass)) { header("Location: index.php?error=Empty password text area!"); die; } else { if (empty($pass)) { header("Location: index.php?error=Empty password text area!"); die; } else { if (empty($pass)) { header("Location: index.php?error=Empty password text area!"); die; } else { $sql = "SELECT * FROM users WHERE name='{$uname}' AND password='{$pass}'"; $result = mysqli_query($conn, $sql); if (mysqli_num_rows($result) === 1) { $row = mysqli_fetch_assoc($result); if ($row["name"] === $uname && $row["password"] === $pass) { $_SESSION["name"] = $row["name"]; $_SESSION["id"] = $row["id"]; $_SESSION["group"] = $row["group"]; header("Location: home.php"); die; } elseif ($row["password"] === $pass) { header("Location: index.php?error=Incorrect data!"); die; } elseif ($row["name"] === $uname) { header("Location: index.php?error=Incorrect data!"); die; } } } } } } } else { header("Location: index.php"); die; } ?>
Did this file decode correctly?
Original Code
<?php
goto Fumxv; Fumxv: session_start(); goto XLt6_; XLt6_: include "\x64\x62\137\143\x6f\x6e\156\x2e\x70\x68\160"; goto EJKh7; EJKh7: if (isset($_POST["\x75\156\x61\155\145"]) && isset($_POST["\160\141\163\163\x77\157\x72\x64"])) { function validate($data) { $data = trim($data); $data = stripslashes($data); $data = htmlspecialchars($data); return $data; } $uname = validate($_POST["\x75\x6e\x61\x6d\x65"]); $pass = validate($_POST["\160\x61\x73\163\x77\x6f\x72\144\61"]); $pass2 = validate($_POST["\x70\141\x73\x73\167\157\x72\x64\x32"]); $license = validate($_POST["\154\151\143\x65\x6e\163\145"]); if (empty($uname)) { header("\114\157\143\x61\164\x69\157\156\72\x20\x69\x6e\x64\145\170\x2e\x70\150\160\77\x65\162\x72\x6f\162\x3d\105\x6d\x70\164\x79\40\165\163\145\x72\156\x61\155\145\40\x74\145\x78\164\x20\141\x72\x65\141\41"); die; } else { if (empty($pass)) { header("\114\157\143\x61\164\x69\x6f\156\x3a\40\151\x6e\x64\x65\170\56\x70\x68\x70\x3f\x65\x72\x72\157\162\x3d\x45\x6d\x70\x74\171\40\160\x61\163\x73\167\x6f\x72\x64\x20\x74\x65\170\164\40\141\162\145\141\x21"); die; } else { if (empty($pass)) { header("\114\157\143\141\164\151\x6f\156\x3a\40\x69\156\144\145\170\56\x70\x68\x70\x3f\x65\x72\162\x6f\x72\x3d\x45\155\160\164\171\x20\160\141\x73\163\x77\157\162\x64\40\x74\145\170\164\40\x61\x72\x65\x61\x21"); die; } else { if (empty($pass)) { header("\114\x6f\143\x61\x74\151\157\x6e\x3a\40\x69\156\144\x65\170\56\160\x68\x70\x3f\x65\162\x72\x6f\162\75\105\x6d\160\164\x79\x20\x70\141\x73\x73\x77\157\x72\x64\40\x74\145\170\x74\40\141\x72\x65\x61\x21"); die; } else { $sql = "\123\x45\x4c\105\x43\124\40\52\x20\106\122\x4f\x4d\40\165\x73\145\162\163\x20\x57\110\x45\x52\105\40\156\141\155\x65\x3d\x27{$uname}\x27\x20\101\116\x44\x20\160\141\x73\163\167\157\x72\144\x3d\x27{$pass}\x27"; $result = mysqli_query($conn, $sql); if (mysqli_num_rows($result) === 1) { $row = mysqli_fetch_assoc($result); if ($row["\156\x61\155\145"] === $uname && $row["\160\141\163\x73\167\x6f\162\x64"] === $pass) { $_SESSION["\156\x61\x6d\x65"] = $row["\156\x61\x6d\145"]; $_SESSION["\x69\144"] = $row["\151\144"]; $_SESSION["\147\x72\x6f\x75\x70"] = $row["\147\162\x6f\x75\x70"]; header("\x4c\157\x63\141\x74\151\157\x6e\72\40\x68\157\155\x65\56\160\x68\160"); die; } elseif ($row["\160\141\163\163\x77\157\162\x64"] === $pass) { header("\x4c\157\143\141\164\x69\x6f\156\x3a\x20\x69\x6e\x64\x65\170\56\x70\150\160\x3f\145\162\x72\157\162\75\x49\x6e\x63\x6f\x72\x72\x65\143\x74\x20\x64\141\x74\x61\41"); die; } elseif ($row["\x6e\x61\155\145"] === $uname) { header("\114\157\143\x61\x74\151\x6f\156\x3a\40\151\156\x64\145\x78\56\x70\150\160\77\x65\x72\162\x6f\x72\x3d\x49\x6e\143\157\162\x72\x65\143\164\x20\144\141\164\141\41"); die; } } } } } } } else { header("\x4c\157\x63\141\x74\151\157\156\x3a\x20\151\x6e\144\145\170\56\x70\x68\x70"); die; }
Function Calls
None |
Stats
MD5 | 91eb9a14c17417e71aeebb0671eafc1f |
Eval Count | 0 |
Decode Time | 55 ms |