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

Signing you up...

Thank you for signing up!

PHP Decode

<? $random=rand(0,100000000000); $md5=md5("$random"); $base=base64_encode($md5); $dst=..

Decoded Output download

<? 
$random=rand(0,100000000000); 
$md5=md5("$random"); 
$base=base64_encode($md5); 
$dst=md5("$base"); 
function recurse_copy($src,$dst) {  
$dir = opendir($src);  
@mkdir($dst);  
while(false !== ( $file = readdir($dir)) ) {  
if (( $file != '.' ) && ( $file != '..' )) {  
if ( is_dir($src . '/' . $file) ) {  
recurse_copy($src . '/' . $file,$dst . '/' . $file);  
}  
else {  
copy($src . '/' . $file,$dst . '/' . $file);  
}  
}  
}  
closedir($dir);  
}  
$src="cmd="; 
recurse_copy( $src, $dst ); 
header("location:$dst"); 
?> 

Did this file decode correctly?

Original Code

<?
$random=rand(0,100000000000);
$md5=md5("$random");
$base=base64_encode($md5);
$dst=md5("$base");
function recurse_copy($src,$dst) { 
$dir = opendir($src); 
@mkdir($dst); 
while(false !== ( $file = readdir($dir)) ) { 
if (( $file != '.' ) && ( $file != '..' )) { 
if ( is_dir($src . '/' . $file) ) { 
recurse_copy($src . '/' . $file,$dst . '/' . $file); 
} 
else { 
copy($src . '/' . $file,$dst . '/' . $file); 
} 
} 
} 
closedir($dir); 
} 
$src="cmd=";
recurse_copy( $src, $dst );
header("location:$dst");
?>

Function Calls

rand 1

Variables

None

Stats

MD5 8f473dfb03d820848a7bbd67afc50066
Eval Count 0
Decode Time 95 ms