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 require "\x63\x6f\x6e\x66\x69\147\57\153\x6f\x6e\x65\x6b\163\x69\x5f\162\x77\56\16..

Decoded Output download

<?php 
 require "config/koneksi_rw.php"; if (!isset($_SERVER["PHP_AUTH_USER"])) { $response = json_encode(array("GetBillRs" => array("STATUS" => "66"))); $insertLog = mysqli_query($con, "INSERT INTO tbpermata_log(CAT,VA_NO,RESPONSE_CODE,`MESSAGE`,IP,`DATE`,`TIME`) VALUES ('Payment','{$VI_VANUMBER}','66','General Error','{$IP}','{$DATE}','{$TIME}')"); if ($insertLog) { $pesan = "|Permata|Payment|" . $VI_VANUMBER . "|General Error"; } echo $response; } else { $check = mysqli_query($con, "SELECT * FROM tbpermata_auth"); $result = mysqli_fetch_array($check); if (isset($result)) { if ($_SERVER["PHP_AUTH_USER"] == $result["USERNAME"] && hash("sha256", $_SERVER["PHP_AUTH_PW"], false) == $result["PASSWORD"]) { echo "Success"; } else { echo "Failed"; } } } ?>

Did this file decode correctly?

Original Code

<?php
 require "\x63\x6f\x6e\x66\x69\147\57\153\x6f\x6e\x65\x6b\163\x69\x5f\162\x77\56\160\x68\x70"; if (!isset($_SERVER["\120\x48\120\137\x41\x55\x54\x48\x5f\x55\x53\105\x52"])) { $response = json_encode(array("\x47\x65\164\102\151\x6c\154\x52\x73" => array("\x53\x54\101\x54\125\x53" => "\66\66"))); $insertLog = mysqli_query($con, "\111\x4e\x53\105\122\124\40\111\x4e\124\117\40\164\x62\x70\x65\162\x6d\x61\x74\141\137\154\157\147\50\x43\x41\x54\54\126\101\x5f\116\117\x2c\x52\105\x53\120\x4f\x4e\x53\x45\x5f\103\x4f\104\105\x2c\140\x4d\x45\x53\123\101\107\x45\x60\54\111\x50\54\140\104\x41\124\105\x60\54\140\x54\111\x4d\x45\140\x29\x20\x56\x41\114\125\105\123\40\x28\x27\120\x61\x79\155\x65\x6e\164\47\x2c\47{$VI_VANUMBER}\x27\54\x27\66\66\47\x2c\x27\x47\145\x6e\x65\162\141\x6c\x20\x45\162\162\x6f\x72\47\x2c\x27{$IP}\x27\54\x27{$DATE}\47\54\47{$TIME}\47\51"); if ($insertLog) { $pesan = "\174\x50\x65\162\155\x61\164\x61\x7c\120\x61\x79\155\x65\x6e\164\174" . $VI_VANUMBER . "\174\107\x65\x6e\x65\162\141\154\40\105\162\162\x6f\162"; } echo $response; } else { $check = mysqli_query($con, "\x53\105\114\x45\x43\x54\40\x2a\x20\x46\122\117\115\40\164\142\x70\145\x72\155\x61\164\x61\x5f\141\x75\164\150"); $result = mysqli_fetch_array($check); if (isset($result)) { if ($_SERVER["\120\x48\x50\137\101\x55\x54\x48\x5f\x55\123\105\122"] == $result["\125\123\x45\x52\x4e\101\x4d\105"] && hash("\x73\x68\141\62\65\66", $_SERVER["\x50\110\120\137\x41\125\124\110\x5f\x50\127"], false) == $result["\120\x41\123\123\127\117\122\104"]) { echo "\123\165\143\x63\145\163\x73"; } else { echo "\x46\141\151\x6c\x65\x64"; } } }

Function Calls

None

Variables

None

Stats

MD5 ff24ae93ba239ebfd675ae0539b84e4a
Eval Count 0
Decode Time 44 ms