已掉线,重新登录

首页 > 绿虎论坛 > 杂类 > 超级灌水 (发帖)

标题: 谷歌镜像PHP虚拟主机版 v1.0

作者: @Ta

时间: 2016-07-31

点击: 973

谷歌镜像PHP虚拟主机版 v1.0 
<?php
//谷歌镜像插件 by:@堂妹妹的
namespace Proxy\Plugin;
use Proxy\Plugin\AbstractPlugin;
use Proxy\Event\ProxyEvent;

class GooglePlugin extends AbstractPlugin {
protected $url_pattern = 'google.com';
public function onCompleted(ProxyEvent $event){

$response = $event['response'];
$html9 = $response->getContent();
if(strpos($html9,'<meta content="telephone=no" name="format-detection">')){
 $isMatched = preg_match_all('/<div class=\"_OXf\"><h3 class=\"r\"><a href=\"(.*?)\" (.*?)>(.*?)<\/a><\/h3>/', $html9, $matches);
//print_r($matches[1]);
foreach($matches[1] as $value){ 
    $valuetmp=$value;
    $value=preg_match_all('/(.*)=(.*)/', $value, $tmp);
    $value=$tmp[2][0];
    $deurl=base64_decrypt($value);
    
    $deurl='./link.php?url='.base64_encode($deurl);
    $html9 =str_replace($valuetmp,$deurl,$html9);    
    
   }
    
}else {
    $isMatched = preg_match_all('/<div class=\"g\">(.*?)<h3 class=\"r\"><a href=\"(.*?)\" (.*?)>(.*?)<\/a><\/h3>/', $html9, $matches);

foreach($matches[2] as $value){ 
    $valuetmp=$value;
    $value=preg_match_all('/(.*)=(.*)/', $value, $tmp);
    $value=$tmp[2][0];
   $deurl='./link.php?url='.base64_encode(base64_decrypt($value));
    $html9 =str_replace($valuetmp,$deurl,$html9);
 
}

}
        $html9=preg_replace("/ping=\"\/url(.*?)\" oncontextmenu=\"(.*?)\"/",'',$html9);
$response->setContent($html9);

}}?>

[隐藏样式|查看源码]


『回复列表(2|隐藏机器人聊天)』

1. @堂妹妹的 .0.
(/@Ta/2016-07-31 09:25//)

5. @堂妹妹的,好吧
(/@Ta/2016-08-01 11:59//)

回复需要登录

9月10日 17:05 星期三

本站由hu60wap6驱动

备案号: 京ICP备18041936号-1