Overview
No visible output difference. Inject conditionalSLEEP/WAITFOR — measure response time to infer true/false. Slowest technique but works when boolean blind doesn’t.
Detect
MySQL
MSSQL
PostgreSQL
Oracle
SQLite
Extract Data — MySQL
Database Length
Database Name
Table Names
Dump Data
Extract Data — MSSQL
Extract Data — PostgreSQL
Automation Script (Python)
Tips
- Use 2-3 sec delay (not too long, not too short)
- Network latency can cause false positives — test baseline first
- Binary search reduces requests per character (~7 vs ~95)
- Use
--technique=T --time-sec=3in SQLmap
Quick Reference
| Database | Sleep Function |
|---|---|
| MySQL | SLEEP(N) or BENCHMARK(N,expr) |
| MSSQL | WAITFOR DELAY '0:0:N' |
| PostgreSQL | pg_sleep(N) |
| Oracle | DBMS_PIPE.RECEIVE_MESSAGE('a',N) |
| SQLite | LIKE('ABC',UPPER(HEX(RANDOMBLOB(N)))) |