hacknotes

SQL Injection

Common Weakness Enumeration by Mitre Corporation

Types of SQL Injection

Types of Databases

Payloads and exploitation method will vary by database type. There are ten major types of SQL databases,

Manual SQLi Method

1. Checking SQLi Vulnerablity

Error Based and Union Based

'  
"  
' --  
" --  
' #  
" #  
' /*  
" /*  

or encodings of them will give SQL error.

Boolean Based

Time Based

2. Identifying SQL Database and Version

3. Retriving SQL DB Names

4. Retriving SQL Table Names

Top WAF Bypass Methods

SQL Injection Automation Tools

  1. SQLMAP
  2. JQL Injection
  3. Havij (Outdated)

Practice Labs

Resources and Notes