Skip to content
SQLI labs to test error based, Blind boolean based, Time based.
PHP Objective-C++ JavaScript CSS
Find file
Failed to load latest commit information.
Less-1 Adding error_reporting till lesson 20 Oct 31, 2014
Less-10 Adding error_reporting till lesson 20 Oct 31, 2014
Less-11 Adding error_reporting till lesson 20 Oct 31, 2014
Less-12 Adding error_reporting till lesson 20 Oct 31, 2014
Less-13 Adding error_reporting till lesson 20 Oct 31, 2014
Less-14 Adding error_reporting till lesson 20 Oct 31, 2014
Less-15 Adding error_reporting till lesson 20 Oct 31, 2014
Less-16 Adding error_reporting till lesson 20 Oct 31, 2014
Less-17 Adding error_reporting till lesson 20 Oct 31, 2014
Less-18 Adding error_reporting till lesson 20 Oct 31, 2014
Less-19 Adding error_reporting till lesson 20 Oct 31, 2014
Less-2 Adding error_reporting till lesson 20 Oct 31, 2014
Less-20 Adding error_reporting till lesson 20 Oct 31, 2014
Less-21 Adding chapter 32,33,34,35 and fixing and adjusting database backend … May 1, 2013
Less-22 Adding chapter 32,33,34,35 and fixing and adjusting database backend … May 1, 2013
Less-23 Adding chapter 32,33,34,35 and fixing and adjusting database backend … May 1, 2013
Less-24 Adding chapter 32,33,34,35 and fixing and adjusting database backend … May 1, 2013
Less-25 Adding chapter 32,33,34,35 and fixing and adjusting database backend … May 1, 2013
Less-25a Adding chapter 32,33,34,35 and fixing and adjusting database backend … May 1, 2013
Less-26 Adding chapter 32,33,34,35 and fixing and adjusting database backend … May 1, 2013
Less-26a Adding chapter 32,33,34,35 and fixing and adjusting database backend … May 1, 2013
Less-27 Adding error_reporting till lesson 20 Oct 31, 2014
Less-27a Adding chapter 32,33,34,35 and fixing and adjusting database backend … May 1, 2013
Less-28 Adding error_reporting till lesson 20 Oct 31, 2014
Less-28a Adding chapter 32,33,34,35 and fixing and adjusting database backend … May 1, 2013
Less-29 Adding chapter 32,33,34,35 and fixing and adjusting database backend … May 1, 2013
Less-3 Adding error_reporting till lesson 20 Oct 31, 2014
Less-30 Adding chapter 32,33,34,35 and fixing and adjusting database backend … May 1, 2013
Less-31 Adding chapter 32,33,34,35 and fixing and adjusting database backend … May 1, 2013
Less-32 Adding modules 36,37 on mysql_real_escape_string bypass May 3, 2013
Less-33 Adding modules 36,37 on mysql_real_escape_string bypass May 3, 2013
Less-34 Adding modules 36,37 on mysql_real_escape_string bypass May 3, 2013
Less-35 Adding modules 36,37 on mysql_real_escape_string bypass May 3, 2013
Less-36 Adding modules 36,37 on mysql_real_escape_string bypass May 3, 2013
Less-37 Adding modules 36,37 on mysql_real_escape_string bypass May 3, 2013
Less-38 Adding Less46,47,48,49,50,51,52,53 Nov 17, 2013
Less-39 Adding new lessons on stacked queries May 25, 2013
Less-4 Adding error_reporting till lesson 20 Oct 31, 2014
Less-40 Adding modules on Stacked Queries Less-38,39,40,41,42,43,44,45 May 27, 2013
Less-41 Adding modules on Stacked Queries Less-38,39,40,41,42,43,44,45 May 26, 2013
Less-42 Adding modules on Stacked Queries Less-38,39,40,41,42,43,44,45 May 26, 2013
Less-43 Adding modules on Stacked Queries Less-38,39,40,41,42,43,44,45 May 26, 2013
Less-44 Adding modules on Stacked Queries Less-38,39,40,41,42,43,44,45 May 26, 2013
Less-45 Adding modules on Stacked Queries Less-38,39,40,41,42,43,44,45 May 26, 2013
Less-46 Adding Less46,47,48,49,50,51,52,53 Nov 16, 2013
Less-47 Adding Less46,47,48,49,50,51,52,53 Nov 16, 2013
Less-48 Adding Less46,47,48,49,50,51,52,53 Nov 16, 2013
Less-49 Adding Less46,47,48,49,50,51,52,53 Nov 16, 2013
Less-5 Adding error_reporting till lesson 20 Oct 31, 2014
Less-50 Add updated index pages, removing result.txt Oct 4, 2014
Less-51 Add updated index pages, removing result.txt Oct 4, 2014
Less-52 Add updated index pages, removing result.txt Oct 4, 2014
Less-53 Add updated index pages, removing result.txt Oct 4, 2014
Less-54 Adding error_reporting till lesson 20 Oct 31, 2014
Less-55 adding facebook page link Oct 7, 2014
Less-56 Adding same correction to other challenges as last one Oct 6, 2014
Less-57 Adding same correction to other challenges as last one Oct 6, 2014
Less-58 Adding same correction to other challenges as last one Oct 6, 2014
Less-59 Adding same correction to other challenges as last one Oct 6, 2014
Less-6 Adding error_reporting till lesson 20 Oct 31, 2014
Less-60 Adding same correction to other challenges as last one Oct 6, 2014
Less-61 Adding same correction to other challenges as last one Oct 6, 2014
Less-62 Adding same correction to other challenges as last one Oct 6, 2014
Less-63 Adding same correction to other challenges as last one Oct 6, 2014
Less-64 Adding same correction to other challenges as last one Oct 6, 2014
Less-65 Adding same correction to other challenges as last one Oct 6, 2014
Less-7 Adding error_reporting till lesson 20 Oct 31, 2014
Less-8 Adding error_reporting till lesson 20 Oct 31, 2014
Less-9 Adding error_reporting till lesson 20 Oct 31, 2014
images Adding challenge Less 54,55,56,57,58,59,60,61,62 Oct 3, 2014
index-1.html_files Adding modules 36,37 on mysql_real_escape_string bypass May 3, 2013
index-2.html_files Add updated index pages, removing result.txt Oct 4, 2014
index-3.html_files Add updated index pages, removing result.txt Oct 4, 2014
index.html_files Adding chapter 32,33,34,35 and fixing and adjusting database backend … May 1, 2013
sql-connections fixing issue with autopopulate script Oct 4, 2014
SQL Injections-1.mm Adding modules 36,37 on mysql_real_escape_string bypass May 3, 2013
SQL Injections-2.mm Add updated index pages, removing result.txt Oct 4, 2014
SQL Injections-3.mm Add updated index pages, removing result.txt Oct 4, 2014
SQL Injections.mm Commit for adding Less-20,21,22,23 Aug 25, 2012
SQL Injections.png Commit for adding Less-20,21,22,23 Aug 25, 2012
index-1.html Add updated index pages, removing result.txt Oct 4, 2014
index-2.html Add updated index pages, removing result.txt Oct 4, 2014
index-3.html Add updated index pages, removing result.txt Oct 4, 2014
index.html Add updated index pages, removing result.txt Oct 4, 2014
readme.md adding facebook page link Oct 7, 2014
readme.md~ updating readme.md Oct 3, 2014
readme.txt updating readme.md Oct 2, 2014
readme.txt~ updating readme.md Oct 2, 2014
sql-lab.sql Commit for adding Less-20,21,22,23 Aug 25, 2012
tomcat-files.zip Adding chapter 32,33,34,35 and fixing and adjusting database backend … May 1, 2013

