Home >php教程 >php手册 >QQ空间浏览自动发表留言魔力图片

QQ空间浏览自动发表留言魔力图片

WBOY
WBOYOriginal
2016-06-07 11:43:561296browse

技术宅毁灭世界,QQ空间,魔力图片。
class qq {<br>     <br>     public $sid;<br>     public $http;<br>     public $qq_num;<br>     <br>     function __construct() {<br>         $this->http = new http;<br>     }<br>     <br>     function login($qq_num, $qq_pwd) {<br>         $data = $this->http->get("http://pt.3g.qq.com/");<br>         preg_match("/action=\"(.+)?\"/", $data, $matches);<br>         $action = $matches[1];<br>         $params = array();<br>         $params["login_url"] = "http://pt.3g.qq.com/s?aid=nLogin";<br>         $params["sidtype"] = 1;<br>         $params["loginTitle"] = "手机腾讯网";<br>         $params["bid"] = 0;<br>         $params["qq"] = $qq_num;<br>         $params["pwd"] = $qq_pwd;<br>         $params["loginType"] =3;<br>         $data = $this->http->post($action, http_build_query($params));<br>         if(count(explode("验证码",$data))>1){<br>             exit();<br>         }<br>         preg_match("/sid=(.+?)&/", $data, $matches);<br>         $this->sid = $matches[1];<br>         return $this->sid;<br>     }<br>     <br>     function sendMsg($to_num, $msg, $sid = 0) {<br>         $sid = $sid ? $sid : $this->sid;<br>         if (!$sid)<br>             exit();<br>         $params = array();<br>         $params["msg"] = $msg;<br>         $params["sign"] = 1;<br>         $params["ispostmsg"] = 1;<br>         $params["B_UID"] = $to_num;<br>         $params["entry"] = "board";<br>         $url = "http://blog60.z.qq.com/mmsgb/add_msg_action_switch.jsp?sid=" . $sid;<br>         $data = $this->http->post($url, http_build_query($params));<br>         return $data;<br>     }<br>     <br> }<br> <br> include "include/qq.class.php";<br> <br> $referer=$_SERVER['HTTP_REFERER'];<br> <br> if(!strpos($referer,'infocenter')){<br>     header("HTTP/1.0 500 Internal Server Error");<br>     exit();<br> }<br> <br> $urlArr = explode('/',$referer);<br> $qq_num = $urlArr['3'];<br> <br> if($qq_num == "QQ"){<br>     header("HTTP/1.0 500 Internal Server Error");<br>     exit();<br> }<br> <br> $im = @imagecreatefromjpeg("images/0.jpg");<br> Header("Content-type: image/jpeg");<br> Imagejpeg($im);<br> ImageDestroy($im);<br> <br> $qq = new qq;<br> $qq -> sendMsg($qq_num,"你于".date('Y年m月d日H时i分')."浏览了本用户的空间日志!\nBY:QQ空间机器人。",$qq -> login("QQ","密码"));QQ空间浏览自动发表留言魔力图片

AD:真正免费,域名+虚机+企业邮箱=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