Rechercher une page de manuel

Chercher une autre page de manuel:


Langue: en

Version: Dec 18, 2008 (debian - 07/07/09)

Section: 1 (Commandes utilisateur)


sqlmap - automatic SQL injection tool


sqlmap [options] {-u <URL> | -g <google dork> | -c <config file>}


sqlmap is an automatic SQL injection tool entirely developed in Python. Its goal is to detect and take advantage of SQL injection vulnerabilities on web applications. Once it detects one or more SQL injections on the target host, the user can choose among a variety of options to perform an extensive back-end database management system fingerprint, retrieve DBMS session user and database, enumerate users, password hashes, privileges, databases, dump entire or user's specific DBMS tables/columns, run his own SQL SELECT statement, read specific files on the file system and much more.


This program can be configured with the options listed below. The options may be given in any order.
show program's version number and exit
-h, --help
show this help message and exit
At least one of these options has to be specified to set the source to get target urls from.
-u URL, --url=URL
Target url
Parse targets from Burp or WebScarab logs
Process Google dork results as target urls
Load options from a configuration INI file
These options can be used to specify how to connect to the target url.
HTTP method, GET or POST (default: GET)
Data string to be sent through POST
HTTP Cookie header
HTTP Referer header
HTTP User-Agent header
Load a random HTTP User-Agent header from file
Extra HTTP headers ' separated
HTTP Authentication type, value: Basic or Digest
HTTP Authentication credentials, value: name:password
Use a HTTP proxy to connect to the target url
Maximum number of concurrent HTTP requests (default 1)
Delay in seconds between each HTTP request
Seconds to wait before timeout connection (default 10)
These options can be used to specify which parameters to test for, provide custom injection payloads and how to parse and compare HTTP responses page content when using the blind SQL injection technique.
Testable parameter(s)
Force back-end DBMS to this value
Injection payload prefix string
Injection payload postfix string
String to match in page when the query is valid
Regexp to match in page when the query is valid
String to be excluded before calculating page hash
Regexp matches to be excluded before calculating page hash
These options can be used to test for specific SQL injection technique or to use one of them to exploit the affected parameter(s) rather than using the default blind SQL injection technique.
Test for stacked queries (multiple statements) support
Test for Time based blind SQL injection
Test for UNION query (inband) SQL injection
Use the UNION query (inband) SQL injection to retrieve the queries output. No need to go blind
-f, --fingerprint
Perform an extensive DBMS version fingerprint
These options can be used to enumerate the back-end database management system information, structure and data contained in the tables. Moreover you can run your own SQL SELECT queries.
-b, --banner
Retrieve DBMS banner
Retrieve DBMS current user
Retrieve DBMS current database
Enumerate DBMS users
Enumerate DBMS users password hashes (opt: -U)
Enumerate DBMS users privileges (opt: -U)
Enumerate DBMS databases
Enumerate DBMS database tables (opt: -D)
Enumerate DBMS database table columns (req: -T, opt: -D)
Dump DBMS database table entries (req: -T, opt: -D, -C, --start, --stop)
Dump all DBMS databases tables entries
DBMS database to enumerate
DBMS database table to enumerate
DBMS database table column to enumerate
DBMS user to enumerate
Exclude DBMS system databases when enumerating tables
First table entry to dump
Last table entry to dump
SQL SELECT query to be executed
Prompt for an interactive SQL shell
File system access:
These options can be used to access the back-end database management system file system taking advantage of native DBMS functions or specific DBMS design weaknesses.
Read a specific OS file content (only on MySQL)
Write to a specific OS file (not yet available)
Operating system access:
This option can be used to access the back-end database management system operating system taking advantage of specific DBMS design weaknesses.
Prompt for an interactive OS shell (only on PHP/MySQL environment with a writable directory within the web server document root for the moment)
Retrieve each query output length and calculate the estimated time of arrival in real time
Verbosity level: 0-5 (default 1)
Update sqlmap to the latest stable version
Save and resume all data retrieved on a session file
Save options on a configuration INI file
Never ask for user input, use the default behaviour


The program provides inline documentation, refer also to the official README file.


This manual page was written by Bernardo Damele A. G. <>.
Je vote [OUI] (mon chat aussi) a la creation de fr.comp.misc.dinosaures
-+- XH in: Guide du Cabaliste Usenet - Bien configurer son dinosaure -+-