SQL Server下几个危险的扩展存储过程
时间:2024-01-18 06:49:25
这些存储过程如下:
sp_makewebtask
xp_cmdshell
xp_dirtree
xp_fileexist
xp_terminate_process
sp_oamethod
sp_oacreate
xp_regaddmultistring
xp_regdeletekey
xp_regdeletevalue
xp_regenumkeys
xp_regenumvalues
sp_add_job
sp_addtask
xp_regread
xp_regwrite
xp_readwebtask
xp_makewebtask
xp_regremovemultistring
对应措施:删除上述存储过程或可执行文件或修改存储过程相应用户组可执行权限,删除上述存储过程对应脚本为:
drop PROCEDURE sp_makewebtask
exec master..sp_dropextendedproc xp_cmdshell
exec master..sp_dropextendedproc xp_dirtree
exec master..sp_dropextendedproc xp_fileexist
exec master..sp_dropextendedproc xp_terminate_process
exec master..sp_dropextendedproc sp_oamethod
exec master..sp_dropextendedproc sp_oacreate
exec master..sp_dropextendedproc xp_regaddmultistring
exec master..sp_dropextendedproc xp_regdeletekey
exec master..sp_dropextendedproc xp_regdeletevalue
exec master..sp_dropextendedproc xp_regenumkeys
exec master..sp_dropextendedproc xp_regenumvalues
exec master..sp_dropextendedproc sp_add_job
exec master..sp_dropextendedproc sp_addtask
exec master..sp_dropextendedproc xp_regread
exec master..sp_dropextendedproc xp_regwrite
exec master..sp_dropextendedproc xp_readwebtask
exec master..sp_dropextendedproc xp_makewebtask
exec master..sp_dropextendedproc xp_regremovemultistring
举例:
exec xp_dirtree 'C:' 1,1
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Python实现排序方法常见的四种
mysql 8.0.15 winx64解压版图文安装教程
![](https://img.aspxhome.com/file/2023/7/71087_0s.jpg)
go micro微服务proto开发安装及使用规则
![](https://img.aspxhome.com/file/2023/0/99630_0s.png)
网页HTTP header头信息详解
asp清理站点缓存代码
SQL实现查询某字段的值为空的记录
![](https://img.aspxhome.com/file/2023/7/96227_0s.jpg)
SQL文本字段的数字排序问题
![](https://img.aspxhome.com/file/UploadPic/200811/18/o200852912144-57s.jpg)
Vue.js每天必学之过滤器与自定义过滤器
python爬虫如何解决图片验证码
Python实现利用最大公约数求三个正整数的最小公倍数示例
Python必备技能之debug调试教程详解
![](https://img.aspxhome.com/file/2023/0/68380_0s.png)
一篇文章带你了解谷歌这些大厂是怎么写 python 代码的
Python中使用subprocess库创建附加进程
![](https://img.aspxhome.com/file/2023/8/85138_0s.png)
Python内置函数详细解析
python爬取内容存入Excel实例
Mysql 数据库结构及索引类型
![](https://img.aspxhome.com/file/2023/6/108906_0s.webp)
golang 监听服务的信号,实现平滑启动,linux信号说明详解
![](https://img.aspxhome.com/file/2023/1/127041_0s.png)
python 边缘扩充方式的实现示例
![](https://img.aspxhome.com/file/2023/4/115514_0s.jpg)
python多线程对多核cpu的利用解析
![](https://img.aspxhome.com/file/2023/5/67935_0s.jpg)