sql server环境测试: 几个特性: 1.sql server兼容性可以说是最差的. 举例: select x from y where id=1 字符串查询 select x from y where id='1' 这是会报错的,不允许的 select x from y where id="1" 假设y表有列名name,那么 select x from y where id="name" 为真. 那么利用这个特性我们可以爆破这个表的列名. sql serve…
1.利用错误消息提取信息 1.1 枚举当前表与列 --' 抛出错误:选择列表中的列 'users.id' 无效,因为该列没有包含在聚合函数或 GROUP BY 子句中. 发现表名为 'users',存在列名为 'id' --' 抛出错误:选择列表中的列 'users.username' 无效,因为该列没有包含在聚合函数或 GROUP BY 子句中. 可以利用having子句继续递归查询(如:select * from users where username='root' and passwor…
https://www.mssqltips.com/sql-server-tip-category/226/sql-server-on-linux// Microsoft has recently released SQL Server to run on Linux servers. Sometimes we need to enable a trace flag globally on SQL Server and in this tip I will demonstrate how to…
Refer to: http://harriyott.com/2006/01/sql-server-performance-tips A colleague of mine has been looking at SQL Server performance, and come up with a great set of tips (mostly gleaned from this website): Does your SQL statement have a WHERE clause? I…