Просмотр файла load/upload/3/index.php

Размер файла: 2.35Kb
<?php
$host = "wab.ru";
$path = "/them.php?$QUERY_STRING";
$fp = fsockopen($host,80,$errno,$errstr,30);
if(!$fp) echo"$errstr ($errno)<br>\n";
else{
$headers = "GET $path HTTP/1.0\r\n";
$headers .= "Host: $host\r\n";
$headers .= "Accept: *\r\n";
$headers .="Accept-Charset: UTF-8\r\n";  // <<====
$headers .= "Accept-Charset: *\r\n";
$headers .= "Accept-Encoding: deflate\r\n";
$headers .= "Accept-Language: ru\r\n";
$headers .= "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; ru) Opera 8.01\r\n\r\n";
fwrite($fp,$headers);
while($file != "\r\n") $file = fgets($fp,128);
$file = "";
while(!feof($fp)) $file .= fgets($fp,4096);
fclose($fp);
}
$file = preg_replace('/<!DOCTYPE(.*?)<body>/si','',$file);
$file = preg_replace('/<div><a href="http:\/\/pay.wab.ru(.*?)<\/div>/si','',$file);
$file = preg_replace('/<div class="ten" style="text-align: center">(.*?)<\/div>/si','',$file);
$file = preg_replace('/<form(.*?)>(.*?)<\/form>/si','',$file);
$file = preg_replace('//siU','',$file);
$file = preg_replace('/<div class="main"(.*?)>(.*?)<\/div>/si','',$file);
$file = preg_replace('//si','',$file);
$file = preg_replace('/<a href="http:\/\/beegrafic.wapland.ru\/(.*?)\/mp3\/" class="text3">Бесплатные MP3 - архив #2<\/a>/siU','',$file);
$file = preg_replace('/<a href="http:\/\/beegrafic(.*?)>(.*?)<\/a>/si','',$file);
$file = preg_replace('//si','',$file);
$file = preg_replace('/<\/body><\/html>/i','',$file);
///--str
$file = str_ireplace('<?xml version="1.0" encoding="UTF-8"?>','',$file);
$file = str_ireplace('•','',$file);
$file = str_ireplace('them.php?','load/index.php?url='.$url.'&amp;',$file);
$file = str_ireplace('/file/','http://wab.ru/file/',$file);
$file = str_ireplace('<a href="/load/index.php?rubr_id=search&amp;1851213669" class="link2">Поиск мелодии</a><br/>','',$file);
$file = str_ireplace('<a href="http://wab.ru" class="link2">На главную Сайта</a>','',$file);
$file = str_ireplace('Поиск мелодии','',$file);
$file = preg_replace('/<a href="http:\/\/(.*?)mmska.ru\/(.*?)>(.*?)<\/a><br\/>/si','',$file);
$file = str_ireplace('<div class="d1"><div>','<div class="d1">',$file);
$file = str_ireplace('<div class="sec" style="text-align: left"></div>','',$file);
$file=trim($file);
if($file){
echo $file;
}else{echo 'Пашол в хуй мудило ванючее';}
?>