【原创】成功入侵一政府网站——善后工作
[color=blue]今天成功入侵一政府网站,一进webshell看到的东西吓死人[/color];wlP#P |[color=blue][/color]
[color=blue]有个10MB左右的数据库,全是人才信息方面的,一个表有1w多条记录!!![/color]
[color=blue][/color]c1} @/[V jfR_vFy
[color=blue]入侵的方法不方便说,关键是修补他们的漏洞[/color]
[color=blue][/color]G4v_ nlE"F2Y
[color=blue]首先修补了他们的注入漏洞,他们只修补了conn.asp[/color]7X'ez J$E zEIA
[color=blue][/color]
[color=blue]但是数据库连接文件竟然是dbconn.asp,写入一下代码[/color][code]<% .Ww+]&\#z9{9uK
Dim flashack_Post,flashack_Get,flashack_In,flashack_Inf,flashack_Xh,flashack_db,flashack_dbstr 7Z~_z3c)}z%_W2~
flashack_In = "'※;※and※exec※insert※select※delete※update※count※*※%※chr※mid※master※truncate※char※declare"
flashack_Inf = split(flashack_In,"※")
If Request.Form<>"" Then %? @3SNu%?*dK-{2O
For Each flashack_Post In Request.Form
+[N~ SY5C!x;X'\w
For flashack_Xh=0 To Ubound(flashack_Inf)
If Instr(LCase(Request.Form(flashack_Post)),flashack_Inf(flashack_Xh))<>0 Then
Response.Write "<Script Language=JavaScript>alert('柔肠寸断[3.A.S.T]提示你↓\n\n请不要在参数中包含非法字符尝试注入,QQ:790653916!\n\nHTTP://WWW.3AST.COM.CN');</Script>" .u9@/h[&o3q!Uc
Response.Write "非法操作!<br>"
Response.Write "操作IP:"&Request.ServerVariables("REMOTE_ADDR")&"<br>" *_P2X?9_;p C
Response.Write "操作时间:"&Now&"<br>" 'y-P'vbX7qr
Response.Write "操作页面:"&Request.ServerVariables("URL")&"<br>"
Response.Write "提交方式:POST<br>" #h&c