dvbbs
收藏本页
联系我们
论坛帮助
dvbbs

>> 电脑网络管理、网页制作、免费素材、经验交流、软硬件......
搜一搜更多此类问题 
肿瘤咨询在线论坛站务服务『 电脑网络 』 → 手把手教你写小偷程序

您是本帖的第 1579 个阅读者
树形 打印
标题:
手把手教你写小偷程序
管理员
帅哥哟,离线,有人找我吗?
头衔: 义工
等级:管理员
威望:1
文章:827
积分:4593
注册:2004年1月31日
楼主
 点击这里发送电子邮件给管理员

发贴心情
手把手教你写小偷程序
手把手教你写小偷程序
手把手教你写小偷程序
作者:未知 来源:网络 日期:2003-12-23 点击:691



先选中一个你想 “偷” 的网页程序。。。
我这里看中了它。。呵呵 。。。很多妹妹图片。。。口水中。。
http://www.linkmm.com/photo/ads2.html
然后建立个ASP网页,先把以下代码复制进去
<%function bytes2BSTR(vIn) 
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 


Url = "http://www.linkmm.com/photo/ads2.html";;
set oSend=createobject("Microsoft.XMLHTTP")
SourceCode = oSend.open ("GET",url,false) 
oSend.send()
if err.number<>0 then
Response.write err.description
Response.End()
end if 
SourceCode = bytes2BSTR(oSend.responseBody)%>



其中Url = "http://www.linkmm.com/photo/ads2.html";;就是你想要 偷 的网页,换成你需要的就可以了。。
这个时候response.write 一下。。是不是很多图片看不见啊。。不急,我们有replace呢。。把你现在的网页查看下原文件,,把原来的网页查看下愿文件对比下就知道怎么让这些无法显示的显示出来。。。比起那些一个个replace替换图片的方法
用这个方法好多了就是在有src的地方在他前面直接替换网址多方便呵呵。。
在写这段代码。。程序就完了呵呵
<%baseurl1="http://www.linkmm.com/photo";;
SourceCode =replace(sourcecode,"src=""img/","src=""http://www.linkmm.com/photo/img/";;)
SourceCode =replace(sourcecode,"new.gif",baseurl1&"/new.gif")
SourceCode =replace(sourcecode,"href=""photo888","href=""http://www.linkmm.com/photo/photo888";;)
SourceCode =replace(sourcecode,"site.css","http://www.linkmm.com/photo/site.css";;)
response.write SourceCode%>



是不是很简单啊。完整代码如下:
<html>



<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="refresh" content="3600">
<title></title>
</head>



<body>



<%
function bytes2BSTR(vIn) 
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 



Url = "http://www.linkmm.com/photo/ads2.html";;
set oSend=createobject("Microsoft.XMLHTTP")
SourceCode = oSend.open ("GET",url,false) 
oSend.send()
if err.number<>0 then
Response.write err.description
Response.End()
end if 
SourceCode = bytes2BSTR(oSend.responseBody)
baseurl1="http://www.linkmm.com/photo";;
SourceCode =replace(sourcecode,"src=""img/","src=""http://www.linkmm.com/photo/img/";;)
SourceCode =replace(sourcecode,"new.gif",baseurl1&"/new.gif")
SourceCode =replace(sourcecode,"href=""photo888","href=""http://www.linkmm.com/photo/photo888";;)
SourceCode =replace(sourcecode,"site.css","http://www.linkmm.com/photo/site.css";;)
response.write SourceCode
%>
</body>



</html>

我是网站清洁工。
ip地址已设置保密
2004-2-22 18:43:38

 1   1   1/1页      1    
网上贸易 创造奇迹! 阿里巴巴 Alibaba
Copyright ©2000 - 2002 chinaonco.net
Powered By Dvbbs Version 7.1.0 Sp1
页面执行时间 0.15527 秒, 4 次数据查询