被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
呵呵,有意思的东东~
代理,代理
小马真小气
挖靠。你怎么把代码公布出来了啊?
想让我们的服务器也被封ip 吗?
日你啊啊
该!