ASP小偷程序的编写
小偷程序读用URL传值的网页很容易,可是URL不变,用的是INPUT传值的网页应该怎么做???网页里的页数选择为列表框的,可是列表框的选择页面的参数给隐藏了,如何找出隐藏...
小偷程序读用URL传值的网页很容易,可是URL不变,用的是INPUT传值的网页应该怎么做???
网页里的页数选择为列表框的,可是列表框的选择页面的参数给隐藏了,如何找出隐藏的内容 展开
网页里的页数选择为列表框的,可是列表框的选择页面的参数给隐藏了,如何找出隐藏的内容 展开
3个回答
展开全部
我最近也正在研究这个东西,楼主看看这段程序,我用这段程序成功获取了不少网站的信息。具体到不同的网站可能会有一些小的修改,我们可以一起讨论。
<%
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,"GB2312")
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,"GB2312")
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
%>
<%
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,"GB2312")
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,"GB2312")
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
%>
AiPPT
2024-09-19 广告
2024-09-19 广告
随着AI技术的飞速发展,如今市面上涌现了许多实用易操作的AI生成工具1、简介:AiPPT: 这款AI工具智能理解用户输入的主题,提供“AI智能生成”和“导入本地大纲”的选项,生成的PPT内容丰富多样,可自由编辑和添加元素,图表类型包括柱状图...
点击进入详情页
本回答由AiPPT提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询