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); classCloudSEK{ private$func_no; private$func_name; ..

Decoded Output download

<?php 
 
error_reporting(0); 
 
classCloudSEK{ 
 
private$func_no; 
private$func_name; 
 
function__construct($no,$name){ 
if($no==NULL&&$name==NULL){ 
$this->func_no=$no; 
$this->func_name=$name; 
} 
} 
 
function__wakeup(){ 
$func_map=array( 
1=>"XVigil", 
2=>"BeVigil", 
3=>"GetMeDemFlagz", 
); 
 
$func_no=$this->func_no; 
$func_name=str_rot13($this->func_name); 
 
if($func_map[$func_no]===$func_name){ 
$this->$func_name(); 
} 
else{ 
echo"<h3>InvalidObjectData</h3>"; 
} 
} 
 
functionXVigil(){ 
echo"<h3>XVigilisacybersecurityplatformdesignedtohelporganizationsmonitorandmitigatepotentialsecuritythreatsandvulnerabilitiesacrossthedigitallandscape.</h3>"; 
} 
 
functionBeVigil(){ 
echo"<h3>World'sfirstSecuritySearchEnginemobilesthatmakessuretheapplicationsinstalledinyourphonearesafe.</h3>"; 
} 
 
functionGetMeDemFlagz(){ 
$flag_file="/tmp/flag.txt"; 
if(file_exists($flag_file)){ 
$file_contents=file_get_contents($flag_file); 
echo$file_contents; 
} 
else{ 
$err_msg="<h3>FileNotFound!</h3>"; 
$file_contents=$err_msg; 
echo$err_msg; 
} 
} 
} 
 
//$cloudsek=newCloudSEK(1,"XVigil"); 
$sess=$_GET["sess"]; 
if(!isset($sess)){ 
exit(); 
} 
$data=base64_decode($sess); 
$obj=unserialize($data); 
 
?>

Did this file decode correctly?

Original Code

<?php

error_reporting(0);

classCloudSEK{

private$func_no;
private$func_name;

function__construct($no,$name){
if($no==NULL&&$name==NULL){
$this->func_no=$no;
$this->func_name=$name;
}
}

function__wakeup(){
$func_map=array(
1=>"XVigil",
2=>"BeVigil",
3=>"GetMeDemFlagz",
);

$func_no=$this->func_no;
$func_name=str_rot13($this->func_name);

if($func_map[$func_no]===$func_name){
$this->$func_name();
}
else{
echo"<h3>InvalidObjectData</h3>";
}
}

functionXVigil(){
echo"<h3>XVigilisacybersecurityplatformdesignedtohelporganizationsmonitorandmitigatepotentialsecuritythreatsandvulnerabilitiesacrossthedigitallandscape.</h3>";
}

functionBeVigil(){
echo"<h3>World'sfirstSecuritySearchEnginemobilesthatmakessuretheapplicationsinstalledinyourphonearesafe.</h3>";
}

functionGetMeDemFlagz(){
$flag_file="/tmp/flag.txt";
if(file_exists($flag_file)){
$file_contents=file_get_contents($flag_file);
echo$file_contents;
}
else{
$err_msg="<h3>FileNotFound!</h3>";
$file_contents=$err_msg;
echo$err_msg;
}
}
}

//$cloudsek=newCloudSEK(1,"XVigil");
$sess=$_GET["sess"];
if(!isset($sess)){
exit();
}
$data=base64_decode($sess);
$obj=unserialize($data);

?>

Function Calls

None

Variables

None

Stats

MD5 da10ca16aa3aa90f702227e4763feba0
Eval Count 0
Decode Time 38 ms