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.