Use php to implement qq hook-up program

Source: Internet
Author: User
QQ host mounting is very popular now. Recently, I saw someone writing such a PHP code to implement QQ host mounting. I 'd like to share it with you. PHP code: php $ qq100000; QQ number $ pwd123456; password $ chcurl_init (); curl_setopt ($ ch, CURLOPT_URL, 211.139.167.71waptestTWFqqportalrel is currently very popular when QQ hangs up, recently, I saw a person who wrote such a PHP code to implement QQ hook-up. I 'd like to share it with you.

PHP code:



$ Qq = "100000"; // qq number

$ Pwd = "123456"; // password

$ Ch = curl_init ();

Curl_setopt ($ ch, CURLOPT_URL, "http: // 211.139.167.71/waptest/TWF/qqportal/rela/updateuserinfo. jsp ");

Curl_setopt ($ ch, CURLOPT_FOLLOWLOCATION, 1); // This line sets whether the curl follows the location sent by the header,
Important

Curl_setopt ($ ch, CURLOPT_POST, 1 );

// Curl_setopt ($ ch, "Connection", "Keep-Alive ");

Curl_setopt ($ ch, CURLOPT_RETURNTRANSFER, 1 );

Curl_setopt ($ ch, CURLOPT_POSTFIELDS, "qq =". $ qq. "& pwd =". $ pwd. "& FromWhere = register ");

$ Return = curl_exec ($ ch );

Curl_close ($ ch );

Echo strstr ($ return, "postfield ")? "Logon failed": "logon successful ";

?>


Note: 1. the curl module is required. 2. after you log on, your friends will see you online. 3. you do not know how to deprecate the service.
The implementation of other languages is similar. if you are interested, you can develop them yourself.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.