2006-9-5 作者:Tony 来源:艺术迷收集(fansart.com) 点击:1368
对前一个网友的程序进行了少许修改,完成的一个非常简单的小偷程序。
说简单是因为,原网页就比较规则。所以只要是查找和替换,就可以将想要的内容提取出来,大概所有的ASP或者PHP生成的网页都有这个特点吧。
可惜不能把文件上载所以只能是把程序的列表拷贝下来:共两个文件,List.asp和dispArticle.Asp。我在本地实验是可以的,但是没有拿到网上测一下,也不知在网上行不。
List.asp:
<html><head><title>一个简单的小偷程序,希望您喜欢</title>
<META NAME='ROBOTS' CONTENT = 'All'>
<link href="CSS/css.css" rel="stylesheet" type="text/css">
</head>
<%
'Server.ScriptTimeOut=90
dim id,ccc_top,ccc_body
on error resume next
if Cint(request("page"))<=1 then
NoncePage=1
url="http://www.ynian.com/haha/List.Asp?ClassID=2"
else
NoncePage=request("page")
url="http://www.ynian.com/haha/List.Asp?ClassID=2&Page=" & CStr(NoncePage)
end if
'url="http://www.ynian.com/haha/List.Asp?ClassID=2"
ccc_code=getHTTPPage(url)
if err.number=0 then
start=Instr(ccc_code,"<table width=""100%"" border=""0"" cellspacing=""0"">")
over=Instr(ccc_code,"<script>document.title='永年信息网---乐翻天暴笑娱乐城 - 搞笑网文'</script>")
ccc_top=mid(ccc_code,start,over-start)
else
wscript.echo err.description
end if
%>
<body>
<CENTER>
<table border="1" width="750" cellspacing="0" cellpadding="0" bordercolorlight="#F1F1F1" bordercolordark="#FFFFFF"><%=ccc_top%></TD></TR></TBODY></TABLE>
<table border="1" width="750" cellspacing="0" cellpadding="0" bordercolorlight="#F1F1F1"
bordercolordark="#FFFFFF"></TD></TR></TBODY></TABLE>
</CENTER></BODY></HTML>
<%
function getHTTPPage(url)
on error resume next
dim http
set http=Server.createobject("Microsoft.XMLHTTP")
Http.open "GET",url,false
Http.send()
if Http.readystate<>4 then
exit function
end if
getHTTPPage=bytes2BSTR(Http.responseBody)
set http=nothing
if err.number<>0 then err.Clear
end function
Function bytes2BSTR(vIn)
dim strReturn
dim i1,ThisCharCode,NextCharCode
strReturn = ""
For i1 = 1 To LenB(vIn)
ThisCharCode = AscB(MidB(vIn,i1,1))
If ThisCharCode < &H80 Then
strReturn = strReturn & Chr(ThisCharCode)
Else
NextCharCode = AscB(MidB(vIn,i1+1,1))
strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
i1 = i1 + 1
End If
Next
bytes2BSTR = strReturn
End Function
%>
dispArticle.Asp:
<html><head><title>显示部分</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META NAME='ROBOTS' CONTENT = 'All'>
<link href="CSS/css.css" rel="stylesheet" type="text/css">
</head>
<%
'Server.ScriptTimeOut=90
dim id,ccc_top,ccc_body
on error resume next
if Cint(request("id"))<=1 then
NoncePage=94
url="http://www.ynian.com/haha/dispArticle.Asp?ID=94"
else
NoncePage=request("id")
url="http://www.ynian.com/haha/dispArticle.Asp?ID=" & CStr(NoncePage)
end if
'url="http://www.ynian.com/haha/List.Asp?ClassID=2"
ccc_code=getHTTPPage(url)
ccc_code = replace(ccc_code,"AsE??","Asp?id=")
if err.number=0 then
start=Instr(ccc_code,"<TD align=middle height=40 vAlign=center width=""98%"">")
over=Instr(ccc_code,"<strong>供稿:</strong>永年信息网---乐翻天暴笑娱乐城</TD>")
ccc_top=mid(ccc_code,start,over-start)
else
wscript.echo err.description
end if
%>
<body>
<CENTER>
<table border="1" width="750" cellspacing="0" cellpadding="0" bordercolorlight="#F1F1F1" bordercolordark="#FFFFFF"><%=over%></TD></TR></TBODY></TABLE>
<table border="1" width="750" cellspacing="0" cellpadding="0" bordercolorlight="#F1F1F1"
bordercolordark="#FFFFFF"><%=start%></TD></TR></TBODY></TABLE>
<table border="1" width="750" cellspacing="0" cellpadding="0" bordercolorlight="#F1F1F1"
bordercolordark="#FFFFFF"><%=ccc_top%></TD></TR></TBODY></TABLE>
</CENTER></BODY></HTML>
<%
function getHTTPPage(url)
on error resume next
dim http
set http=Server.createobject("Microsoft.XMLHTTP")
Http.open "GET",url,false
Http.send()
if Http.readystate<>4 then
exit function
end if
getHTTPPage=bytes2BSTR(Http.responseBody)
set http=nothing
if err.number<>0 then err.Clear
end function
Function bytes2BSTR(vIn)
dim strReturn
dim i1,ThisCharCode,NextCharCode
strReturn = ""
For i1 = 1 To LenB(vIn)
ThisCharCode = AscB(MidB(vIn,i1,1))
If ThisCharCode < &H80 Then
strReturn = strReturn & Chr(ThisCharCode)
Else
NextCharCode = AscB(MidB(vIn,i1+1,1))
strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
i1 = i1 + 1
End If
Next
bytes2BSTR = strReturn
End Function
%>
说简单是因为,原网页就比较规则。所以只要是查找和替换,就可以将想要的内容提取出来,大概所有的ASP或者PHP生成的网页都有这个特点吧。
可惜不能把文件上载所以只能是把程序的列表拷贝下来:共两个文件,List.asp和dispArticle.Asp。我在本地实验是可以的,但是没有拿到网上测一下,也不知在网上行不。
List.asp:
<html><head><title>一个简单的小偷程序,希望您喜欢</title>
<META NAME='ROBOTS' CONTENT = 'All'>
<link href="CSS/css.css" rel="stylesheet" type="text/css">
</head>
<%
'Server.ScriptTimeOut=90
dim id,ccc_top,ccc_body
on error resume next
if Cint(request("page"))<=1 then
NoncePage=1
url="http://www.ynian.com/haha/List.Asp?ClassID=2"
else
NoncePage=request("page")
url="http://www.ynian.com/haha/List.Asp?ClassID=2&Page=" & CStr(NoncePage)
end if
'url="http://www.ynian.com/haha/List.Asp?ClassID=2"
ccc_code=getHTTPPage(url)
if err.number=0 then
start=Instr(ccc_code,"<table width=""100%"" border=""0"" cellspacing=""0"">")
over=Instr(ccc_code,"<script>document.title='永年信息网---乐翻天暴笑娱乐城 - 搞笑网文'</script>")
ccc_top=mid(ccc_code,start,over-start)
else
wscript.echo err.description
end if
%>
<body>
<CENTER>
<table border="1" width="750" cellspacing="0" cellpadding="0" bordercolorlight="#F1F1F1" bordercolordark="#FFFFFF"><%=ccc_top%></TD></TR></TBODY></TABLE>
<table border="1" width="750" cellspacing="0" cellpadding="0" bordercolorlight="#F1F1F1"
bordercolordark="#FFFFFF"></TD></TR></TBODY></TABLE>
</CENTER></BODY></HTML>
<%
function getHTTPPage(url)
on error resume next
dim http
set http=Server.createobject("Microsoft.XMLHTTP")
Http.open "GET",url,false
Http.send()
if Http.readystate<>4 then
exit function
end if
getHTTPPage=bytes2BSTR(Http.responseBody)
set http=nothing
if err.number<>0 then err.Clear
end function
Function bytes2BSTR(vIn)
dim strReturn
dim i1,ThisCharCode,NextCharCode
strReturn = ""
For i1 = 1 To LenB(vIn)
ThisCharCode = AscB(MidB(vIn,i1,1))
If ThisCharCode < &H80 Then
strReturn = strReturn & Chr(ThisCharCode)
Else
NextCharCode = AscB(MidB(vIn,i1+1,1))
strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
i1 = i1 + 1
End If
Next
bytes2BSTR = strReturn
End Function
%>
dispArticle.Asp:
<html><head><title>显示部分</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<META NAME='ROBOTS' CONTENT = 'All'>
<link href="CSS/css.css" rel="stylesheet" type="text/css">
</head>
<%
'Server.ScriptTimeOut=90
dim id,ccc_top,ccc_body
on error resume next
if Cint(request("id"))<=1 then
NoncePage=94
url="http://www.ynian.com/haha/dispArticle.Asp?ID=94"
else
NoncePage=request("id")
url="http://www.ynian.com/haha/dispArticle.Asp?ID=" & CStr(NoncePage)
end if
'url="http://www.ynian.com/haha/List.Asp?ClassID=2"
ccc_code=getHTTPPage(url)
ccc_code = replace(ccc_code,"AsE??","Asp?id=")
if err.number=0 then
start=Instr(ccc_code,"<TD align=middle height=40 vAlign=center width=""98%"">")
over=Instr(ccc_code,"<strong>供稿:</strong>永年信息网---乐翻天暴笑娱乐城</TD>")
ccc_top=mid(ccc_code,start,over-start)
else
wscript.echo err.description
end if
%>
<body>
<CENTER>
<table border="1" width="750" cellspacing="0" cellpadding="0" bordercolorlight="#F1F1F1" bordercolordark="#FFFFFF"><%=over%></TD></TR></TBODY></TABLE>
<table border="1" width="750" cellspacing="0" cellpadding="0" bordercolorlight="#F1F1F1"
bordercolordark="#FFFFFF"><%=start%></TD></TR></TBODY></TABLE>
<table border="1" width="750" cellspacing="0" cellpadding="0" bordercolorlight="#F1F1F1"
bordercolordark="#FFFFFF"><%=ccc_top%></TD></TR></TBODY></TABLE>
</CENTER></BODY></HTML>
<%
function getHTTPPage(url)
on error resume next
dim http
set http=Server.createobject("Microsoft.XMLHTTP")
Http.open "GET",url,false
Http.send()
if Http.readystate<>4 then
exit function
end if
getHTTPPage=bytes2BSTR(Http.responseBody)
set http=nothing
if err.number<>0 then err.Clear
end function
Function bytes2BSTR(vIn)
dim strReturn
dim i1,ThisCharCode,NextCharCode
strReturn = ""
For i1 = 1 To LenB(vIn)
ThisCharCode = AscB(MidB(vIn,i1,1))
If ThisCharCode < &H80 Then
strReturn = strReturn & Chr(ThisCharCode)
Else
NextCharCode = AscB(MidB(vIn,i1+1,1))
strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
i1 = i1 + 1
End If
Next
bytes2BSTR = strReturn
End Function
%>
google搜索:小偷程序
声明:本站刊载此文不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。如有疑问请与站长联系。
相关链接更多...
- web标准第一天:选择什么样的DOCTYPE2006-9-5
- 一个简单的小偷程序2006-9-5
- 小偷程序大揭秘--技巧篇[图]2006-9-5
- 小偷程序大揭秘(1)--基础篇2006-9-5
- 为什么好设计是来自于差的设计2006-9-5
- 如何将远程页面的所有内容下载到本地[图]2006-9-5
网友评论
目前没有评论!
全站精华
图文精彩
![韩国CG天后李素雅作品[图]--CG插画](http://www.fansart.com/uploadfile/200682543923453.jpg)
【2006-8-25 12:09:00】
韩国CG天后李素雅作品
韩国CG天后李素雅作品
![2006夏装搭配的美丽之最,美女+靓衣[图]--时装魅影](http://www.fansart.com/uploadfile/200672243703881.jpg)
【2006-7-22 11:21:40】
2006夏装搭配的美丽之最,美女+靓衣
2006夏装搭配的美丽之最,美女+靓衣
![韩国室内设计效果图欣赏[图]--环境艺术](http://www.fansart.com/uploadfile/200671964096361.jpg)
【2006-7-19 15:11:59】
韩国室内设计效果图欣赏
韩国室内设计效果图欣赏
![2006夏装搭配的美丽之最,美女+靓衣[图]--时装魅影](http://www.fansart.com/uploadfile/200671463233205.jpg)
【2006-7-14 17:09:53】
2006夏装搭配的美丽之最,美女+靓衣
2006夏装搭配的美丽之最,美女+靓衣
![瓷砖画册设计[图]--平面广告](http://www.fansart.com/uploadfile/200662167119201.gif)
【2006-6-21 18:36:45】
瓷砖画册设计
瓷砖画册设计
![韩国知名三维制作者李素雅cg作品欣赏[图]--CG插画](http://www.fansart.com/uploadfile/20066967597489.gif)
【2006-6-9 18:40:03】
韩国知名三维制作者李素雅cg作品欣赏
韩国知名三维制作者李素雅cg作品欣赏
![王开立的象素画-"华容点翠"系列1[图]--网页设计](http://www.fansart.com/uploadfile/20066967740609.gif)
【2006-6-8 17:40:50】
王开立的象素画-"华容点翠"系列1
王开立的象素画-"华容点翠"系列1

【2006-5-10 18:31:05】
风景摄影欣赏molnies 1
风景摄影欣赏molnies 1
![人像摄影:《炫影》(1)[图]--摄影艺术](http://www.fansart.com/uploadfile/20065966294533.gif)
【2006-5-9 18:18:49】
人像摄影:《炫影》(1)
人像摄影:《炫影》(1)

【2006-5-8 11:37:48】
韩国品牌YSB夏装 冷艳美人异国风情(3)
韩国品牌YSB夏装 冷艳美人异国风情(3)

【2006-5-8 9:52:42】
MIKE H的CG插画作品欣赏(1)
MIKE H的CG插画作品欣赏(1)
![经典样本设计欣赏(国人作品)1[图]--平面广告](http://www.fansart.com/uploadfile/200642664631465.jpg)
【2006-4-26 17:57:18】
经典样本设计欣赏(国人作品)1
经典样本设计欣赏(国人作品)1

【2006-4-26 14:27:13】
新锐CG插画 Monday to Friday
新锐CG插画 Monday to Friday

【2006-4-26 13:34:46】
Natascha Roeoesli的人物CG插画作品欣赏(1)
Natascha Roeoesli的人物CG插画作品欣赏(1)
![水木清华地产广告欣赏[图]--平面广告](http://www.fansart.com/uploadfile/200642634295921.jpg)
【2006-4-26 9:31:54】
水木清华地产广告欣赏
水木清华地产广告欣赏
![2006夏日流行时尚,创意无限街头华丽[图]--时装魅影](http://www.fansart.com/uploadfile/200642261089093.jpg)
【2006-4-22 16:46:51】
2006夏日流行时尚,创意无限街头华丽
2006夏日流行时尚,创意无限街头华丽
![万科西山庭院.格.沉.尊[图]--平面广告](http://www.fansart.com/uploadfile/200642133015939.jpg)
【2006-4-21 9:08:35】
万科西山庭院.格.沉.尊
万科西山庭院.格.沉.尊
![泊林花园推广故事绘本(2)[图]--CG插画](http://www.fansart.com/uploadfile/200642042197577.jpg)
【2006-4-20 11:43:23】
泊林花园推广故事绘本(2)
泊林花园推广故事绘本(2)
![泊林花园推广故事绘本(1)[图]--CG插画](http://www.fansart.com/uploadfile/200642041664949.jpg)
【2006-4-20 11:34:33】
泊林花园推广故事绘本(1)
泊林花园推广故事绘本(1)
![房地产广告设计-之水墨风格1[图]--平面广告](http://www.fansart.com/uploadfile/200641457308753.jpg)
【2006-4-14 15:56:06】
房地产广告设计-之水墨风格1
房地产广告设计-之水墨风格1
