笔记183 未能找到存储过程'master..xpcmdshell'.或无法装载引用DLLxpsql70解决方法.dll

笔记183 未能找到存储过程'master..xpcmdshell'.或无法装载引用DLLxpsql70解决方法.dll

exec master.sys.sp_addextendedproc 'xp_cmdshell', 'C:\Program Files\Microsoft SQL Server\MSSQL\Binn\xplog70.dll'

xp_cmdshell存储过程就是通过xplog70.dll文件加载


exec sp_addextendedproc 'xp_cmdshell', 'xpsql70.dll'
exec sp_addextendedproc 'xp_cmdshell','xpweb70.dll'

 1 --未能找到存储过程'master..xpcmdshell'.或无法装载引用DLLxpsql70解决方法.dll
 2 --1.未能找到存储过程'master..xpcmdshell'.
 3 --恢复方法:查询分离器连接后,
 4 --第一步执行:
 5 EXEC sp_addextendedproc xp_cmdshell,@dllname ='xplog70.dll'declare @o int
 6 --第二步执行:
 7 sp_addextendedproc 'xp_cmdshell', 'xpsql70.dll'
 8 --然后按F5键命令执行完毕
 9   
10 --2 无法装载 DLL xpsql70.dll 或该DLL所引用的某一 DLL。原因126(找不到指定模块。)
11 --恢复方法:查询分离器连接后,
12 --第一步执行:
13 sp_dropextendedproc "xp_cmdshell"
14 --第二步执行:
15 sp_addextendedproc 'xp_cmdshell', 'xpsql70.dll'
16 --然后按F5键命令执行完毕
17   
18 --3 无法在库 xpweb70.dll 中找到函数 xp_cmdshell。原因: 127(找不到指定的程序。)
19 --恢复方法:查询分离器连接后,
20 --第一步执行:
21 exec sp_dropextendedproc 'xp_cmdshell'
22 --第二步执行:
23 exec sp_addextendedproc 'xp_cmdshell','xpweb70.dll'
24 --然后按F5键命令执行完毕
25   
26 --4.终极方法.
27 --如果以上方法均不可恢复,请尝试用下面的办法直接添加帐户:
28 --查询分离器连接后,
29 --2000servser系统:
30 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'
31 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'
32 --xp或2003server系统:
33 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'
34 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'

 

posted @ 2013-08-04 12:55  桦仔  阅读(1355)  评论(0编辑  收藏  举报