使用到的工具:
DBeaver下载地址:
Download | DBeaver Communityhttps://dbeaver.io/download/
直接下载即可!
问题:
在复现DVWA的SQL注入时:
输入:
1' union select 1,table_name from information_schema.tables where table_schema='dvwa'#
查询表名的时候出现错误。
1. 使用数据库连接工具:DBeaver连接dvwa的数据库。
查看数据库发现,出现这个问题是因为information_schema数据库里面都是utf8_general_ci,而靶场网站user表中的数据都是utf8_unicode_ci。将user表中更改为与information_schema一样的就可以了。
注:我最开始仅仅更改了表的,但是仍然出现了报错信息,后来发现需要逐一更改每一个字段
最好把这几个表都改成utf8_general_ci,即可!
这时候再次输入,即可!