被QQ封了服务器IP

一天就这么点IP也能被发现?只要我再服务器上请求这个地址就会出现转向页面.唉,多灾多难的QQ偷窥程序.

$fp = fsockopen("qq.qq.com", 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)
\n";
exit();
} else {
$out = "GET /qq?uin=$qq HTTP/1.1\r\n";
$out .= "Host: qq.qq.com\r\n";
$out .= "Connection: Close\r\n\r\n";
fwrite($fp, $out);
while (!feof($fp)) {
$html.=fgets($fp, 128);
}
fclose($fp);
}
$html = iconv('gbk','utf-8',$html);
preg_match('/str1(.+?)str2/is',$html,$m);
$nickname=trim($m[1]);
echo $nickname;

HTTP/1.1 200 OK
Date: Wed, 30 May 2007 02:41:27 GMT
Server: Apache
Pragma: No-cache
Set-Cookie: skey=; PATH=/; DOMAIN=tencent.com;
Set-Cookie: uin=g0; PATH=/; DOMAIN=tencent.com;
Cache-Control: max-age=0
Expires: Wed, 30 May 2007 02:41:27 GMT
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html

5 Responses to 被QQ封了服务器IP

  1. imsugar says:

    呵呵,有意思的东东~

  2. Dull says:

    代理,代理

  3. cute says:

    小马真小气

  4. 大咪咪 says:

    挖靠。你怎么把代码公布出来了啊?
    想让我们的服务器也被封ip 吗?
    日你啊啊

  5. 皇甫红光 says:

    该! :em16:

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>