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 kC7Qc; Hfnn9: $host = "\x6c\157\143\141\154\x68\157\x73\x74"; goto sDVIB; jhS..

Decoded Output download

<?php 
 goto kC7Qc; Hfnn9: $host = "localhost"; goto sDVIB; jhSR7: ini_set("display_errors", 1); goto eK1Ml; spyF5: $username = "root"; goto Hfnn9; KHqmD: $db = mysqli_connect($host, $username, $password, $database); goto ou4b3; ou4b3: if ($db == false) { die("Connection Failed: " . mysql_connect_error()); } goto e028L; LMw9B: mysqli_report(MYSQLI_REPORT_ERROR | E_DEPRECATED); goto KHqmD; e028L: if (!isset($_SESSION)) { session_start(); } goto ojdr1; kC7Qc: $database = "PointOfSale"; goto spyF5; fPNvF: $msg = ''; goto jhSR7; eK1Ml: error_reporting(E_ALL); goto LMw9B; sDVIB: $password = "$Sleekers243"; goto fPNvF; ojdr1: if (isset($_POST["logout"])) { $user = $_SESSION["username"]; $insert = "INSERT INTO logs (username,purpose) VALUES('{$user}','User {$user} logout')"; $logs = mysqli_query($db, $insert); session_destroy(); unset($_SESSION["username"]); header("location: ../index.php"); } ?>

Did this file decode correctly?

Original Code

<?php
 goto kC7Qc; Hfnn9: $host = "\x6c\157\143\141\154\x68\157\x73\x74"; goto sDVIB; jhSR7: ini_set("\x64\x69\163\x70\x6c\x61\171\137\x65\162\x72\157\x72\163", 1); goto eK1Ml; spyF5: $username = "\x72\157\157\x74"; goto Hfnn9; KHqmD: $db = mysqli_connect($host, $username, $password, $database); goto ou4b3; ou4b3: if ($db == false) { die("\103\x6f\x6e\x6e\x65\x63\x74\151\x6f\x6e\40\x46\x61\x69\x6c\x65\x64\72\x20" . mysql_connect_error()); } goto e028L; LMw9B: mysqli_report(MYSQLI_REPORT_ERROR | E_DEPRECATED); goto KHqmD; e028L: if (!isset($_SESSION)) { session_start(); } goto ojdr1; kC7Qc: $database = "\x50\157\151\x6e\x74\x4f\146\123\x61\x6c\145"; goto spyF5; fPNvF: $msg = ''; goto jhSR7; eK1Ml: error_reporting(E_ALL); goto LMw9B; sDVIB: $password = "\44\123\154\x65\145\x6b\x65\x72\163\62\x34\63"; goto fPNvF; ojdr1: if (isset($_POST["\x6c\157\147\x6f\165\x74"])) { $user = $_SESSION["\x75\x73\x65\162\156\x61\x6d\x65"]; $insert = "\x49\116\123\x45\x52\x54\x20\x49\x4e\x54\117\40\154\157\147\x73\x20\50\x75\x73\x65\x72\156\x61\155\x65\x2c\160\x75\x72\x70\157\x73\x65\51\x20\x56\x41\114\x55\x45\123\x28\x27{$user}\x27\54\47\x55\x73\x65\x72\40{$user}\40\154\157\147\x6f\x75\164\47\x29"; $logs = mysqli_query($db, $insert); session_destroy(); unset($_SESSION["\165\163\x65\162\x6e\141\x6d\145"]); header("\x6c\x6f\143\x61\164\151\157\156\72\40\56\x2e\x2f\x69\x6e\144\x65\170\x2e\x70\x68\x70"); }

Function Calls

None

Variables

None

Stats

MD5 5efc663c07bd67d50e6fdda0a316541c
Eval Count 0
Decode Time 53 ms