Using PHP to realize QQ hanging machine

Source: Internet
Author: User

QQ Hanging machine is very popular, recently saw a high man wrote such a section of PHP code to achieve QQ hanging machine, special take out to share with you.

PHP Code:


<php

$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 is set curl whether to follow 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")? "Login Failed": "Login succeeded";

?>


Note: 1, Need curl module support,
2, after landing, your friends will see you online
3, do not know how to line.
The implementation of other languages is similar, interested friends can develop their own hands.



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.