SQL Injection
SQL injection: Methodology, payloads, tools
MySQL (3306)MSSQL (1433)SQLMAP
Type of SQLi
Fuzzing

HTTP Header Exploitation


MySQL (3306)


Web ShellBind and Reverse Shell





HTTP Header Exploitation



Email injections
WAF Bypass
SQLMAP



SQLMAPSqliSniper ghauri
Interesting Books
$searchInput = $_POST['findUser'];
$query = "select * from logins where username like '%$searchInput'";
$result = $conn->query($query);select * from logins where username like '%$searchInput''%1'; DROP TABLE users;'select * from logins where username like '%1'; DROP TABLE users;'Error: near line 1: near "'": syntax error
Cheatsheet
One Liners
SQLi All
Blind SQLi
Time Based SQLi
SQLi Discovery
Payload
URL Encoded
Recon
Nmap
Generic Payloads
Polyglot
Authentication Bypass
Fuzzing

Comments
Auth Bypass with comments

ID parameter
Header Injection
HTTP Header ExploitationUnion
Detect number of columns - Using ORDER BY


Detect number of columns - using NULL
Detect data type
Database Enumeration
Fingerprinting
Payload
When to Use
Expected Output
Wrong Output
Database type
Query
Database
Tables
Columns
Data
Reading Files
MySQL (3306)DB User
User Privileges

Write Files
Web Shell


Resources
Payloads
Blind SQL Injection - Conditional Response


Detect length

Blind Time Based SQLi
Time Based SQL Injection


Nuclei Template
WAF Bypass - Cloudflare
Time Based SQLi in HTTP Headers
HTTP Header ExploitationCustomBSQLi - LostSec
OAT Blind SQLi
Numeric SQL Injection
Wildcard SQL injection - LIKE clause
Error-based SQL injection
Conditional Error



Turn an otherwise blind SQL injection vulnerability into a visible one
Fragmented SQL Injection - two endpoints
Email SQL injection
Email injectionsBypass - WAF / Filters
WAF BypassSQLMap - All in one
SQLMAPBypass combo


Imperva gzip bypass
No Space (%20) - bypass using whitespace alternatives
No Whitespace - bypass using comments
No Whitespace - bypass using parenthesis
No Comma - bypass using OFFSET, FROM and JOIN
Blacklist using keywords - bypass using uppercase/lowercase
Blacklist using keywords case insensitive - bypass using an equivalent operator
Information_schema.tables alternative
Version alternative
Reading / Writing Files
Description
Query
XML-based SQL Injection

Polyglots SQLi
Resources
Payload
Tools
SQLMAPInteresting Books
Interesting BooksSupport this Gitbook
Last updated