readme.md

README

SQLI-LABS is a platform to learn SQLI Following labs are covered for GET and POST scenarios:

  1. Error Based Injections (Union Select)
    1. String
    2. Intiger
  2. Error Based Injections (Double Injection Based)

  3. BLIND Injections: 1.Boolian Based 2.Time Based

  4. Update Query Injection.
  5. Insert Query Injections.
  6. Header Injections. 1.Referer based. 2.UserAgent based. 3.Cookie based.
  7. Second Order Injections
  8. Bypassing WAF
    1. Bypassing Blacklist filters Stripping comments Stripping OR & AND Stripping SPACES and COMMENTS Stripping UNION & SELECT
    2. Impidence mismatch
  9. Bypass addslashes()
  10. Bypassing mysql_real_escape_string. (under special conditions)
  11. Stacked SQL injections.
  12. Secondary channel extraction

Install Instructions:

  1. Unzip the contents inside the apache folder, for example under /var/www
  2. This will create a folder sql-labs under it. else you can use git command from within /var/www folder. /var/www folder and then use following command> git clone https://github.com/Audi-1/sqli-labs.git sqli-labs
  3. Open the file "db-creds.inc" which is under sql-connections folder inside the sql-labs folder.
  4. Update your MYSQL database username and password.(default for Backtrack are used root:toor)
  5. From your browser access the sql-labs folder to load index.html
  6. Click on the link setup/resetDB to create database, create tables and populate Data.
  7. Labs ready to be used, click on lesson number to open the lesson page.
  8. Enjoy the labs

Corrosponding walkthrough video tutorials and explainations can be found at:

  1. http://dummy2dummies.blogspot.com
  2. http://www.securitytube.net/user/Audi
  3. https://www.facebook.com/sqlilabs

you can also find the read along book at https://leanpub.com/SQLI-LABS, work is under process.

Challenge Section added: Less-54 to Less - 61 special challenge lessons added to repository for testing skills learnt from the other Lab lessons.

Something went wrong with that request. Please try again.