Home  >  Article  >  php教程  >  google PR劫持查询程序

google PR劫持查询程序

WBOY
WBOYOriginal
2016-06-08 17:28:07949browse

$fp = fsockopen("www.google.cn", 80, $errno, $errstr, 30);
if(!$fp){
 echo "$errstr ($errno)
";
}else{
 $out = "GET /search?oe=utf8&ie=utf8&source=uds&start=0&hl=zh-CN&q=info%3A".$Domain." HTTP/1.1 " ;
 $out .= "Host: www.google.cn " ;
 $out .= "Connection: Close " ;
 fwrite($fp, $out);
 while (!feof($fp)) {
  $data = fgets($fp, 2080);
  $Arr=spliti("

搜索结果

",$data);
  $Arr=spliti("

",$Arr[1]);
  echo $Arr[0];
 }
 fclose($fp);
 return 0;
}

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn