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

Signing you up...

Thank you for signing up!

PHP Decode

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml..

Decoded Output download

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
	<title>PHP</title>
	</head>
	<body bgcolor="#000000" text="#FFFFFF">
	<form action="" method="POST">
	:<input type="text" name="name">
	<input type="submit" name="submit" value="">
	</form>
	:<br>
	c:\windows<br>
	c:\Documents and Settings<br>
        c:\Program Files<br>
	c:\Documents and Settings\All Users\Application Data\Microsoft\Media Index<br>
 	C:\php\PEAR<br>
 	C:\Program Files\Zend\ZendOptimizer-3.3.0<br>
	C:\Program Files\Common Files<br>
	C:i24.com\iissafe\log<br>
	C:\windows<br>
	C:\RECYCLER<br>
	C:\windows	emp<br>
	c:\Program Files\Microsoft SQL Server\90\Shared\ErrorDumps<br>
	f:
ecycler<br>
	C:\Program Files\Symantec AntiVirus\SAVRT<br>
	C:\WINDOWSi24.com\FreeHost<br>
	C:\php\dev<br>
	C:\~1<br>  
	C:\System Volume Information<br>
	C:\Program Files\Zend\ZendOptimizer-3.3.0\docs<br>
	C:\Documents and Settings\All Users\DRM<br>
	C:\Documents and Settings\All Users\Application Data\McAfee\DesktopProtection<br>
	C:\Documents and Settings\All Users\Application Datasafe\softmgr<br>
	C:\Program Files\Microsoft SQL Server\90\Shared\ErrorDumps<br>
	<p>BY:10086 QQ:10086 blog:www.chouwazi.com</p>
	<hr>
	<body>
 
 
</html>
 
 
<?php	
	set_time_limit(120);
	if($_POST['submit']){
     $a=$_POST['names'];
	if(file_exists($a)){
 
	dir_File($a);
	}else{
	echo "";
	}
	}
 
 
	function dir_File($dirname){
 
	$dir_handle=@opendir($dirname);
	while($fileName=@readdir($dir_handle)){
	if($fileName!="." && $fileName!=".."){
	$dirFile=$dirname."\".$fileName;
	//echo $dirFile."<br>";
	if(is_dir($dirFile)){
	//echo $dirFile.""."<br>";
   if(is_writable($dirFile)){
	echo $dirFile.""."<br>";
	echo $dir=dir_File($dirFile);
 
	}
	}
	}
	}
	}
 
?>

Did this file decode correctly?

Original Code

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
	<title>PHP</title>
	</head>
	<body bgcolor="#000000" text="#FFFFFF">
	<form action="" method="POST">
	:<input type="text" name="name">
	<input type="submit" name="submit" value="">
	</form>
	:<br>
	c:\windows<br>
	c:\Documents and Settings<br>
        c:\Program Files<br>
	c:\Documents and Settings\All Users\Application Data\Microsoft\Media Index<br>
 	C:\php\PEAR<br>
 	C:\Program Files\Zend\ZendOptimizer-3.3.0<br>
	C:\Program Files\Common Files<br>
	C:\7i24.com\iissafe\log<br>
	C:\windows<br>
	C:\RECYCLER<br>
	C:\windows\temp<br>
	c:\Program Files\Microsoft SQL Server\90\Shared\ErrorDumps<br>
	f:\recycler<br>
	C:\Program Files\Symantec AntiVirus\SAVRT<br>
	C:\WINDOWS\7i24.com\FreeHost<br>
	C:\php\dev<br>
	C:\~1<br>  
	C:\System Volume Information<br>
	C:\Program Files\Zend\ZendOptimizer-3.3.0\docs<br>
	C:\Documents and Settings\All Users\DRM<br>
	C:\Documents and Settings\All Users\Application Data\McAfee\DesktopProtection<br>
	C:\Documents and Settings\All Users\Application Data\360safe\softmgr<br>
	C:\Program Files\Microsoft SQL Server\90\Shared\ErrorDumps<br>
	<p>BY:10086 QQ:10086 blog:www.chouwazi.com</p>
	<hr>
	<body>
 
 
</html>
 
 
<?php	
	set_time_limit(120);
	if($_POST['submit']){
     $a=$_POST['names'];
	if(file_exists($a)){
 
	dir_File($a);
	}else{
	echo "";
	}
	}
 
 
	function dir_File($dirname){
 
	$dir_handle=@opendir($dirname);
	while($fileName=@readdir($dir_handle)){
	if($fileName!="." && $fileName!=".."){
	$dirFile=$dirname."\\".$fileName;
	//echo $dirFile."<br>";
	if(is_dir($dirFile)){
	//echo $dirFile.""."<br>";
   if(is_writable($dirFile)){
	echo $dirFile.""."<br>";
	echo $dir=dir_File($dirFile);
 
	}
	}
	}
	}
	}
 
?>

Function Calls

dir_File 1
file_exists 1
set_time_limit 1

Variables

$a None

Stats

MD5 e0b486ed94677c4d8d27d0d6d4ffcfd9
Eval Count 0
Decode Time 127 ms