Run Sqlmap
run_sqlmapAutomates SQL injection detection and exploitation, enabling database enumeration and table dumping for authorized penetration testing.
Instructions
Sqlmap is an open source penetration testing tool that automates the process of detecting and exploiting SQL injection flaws and taking over of database servers. Tags: security, pentest, exploitation, vulnerability-scanner, database, sql-injection, enumeration
Usage Guide:
Target Specification: Provide a
urlfor standard GET scans, orpost_datafor POST requests. Userequest_fileto load a raw HTTP request (e.g., exported from Burp).Request Configuration: Use
cookie_stringfor authenticated sessions. Enablerandom_agentortorto bypass filters and hide origin.Detection & Tuning: Adjust
level(1-5) andrisk(1-3) for deeper testing. Usetamper_scriptto evade WAF/IPS.Enumeration: Use
list_dbsto find databases,list_tables(withdatabase_name) to find tables, anddump_table(withdatabase_nameandtable_name) to exfiltrate data.System Access: Use
remote_file_readto retrieve local files from the server.Automation:
batchmode is enabled by default to prevent the tool from pausing for user input.
Warnings: ⚠️ WARNING: This tool contains exploitation/destructive capabilities. Use with extreme caution.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "run_sqlmap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tor | No | Use Tor anonymity network to route traffic. | |
| url | No | Target URL (e.g., http://example.com/vuln.php?id=1). | |
| risk | No | Risk of tests to perform (1-3, default 2). | |
| batch | No | Never ask for user input, use the default behavior. | |
| level | No | Level of tests to perform (1-5, default 3). | |
| list_dbs | No | Enumerate DBMS databases. | |
| post_data | No | Data string to be sent through POST (e.g., "id=1&user=admin"). | |
| dump_table | No | Dump DBMS database table entries. | |
| table_name | No | DBMS database table to enumerate. | |
| list_tables | No | Enumerate DBMS database tables. | |
| random_agent | No | Use a randomly selected HTTP User-Agent header value. | |
| request_file | No | Path to a file containing a raw HTTP request. | request.txt |
| cookie_string | No | HTTP Cookie header value for authentication. | |
| database_name | No | DBMS database to enumerate. | |
| flush_session | No | Flush session files for current target. | |
| get_passwords | No | Enumerate DBMS users password hashes. | |
| tamper_script | No | Sqlmap tamper script to use for bypassing WAF. | space2comment |
| remote_file_read | No | Read a file from the back-end DBMS file system. | /etc/passwd |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |