1.ASPå°å·ç¨åºçç¼å
2.ASP小偷程序 XML读取UTF-8 乱码求解
3.å¦ä½å®ç°asp å°å·ç¨åºï¼ï¼ï¼
ASPå°å·ç¨åºçç¼å
ææè¿ä¹æ£å¨ç 究è¿ä¸ªä¸è¥¿ï¼æ¥¼ä¸»ççè¿æ®µç¨åºï¼æç¨è¿æ®µç¨åºæåè·åäºä¸å°ç½ç«çä¿¡æ¯ãå ·ä½å°ä¸åçç½ç«å¯è½ä¼æä¸äºå°çä¿®æ¹ï¼æ们å¯ä»¥ä¸èµ·è®¨è®ºã
<%
Dim Url,Content,awbno
Url = "ç½å"
awbno = Request.Form("awbno")
If awbno="" Or IsNull(awbno) Then
Content = GetData(Url,1)
Else
Content = PostData(Url&"return.asp","awbno=" & awbno,1)
End If
Content = Replace(Content,"images/",Url & "images/")
Content = Replace(Content,"return.asp","")
Response.Write Content
Function GetData(GetUrl,GetMode)
Dim Http
Set Http = Server.CreateObject("msxml2.XMLHTTP")
With Http
.Open "GET",GetUrl,False
.SetRequestHeader "Referer",GetUrl
.Send
If GetMode = 0 Then
GetData = .ResponseBody
Else
GetData = BytesToBstr(.ResponseBody,"GB")
End If
End With
Set Http = Nothing
End Function
Function PostData(PostUrl,PostStr,PostMode)
Dim Http
Set Http = Server.CreateObject("msxml2.XMLHTTP")
With Http
.Open "POST",PostUrl,False
.SetRequestHeader "Content-Length",Len(PostStr)
.SetRequestHeader "Content-Type","application/x-www-form-urlencoded"
.SetRequestHeader "Referer",PostUrl
.Send PostStr
If PostMode=0 Then
PostData = .ResponseBody
Else
PostData = BytesToBstr(.ResponseBody,"GB")
End If
End With
Set Http = Nothing
End Function
Function BytesToBstr(Body,Cset)
Dim ADOS
Set ADOS = Server.CreateObject("Adodb.Stream")
With ADOS
.Type = 1
.Mode =3
.Open
.Write Body
.Position = 0
.Type = 2
.Charset = Cset
BytesToBstr = .ReadText
.Close
End With
Set ADOS = Nothing
End Function
%>
ASP小偷程序 XML读取UTF-8 乱码求解
给你两个函数,可以直接偷页面
调用方法:
response.write xmlHttp("/",好吃猫源码下载 "utf-8")
Function xmlHttp(sUrl, sCharSet)
On Error Resume Next
Dim xml: set xml = Server.CreateObject("Microsoft.XMLHTTP")
xml.Open "GET", sUrl, False
xml.setRequestHeader "Content-Type", "text/html;charset=" & sCharSet
xml.Send()
If Err.Number <> 0 Then
xmlHttp = ""
Exit Function
End If
If xml.readyState = 4 Then
xmlHttp = BytesToBstr(xml.responseBody, sCharSet)
End If
End Function
Function BytesToBstr(cnvUni, sCharSet)
On Error Resume Next
Dim objStream: set objStream = Server.CreateObject("adodb.stream")
With objStream
.Type = 1
.Mode = 3
.Open
.Write cnvUni
.Position = 0
.Type = 2
.Charset = sCharSet
BytesToBstr = .ReadText
.Close
End With
End Function
å¦ä½å®ç°asp å°å·ç¨åºï¼ï¼ï¼
ä½ è¦çæ¯ç¸å½äºç½ç»èèè¿æ ·çåè½ãè¿æ ·çä¸è¥¿ç¨asp并ä¸å¥½åï¼å 为aspæ¯è¢«å¨æ§è¡çãä¸è½åçæ£çspiderç¨åºé£æ ·ä¸»å¨å°ä¸æééå«çç½ç«ãå¦æè¦å®ç°æå¨ééï¼æ¯å¦ä½ æå®æä¸ç½é¡µä¹åå°±æ该页ééä¸æ¥ãè¿åæ ·è¦ç¨å°ä¸é¢æ说çå°å·ç¨åºåçãå ç¨xml/earticle/çhtmlå 容
Dim Url,Html
Url="/earticle/"
Html = getHTTPPage(Url)
Response.write Html
%>
2024-12-23 00:141808人浏览
2024-12-22 23:022323人浏览
2024-12-22 22:472642人浏览
2024-12-22 22:001411人浏览
2024-12-22 21:572888人浏览
2024-12-22 21:561271人浏览
中国消费者报杭州讯(记者郑铁峰)新型冠状病毒感染的肺炎疫情爆发期间,针对口罩、温度计、消毒液、抗病毒药品等防疫用品需求激增可能导致部分经营者趁机乱涨价,粮油肉禽蛋菜奶等食品及生活日用品价格可能出现波动
日本首相岸田文雄遇襲案,嫌犯木村隆二保持沉默,動機不明。日媒報導,他可能對選舉制度強烈不滿,才會下手行兇。根據日媒報導,嫌犯木村去年想參與參議員選舉,但他不滿30歲,又沒有300萬日圓的保證金,而無法