惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
SegmentFault 最新的问题
人人都是产品经理
人人都是产品经理
Blog — PlanetScale
Blog — PlanetScale
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Cisco Talos Blog
Cisco Talos Blog
Spread Privacy
Spread Privacy
Scott Helme
Scott Helme
C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Securelist
酷 壳 – CoolShell
酷 壳 – CoolShell
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
I
Intezer
博客园 - 叶小钗
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
雷峰网
雷峰网
量子位
Security Latest
Security Latest
P
Proofpoint News Feed
P
Privacy International News Feed
P
Palo Alto Networks Blog
D
DataBreaches.Net
大猫的无限游戏
大猫的无限游戏
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Google Online Security Blog
Google Online Security Blog
Webroot Blog
Webroot Blog
云风的 BLOG
云风的 BLOG
N
Netflix TechBlog - Medium
Vercel News
Vercel News
博客园 - 【当耐特】
C
CERT Recently Published Vulnerability Notes
Hugging Face - Blog
Hugging Face - Blog
月光博客
月光博客
Hacker News - Newest:
Hacker News - Newest: "LLM"
K
Kaspersky official blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Stack Overflow Blog
Stack Overflow Blog
AWS News Blog
AWS News Blog
博客园 - Franky
爱范儿
爱范儿
T
Tor Project blog
The GitHub Blog
The GitHub Blog
宝玉的分享
宝玉的分享
小众软件
小众软件
L
LINUX DO - 最新话题
Application and Cybersecurity Blog
Application and Cybersecurity Blog
W
WeLiveSecurity
SecWiki News
SecWiki News
L
LangChain Blog
I
InfoQ

博客园 - zzh5945

桌面上IE图标不见了怎么办? Microsoft JET Database Engine 错误 '80004005' 完整解决办法 NTLDR - zzh5945 - 博客园 如何在企业管理器里面把非NULL值改为NULL值 虚拟机网络连接方式和网络设置 Excel中按方向不能移动单位格 关于HttpWebRequest发生服务器协议冲突的解决办法 查询远程数据库 无法在WEB服务器上启动调试.未能启动ASP.NET或ATL SERVER 调试 网上邻居的内容不会自动刷新的解决方案? 更改网上邻居的登陆信息 两招轻松找回遗忘的WinXP管理员密码 如何去掉DataTable中的重复行 一款能够自动上传文件到ftp服务器的软件 怎样能使winform窗体的大小固定住,不能调整其大小 怎样让SQL只显示用户表 VS2005中解决方案管理器中看不到解决方案节点的解决办法 解密存储过程的存储过程 查询指定的字段所在的表
禁止master扩展存储过程xp_cmdshell命令
zzh5945 · 2009-05-11 · via 博客园 - zzh5945

Posted on 2009-05-11 13:25  zzh5945  阅读(578)  评论(0)    收藏  举报

sqlserver系统数据库master的 扩展存储过程xp_cmdshell可以让系统管理员以操作系统命令行解释器的方式执行给定的命令字符串,如此,就可以发起许多Dos命令,比如显示文件内容 exec master.dbo.xp_cmdshell 'dir c:\'等等。并以文本行方式返回任何输出,是一个功能非常强大的扩展存贮过程。
一般情况下,xp_cmdshell对管理员来说也是不必要的,xp_cmdshell的消除不会对Server造成
  任何影响。
   可以将xp_cmdshell消除:
   Use Master
   Exec sp_dropextendedproc N'xp_cmdshell' 
   Go
  
   如果需要的话,可以把xp_cmdshell恢复回来:
   Use Master
   Exec sp_addextendedproc N'xp_cmdshell', N'xplog70.dll' 
   Go