Task 1 of 2

What is sqlmap?

sqlmap is an open-source tool that automates the detection and exploitation of SQL injection vulnerabilities. Where the SQL Injection module showed you how to craft payloads manually, sqlmap handles all of that automatically — it tries hundreds of payloads, detects the database type, and can dump entire tables.

It comes pre-installed on Kali Linux. On other systems:

INSTALL
KALI / DEBIAN
sudo apt install sqlmap
MACOS
brew install sqlmap
ANY SYSTEM (PYTHON)
pip install sqlmap

What sqlmap does under the hood

When you point sqlmap at a form, it:

  1. Identifies which parameters are being sent (username, password, etc.)
  2. Injects hundreds of test payloads — ', ' OR '1'='1, time-delay payloads, UNION payloads
  3. Analyses responses to detect if any payload changed the behaviour
  4. Fingerprints the database type (MySQL, SQLite, PostgreSQL, MSSQL...)
  5. Once confirmed injectable — can dump tables, users, passwords, or run OS commands

What took manual testing and trial-and-error takes sqlmap about 30 seconds.

1

sqlmap can only detect SQL injection — it cannot exploit it or dump data. True or false?

Answer all 1 question to continue