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"> <title>RDP Cookie U..
Decoded Output download
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>RDP Cookie Update</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
#cookieForm {
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
width: 80%;
max-width: 400px;
}
label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
input[type="text"] {
width: calc(100% - 22px); /* Adjusted to account for padding and borders */
padding: 10px;
margin-bottom: 15px;
border-radius: 4px;
border: 1px solid #ccc;
transition: border-color 0.3s ease;
box-sizing: border-box; /* Include padding and border in the width */
}
input[type="submit"] {
width: 100%;
padding: 10px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s ease;
}
input[type="submit"]:hover {
background-color: #0056b3;
}
.message {
margin-top: 15px;
display: none;
color: green;
}
#responseDisplay {
position: fixed;
bottom: 0;
width: 100%;
text-align: center;
font-size: 24px;
color: red;
animation: blink 1s linear infinite;
}
@keyframes blink {
50% {
opacity: 0;
}
}
</style>
</head>
<body>
<?php
$hostIp = '65.108.91.10'; // Define the Host IP here
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$phpsessid = substr($_POST['phpssid'] ?? '', 0, 38); // Limiting to 20 characters
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "http://{$hostIp}:3000/update-cookie",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => http_build_query(array('phpssid' => $phpsessid)),
CURLOPT_HTTPHEADER => array(
"Content-Type: application/x-www-form-urlencoded"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo '<span class="message">Cookies updated</span>';
}
}
?>
<form id="cookieForm" method="post">
<label for="phpssid">PHP Session ID :</label>
<input type="text" id="phpssid" name="phpssid" maxlength="38" placeholder="Enter PHP Session ID" required>
<input type="submit" value="Update Cookie">
<span class="message">Cookies are updated</span>
<div id="responseDisplay"></div>
</form>
<script>
// Check if the response is not empty and display the message for 3 seconds
var response = "<?php echo $response; ?>";
if (response.trim() !== "") {
var messageDisplay = document.createElement("span");
messageDisplay.innerText = "Cookie Updated...";
messageDisplay.style.color = "red";
// Append the message display to the form
var form = document.getElementById("cookieForm");
form.appendChild(messageDisplay);
// Hide the message after 3 seconds
setTimeout(function() {
messageDisplay.style.display = "none";
}, 3000);
}
</script>
</body>
</html>
Did this file decode correctly?
Original Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>RDP Cookie Update</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
#cookieForm {
background-color: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
width: 80%;
max-width: 400px;
}
label {
display: block;
margin-bottom: 5px;
font-weight: bold;
}
input[type="text"] {
width: calc(100% - 22px); /* Adjusted to account for padding and borders */
padding: 10px;
margin-bottom: 15px;
border-radius: 4px;
border: 1px solid #ccc;
transition: border-color 0.3s ease;
box-sizing: border-box; /* Include padding and border in the width */
}
input[type="submit"] {
width: 100%;
padding: 10px;
background-color: #007bff;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s ease;
}
input[type="submit"]:hover {
background-color: #0056b3;
}
.message {
margin-top: 15px;
display: none;
color: green;
}
#responseDisplay {
position: fixed;
bottom: 0;
width: 100%;
text-align: center;
font-size: 24px;
color: red;
animation: blink 1s linear infinite;
}
@keyframes blink {
50% {
opacity: 0;
}
}
</style>
</head>
<body>
<?php
$hostIp = '65.108.91.10'; // Define the Host IP here
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$phpsessid = substr($_POST['phpssid'] ?? '', 0, 38); // Limiting to 20 characters
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "http://{$hostIp}:3000/update-cookie",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => http_build_query(array('phpssid' => $phpsessid)),
CURLOPT_HTTPHEADER => array(
"Content-Type: application/x-www-form-urlencoded"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo '<span class="message">Cookies updated</span>';
}
}
?>
<form id="cookieForm" method="post">
<label for="phpssid">PHP Session ID :</label>
<input type="text" id="phpssid" name="phpssid" maxlength="38" placeholder="Enter PHP Session ID" required>
<input type="submit" value="Update Cookie">
<span class="message">Cookies are updated</span>
<div id="responseDisplay"></div>
</form>
<script>
// Check if the response is not empty and display the message for 3 seconds
var response = "<?php echo $response; ?>";
if (response.trim() !== "") {
var messageDisplay = document.createElement("span");
messageDisplay.innerText = "Cookie Updated...";
messageDisplay.style.color = "red";
// Append the message display to the form
var form = document.getElementById("cookieForm");
form.appendChild(messageDisplay);
// Hide the message after 3 seconds
setTimeout(function() {
messageDisplay.style.display = "none";
}, 3000);
}
</script>
</body>
</html>
Function Calls
None |
Stats
MD5 | 69b0846b53e6f7064cd5da568d95c129 |
Eval Count | 0 |
Decode Time | 73 ms |