在利用DVWA平台复现sql注入时。
sql语句:
1' union select 1,group_concat(table_name) from information_schema.tables where table_schema=database()#
union报错,在该种情形下,在PHPStudy中安装phpmyadmin。
对PHPmyadmin的配置进行修改,然后直接用PHPstudy直接打开PHPmyadmin,
登陆名:root
登陆密码:root
PHPstudy中 可以查看用户和密码。
(1)登陆成功界面
(2)打开dvwa操作的数据库
(3) 修改utf_unicode_ci为utf_general_ci