Error-visible UNION-based SQL injection
From a single quote that breaks the query to a full UNION SELECT dump: detect the injection, count the columns, and pull the database out through a product page — with equivalent payloads for MySQL, PostgreSQL, MSSQL and Oracle.
SQL Injection (UNION-based File Read)
A UNION-based SQL injection usually ends at dumping the database. With MySQL's load_file() it goes further: you turn the injection into an arbitrary file read on the database server's filesystem. This lesson covers how to confirm load_file() works, how to read /etc/passwd, how to pivot from the users you find to SSH keys and service configs, and how to discover readable files by fuzzing.
SQL Injection File Write
A SQL injection that can write files turns into full command execution on the web server. In this lesson we exploit a classic MySQL INTO OUTFILE primitive to drop a PHP webshell into the web root, then upgrade it to an interactive reverse shell.