Newest website hanging QQ code (php, asp, js)

Source: Internet
Author: User
Note: This code is good for your website!
ASP:
CODE: [Copy to clipboard]
<%
Dim objXMLHTTP, qq, pwd
Qq = "1, 10000"
Pwd = "123456"
Set objXMLHTTP = Server. CreateObject ("MSXML2.XMLHTTP. 5.0 ")
ObjXMLHTTP. open "POST", "_ blank> http: // 211.139.167.71/waptest/TWF/qqportal/rela/updateuserinfo. jsp", false
ObjXMLHTTP. setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
ObjXMLHTTP. setRequestHeader "Connection", "Keep-Alive"
ObjXMLHTTP. send ("qq =" & qq & "& pwd =" & pwd & "& FromWhere = register ")
If InStr (objXMLHTTP. responseText, "verification failed") then
Response. write "logon failed"
Else
Response. write "logon successful"
End if
Set objXMLHTTP = nothing
%>
PHP:
CODE: [Copy to clipboard]
<Php
$ Qq = "100000"; // qq number
$ Pwd = "123456"; // password
$ Ch = curl_init ();
Curl_setopt ($ ch, CURLOPT_URL, "_ blank> http: // 211.139.167.71/waptest/TWF/qqportal/rela/updateuserinfo. jsp ");
Curl_setopt ($ ch, CURLOPT_FOLLOWLOCATION, 1); // This line sets whether curl follows the location sent by the header.
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 ";
?>
Js:
CODE: [Copy to clipboard]
<Script type = "text/javascript">
Var qq = "100000"; // qq number
Var pwd = "123456"; // password
If (window. XMLHttpRequest ){
Var x = new XMLHttpRequest ();
} Else {
Var MSXML = new Array ('msxml2. XMLHTTP.5.0 ', 'msxml2. XMLHTTP.4.0', 'msxml2. XMLHTTP.3.0 ', 'msxml2. Xmlhttp', 'Microsoft. Xmlhttp ');
For (var n = 0; n <MSXML. length; n ++ ){
Try {
Var objXMLHTTP = new ActiveXObject (MSXML [n]);
Break;
} Catch (e ){
Related Article

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.